Skip to content

Commit

Permalink
Unrelated circuit bugfix
Browse files Browse the repository at this point in the history
Fixes a minor bug in circuit that was caught by unit tests.
  • Loading branch information
Corey Ostrove committed Sep 3, 2024
1 parent ad7c064 commit 310c53e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygsti/circuits/circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -3447,7 +3447,7 @@ def num_gates(self):
"""
if self._static:
def cnt(lbl): # obj a Label, perhaps compound
if lbl.is_simple(): # a simple label
if lbl.IS_SIMPLE: # a simple label
return 1 if (lbl.sslbls is not None) else 0
else:
return sum([cnt(sublbl) for sublbl in lbl.components])
Expand Down

0 comments on commit 310c53e

Please sign in to comment.