Skip to content

Commit 0444490

Browse files
nit
1 parent 7dbe3cf commit 0444490

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qualtran/_infra/data_types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ def is_symbolic(self) -> bool:
805805
def get_classical_domain(self) -> Iterable[Any]:
806806
if self.modulus is None or is_symbolic(self.modulus):
807807
return range(2**self.bitsize)
808-
return range(int(self.modulus))
808+
return range(1, int(self.modulus))
809809

810810
def to_bits(self, x: int) -> List[int]:
811811
self.assert_valid_classical_val(x)

0 commit comments

Comments
 (0)