Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
akissinger committed Nov 10, 2024
1 parent 9394cc6 commit 449ef28
Show file tree
Hide file tree
Showing 2 changed files with 115 additions and 19 deletions.
4 changes: 2 additions & 2 deletions pyzx/gflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

def gflow(
g: BaseGraph[VT, ET], focus: bool=False, reverse: bool=False, pauli: bool=False
) -> Optional[Tuple[Dict[VT, int], Dict[VT, Set[VT]], int]]:
) -> Optional[Tuple[Dict[VT, int], Dict[VT, Set[VT]]]]:
r"""Compute the gflow of a diagram in graph-like form.
:param g: A ZX-graph.
Expand Down Expand Up @@ -132,7 +132,7 @@ def gflow(

if not correct:
if len(vertices) == len(processed):
return l, gflow, k
return {v: k - i - 1 for v,i in l.items()}, gflow
return None
else:
processed.update(correct)
Expand Down
Loading

0 comments on commit 449ef28

Please sign in to comment.