Skip to content

Commit

Permalink
Fix gflow
Browse files Browse the repository at this point in the history
Changed the gflow function to prevent it from returning a gflow if any vertices outside of boundary type inputs remain unprocessed in the end. Should solve issue zxcalc#114
  • Loading branch information
mafaldaramoa authored Mar 30, 2023
1 parent 0ca8a0f commit af1d1e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyzx/gflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def gflow(
l[u] = k

if not correct:
if not candidates:
if vertices.difference(processed) == inputs.difference(pattern_inputs):
return l, gflow, k
return None
else:
Expand Down

0 comments on commit af1d1e7

Please sign in to comment.