Skip to content

Commit

Permalink
fixed bug in extractor when there is a single vertex in the frontier
Browse files Browse the repository at this point in the history
  • Loading branch information
akissinger committed Nov 28, 2024
1 parent cd0f992 commit 2058a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyzx/linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def to_cnots(self, optimize: bool = False, use_log_blocksize: bool = False) -> L
else:
best = 1000000
best_cn = None
for size in range(1,self.rows()):
for size in range(1,self.rows() + 1):
cn = CNOTMaker()
assert cn is not None
self.copy().gauss(full_reduce=True,x=cn, blocksize=size)
Expand Down

0 comments on commit 2058a84

Please sign in to comment.