Skip to content

Commit a14dba9

Browse files
committed
make the debug output look better, the default printing is too verbose
1 parent 165c4a8 commit a14dba9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/bloqade/analysis/measure_id/lattice.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ class Predicate(Enum):
1515
IS_ONE = 2
1616
IS_LOST = 3
1717

18+
def __str__(self) -> str:
19+
return self.name
20+
21+
def __repr__(self) -> str:
22+
return self.name
23+
1824

1925
# Taken directly from Kai-Hsin Wu's implementation
2026
# with minor changes to names

0 commit comments

Comments
 (0)