Skip to content

Commit

Permalink
minor improvements to gflow func
Browse files Browse the repository at this point in the history
  • Loading branch information
akissinger committed Nov 9, 2024
1 parent c1aa214 commit 10ef921
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyzx/gflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ def gflow(

# print(unprocessed, processed_prime, zerovec)
m = bi_adj(g, processed_prime, candidates)
for u in candidates:
for index, u in enumerate(candidates):
vu = zerovec.copy()
vu.data[candidates.index(u)] = [1] # type:ignore
vu.data[index][0] = 1
x = m.solve(vu)
if x:
correct.add(u)
Expand All @@ -114,7 +114,7 @@ def gflow(


def extended_gflow() -> None:
r"""Compute the maximally delayed extended (i.e. 3-plane) gflow of a diagram in graph-like form.
r"""NOT IMPLEMENTED YET: Compute the maximally delayed extended (i.e. 3-plane) gflow of a diagram in graph-like form.
Based on the algorithm in "There and Back Again"
See https://arxiv.org/pdf/2003.01664
Expand Down Expand Up @@ -168,4 +168,4 @@ def extended_gflow() -> None:
end
```
"""
pass # TODO stub
raise ValueError("Not implemented")

0 comments on commit 10ef921

Please sign in to comment.