From 310c53efa23320a1f02e6a9cc7701b045c382626 Mon Sep 17 00:00:00 2001 From: Corey Ostrove Date: Mon, 2 Sep 2024 22:39:16 -0600 Subject: [PATCH] Unrelated circuit bugfix Fixes a minor bug in circuit that was caught by unit tests. --- pygsti/circuits/circuit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygsti/circuits/circuit.py b/pygsti/circuits/circuit.py index 2977dddac..ffacd8846 100644 --- a/pygsti/circuits/circuit.py +++ b/pygsti/circuits/circuit.py @@ -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])