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

Add copy_simp and (maybe?) supplementarity_simp to full_reduce #179

Open
RazinShaikh opened this issue Nov 8, 2023 · 1 comment
Open

Comments

@RazinShaikh
Copy link
Contributor

No description provided.

@wzpxq
Copy link

wzpxq commented Mar 6, 2024

I also think that copy_simp should be added to full_reduce (along with a call of to_gh before it)

For example, consider the following graph:

g = zx.Graph() 

v0 = g.add_vertex(zx.VertexType.Z, 0, 0)
v1 = g.add_vertex(zx.VertexType.X, 0, 1)
g.add_edge((v0, v1))
v2 = g.add_vertex(zx.VertexType.BOUNDARY, 0, 3)
g.add_edge((v1, v2))

v3 = g.add_vertex(zx.VertexType.BOUNDARY, 1, 3)
g.add_edge((v1, v3))

full_reduce will do nothing else than recoloring the X node, by pulling H out of it.
In this way, the name "full_reduce" is misleading since the copy rule is not applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants