-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added color to register net plot depending on the fidelity of entanglement + Added directional metadata #30
Conversation
adrianariton
commented
Aug 15, 2023
- This option only allows for plotting of the fidelity colorwise
- Should i add another parameter specifying what observable i should plot to make it more general?
Codecov Report
@@ Coverage Diff @@
## master #30 +/- ##
==========================================
- Coverage 67.80% 64.67% -3.14%
==========================================
Files 23 23
Lines 702 736 +34
==========================================
Hits 476 476
- Misses 226 260 +34
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
I like the new directed edge metadata, no need for changes there. I have the impression that the two-qubit coloring can currently lead to crashes if we have bigger entangled states. Could you add a couple of tests showing what happens if you try to plot something like:
Could you rename the keyword argument to something like |
I will also suggest separating the gray line plotting from the colored observable plotting. Let's have both, so that the logic is not too intermingled. Basically, copy whatever part of the gray line plotting you need and cordon it off with |
to avoid things breaking you probably will need a guard along the lines of |
I added the code as example, i will get to writing the readme and fixing the other issues you mentioned tommorow :) |
Regarding the twoqubit observable, Im thinking of taking a function as parameter: I'm thinking I could simply loop through all the states and project them onto the corresponding stabilizer (provided by the function). |
For some reason if i dont specify the color for the more thqan 2 qubit systems, and i put it equal to It also doesnt work if i create a sepparaste array called twoqubitstate_links and only work with it instead of state_links. (same result: works with simple recoreding, but the lines! fails on WGLMakie) |
@Krastanov i added the approach we discussed today with twoqubit links. |
@Krastanov i removed the examples for now. They do work properly (both of them now) as i managed to figure out what the linesegments! error on WGLMakie was about. Would it be cleaner to add them to a different pull request after this gets merged? Or should i add them now so you can review them? |