Skip to content

Conversation

y-richie-y
Copy link
Contributor

In relation to the discussion in #358, I've added a very basic implementation of fault edges in pyzx which doesn't allow any rewrites. This enables to open a corresponding PR in zxlive.

other_vertex = v1
if other_vertex == v1 and g.edge_type(e) == EdgeType.SIMPLE:
continue
if other_vertex == v1 and g.edge_type(e) == EdgeType.FAULT_EDGE:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to make sure I understand this line, when fusing two spiders that are connected by a simple edge, if there is a faulty edge between them, this condition prevents the fusion from creating a fault edge self-loop. Is this the intended behaviour?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah thats not right. Good spot!

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

Successfully merging this pull request may close these issues.

2 participants