Coder Social home page Coder Social logo

Comments (12)

Avhijit-codeboy avatar Avhijit-codeboy commented on June 1, 2024 1

I would like to start working on this issue.

from flamingpy.

Avhijit-codeboy avatar Avhijit-codeboy commented on June 1, 2024 1

Thanks @ilan-tz !

from flamingpy.

soosub avatar soosub commented on June 1, 2024 1

Already starting to look good @Avhijit-codeboy ๐Ÿ˜

Just to make sure we are on the same page: the aim for the plotly visualization is to be relatively close to the matplotlib one. In particular, the shown information (axes, labels, legend) should remain the same. Additionally, we need the ability to draw the nodes with different colours.

For testing, I would recommend using the graph attribute of a SurfaceCode object (generated with the RHG_Graph function) with a small code distance. That will make sure you can easily compare the two visualisation methods.

from flamingpy.

soosub avatar soosub commented on June 1, 2024 1

Example

from flamingpy.codes import SurfaceCode
from flamingpy.codes.graphs import EGraph

code = SurfaceCode(2)
code.draw()

image

You can also directly access the graph object

graph = code.graph # you can also directly define the graph object with RHG_graph(...)
graph.draw()

image

The two different colours in the first figure designate "primal" and "dual" qubits, see lines 219 and 220 of the current main

from flamingpy.

Avhijit-codeboy avatar Avhijit-codeboy commented on June 1, 2024 1

Thanks for the inputs @soosub! Will integrate these specifications soon.

from flamingpy.

soosub avatar soosub commented on June 1, 2024 1

Hey @Avhijit-codeboy! We decided not to assign issues so as not to discourage other UnitaryHack participants from giving it a shot. However, you can open a draft PR and link it to this issue by including closes XanaduAI/flamingpy#72 in the PR description. Make sure that you put [unitaryhack] in the title of your PR so the bots can find your contributions and make sure you get credit. Once ready, you can open it so we can start to review ๐Ÿ‘๐Ÿผ

from flamingpy.

arthurfaria avatar arthurfaria commented on June 1, 2024 1

Hi, I would also be interested in it. Is this task finished already?

from flamingpy.

ilan-tz avatar ilan-tz commented on June 1, 2024

Go ahead, @Avhijit-codeboy ! Thanks!

from flamingpy.

Avhijit-codeboy avatar Avhijit-codeboy commented on June 1, 2024

I think I'm close to it. Interactivity is working fine, need to figure out info and color scheme according to inputs

Flamingpy.graph.-.Jupyter.Notebook.and.1.more.page.-.Personal.-.Microsoft.Edge.2022-06-11.17-33-37.mp4

.

from flamingpy.

Avhijit-codeboy avatar Avhijit-codeboy commented on June 1, 2024

Hi @soosub . Can you please assign me this issue? I might be pushing the changes by tonight or tomorrow EOD.

from flamingpy.

Avhijit-codeboy avatar Avhijit-codeboy commented on June 1, 2024

Fair enough!

from flamingpy.

soosub avatar soosub commented on June 1, 2024

Hi @arthurfaria ๐Ÿ˜Ž This issue is already being addressed in #88 by @Avhijit-codeboy. If you are eager to contribute, I recommend issues XanaduAI/ft-stack#189, XanaduAI/ft-stack#190, or #73!

from flamingpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.