Comments (12)
I would like to start working on this issue.
from flamingpy.
Thanks @ilan-tz !
from flamingpy.
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.
Example
from flamingpy.codes import SurfaceCode
from flamingpy.codes.graphs import EGraph
code = SurfaceCode(2)
code.draw()
You can also directly access the graph object
graph = code.graph # you can also directly define the graph object with RHG_graph(...)
graph.draw()
The two different colours in the first figure designate "primal" and "dual" qubits, see lines 219 and 220 of the current main
from flamingpy.
Thanks for the inputs @soosub! Will integrate these specifications soon.
from flamingpy.
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.
Hi, I would also be interested in it. Is this task finished already?
from flamingpy.
Go ahead, @Avhijit-codeboy ! Thanks!
from flamingpy.
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.
Hi @soosub . Can you please assign me this issue? I might be pushing the changes by tonight or tomorrow EOD.
from flamingpy.
Fair enough!
from flamingpy.
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)
- Draw method of EGraph does not function without passing `dims` parameter HOT 3
- Class inheritance diagram displayed incorrectly in the docs HOT 1
- Add transparency option to plots HOT 1
- Add more natural choice of periodic boundaries
- Change scope of `docformatter` and `black` ๐๏ธ HOT 2
- Add local complementation function to `EGraph` class ๐๐ฅ HOT 11
- Include `add_qubit` and `remove_qubit` method within `EGraph` ๐ชโ๏ธ HOT 3
- Add tests to improve code coverage of `viz` module ๐งช HOT 1
- [Discussion] Add tests to improve FlamingPy's test suite coverage to >99% HOT 1
- Make sure non-Xanadu links open in a new page HOT 3
- Add warning message when plotting large codes
- Tutorial on classical error correction HOT 1
- Improving linting coverage and reporting HOT 1
- Add links to forum and slack to README and website HOT 1
- `getting_started.rst` is outdated ๐ด๐ผ HOT 1
- Macronize support non-integer nodes HOT 2
- Change naming convention simulation data files ๐ HOT 1
- Removing Cythonization example when no longer needed
- Documentation not up-to-date with latest PyPI version HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flamingpy.