Comments (4)
That is so weird. I will take a look.
from pyzx.
How do you produce the second graph from the first? Putting the first in the editor and replacing the H-edges by H-boxes one by one still gives me the correct matrix.
from pyzx.
So I just tried to rewrite the diagram now from scratch and now it is giving me the correct thing. That said this issue has appeared before though I now have no idea what the cause is since this seems to have temporarily resolved itself. I note that in all the times it has appeared it is always accompanied by a zero multiplier to the matrix if that is any clue. Alongside the fact that at the time I saw this it resolved itself (and returned to being problematic) based on whether the hadamard boxes were explicit or wire colours.
I'll keep an eye out for the next time this happens.
from pyzx.
I'm pretty sure this is fixed now by one of the several fixes for ZH rewrites that have been introduced, so I'm closing it. If something similar comes up you can open a new issue.
from pyzx.
Related Issues (20)
- Incorrect diagram colors after simplification (X --> Z) HOT 2
- pyzx should be aware of polynomial and symbolic phase values HOT 2
- Composing graphs loses grounds? HOT 1
- Add copy_simp and (maybe?) supplementarity_simp to full_reduce HOT 1
- `check_remove_id`/`remove_id` accepts W_INPUT nodes but doesn't remove the corresponding W_OUTPUT nodes
- Make local complementation and pivoting work with symbolic boolean angles
- Add a utility function to save and load graphs HOT 2
- support `reset` and `measure` in qasmparser HOT 1
- a round-trip through `graph_to_json` and `json_to_graph` renumbers the vertices HOT 4
- After applying simplifications the unitary matrices change. HOT 10
- Error in basic_optimization HOT 4
- update readthedocs.io to v0.8.0 HOT 1
- Error in full_optimize HOT 2
- Is spider rule likely buggy? HOT 12
- Hadamard cancellation rule HOT 4
- `Graph.to_json` followed by `pyzx.json_to_graph` produces an error HOT 2
- use Python's native `@deprecated` decorator HOT 1
- quimb test is broken
- `extract_circuit` does not turn grounds into measurements and classically-conditioned gates HOT 3
- pyzx unable to optimize when circuit contains rx or sx gate HOT 3
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 pyzx.