Skip to content

Commit

Permalink
use the edge type correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
RazinShaikh committed Jul 16, 2024
1 parent 2b15f05 commit 24600f0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyzx/hrules.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,7 @@ def apply_copy(
q = 0.7*g.qubit(w) + 0.3*g.qubit(n)

u = g.add_vertex(copy_type, q, r, a)
e = g.edge(n,w)
et = g.edge_type(e)
et = g.edge_type(edge)
g.add_edge((n,u), et)

return ({}, rem, [], True)
Expand Down

0 comments on commit 24600f0

Please sign in to comment.