-
Notifications
You must be signed in to change notification settings - Fork 117
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
JSON importer should probably call auto_detect_io
#168
Comments
I have analyzed this a bit more: It seems like So there are actually two bugs:
|
…of the visual ordering. See #168
In commit 4ad8938 I updated the jsonparser as well. It should now remember the input and output order correctly. Note that this does invalidate the json you have above (it is not backwards compatible). If this lack of backwards compatibility is a big problem I can see what I can do to save it. |
Thanks a lot, that allows to further process the JSON much more safely.
That's not a problem, I'm very happy with the new data structure :-) Now everything seems to work, thank you! |
Consider the following example importing a ZX diagram from JSON and extracting a circuit:
The last line displays
False
, i.e. the matrix of the graph and the matrix of the extracted circuit do not match. Uncommenting the lineg.auto_detect_io()
fixes the issue.PyZX version: 669f5a2 (current master at the time of writing)
The text was updated successfully, but these errors were encountered: