Skip to content
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

Adapt to the new convention on the nodes in a ZXGraph #368

Open
inmzhang opened this issue Oct 17, 2024 · 0 comments
Open

Adapt to the new convention on the nodes in a ZXGraph #368

inmzhang opened this issue Oct 17, 2024 · 0 comments
Assignees
Labels
backend Issue pertaining to the Python backend (tqec package) enhancement New feature or request, may not be in the task flow

Comments

@inmzhang
Copy link
Contributor

In #349, we have adapted to the new RGB color convention in the SketchUp model. There is still a similar problem left behind with the ZXGraph. However, it's a bit more complicated.

Previously in a ZXGraph, we noted the Z-type nodes as those with "Z boundary on all edges, but X on any pair":
图片
That means when there is a junction, we used the color on the bent side as the type of the node. This notation is valid and used in some paper like http://arxiv.org/abs/1905.08916.
图片

However, if you are familiar with ZX calculus, you may notice the discrepency between the old-style spider convention with this. In ZX calculus, a Z basis init/meas is noted with a dangling X spider and a Z spider supports the parity check of all the X computation basis around it.

Austin fixed this discrepency in the draft paper. Now the definition is as follow:
图片

We should keep this change in mind when making changes to the ZXGraph. This may has some effect on the interop between ZXGraph and BlockGraph if I remember correctly.

@inmzhang inmzhang added enhancement New feature or request, may not be in the task flow backend Issue pertaining to the Python backend (tqec package) labels Oct 17, 2024
@inmzhang inmzhang self-assigned this Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Issue pertaining to the Python backend (tqec package) enhancement New feature or request, may not be in the task flow
Projects
None yet
Development

No branches or pull requests

1 participant