Skip to content

Commit 9bddaae

Browse files
ChanceSiyuanclaude
andcommitted
Fix CI: accept bool dtype in syndrome tests
Stim returns boolean arrays by default, not uint8. Update test to accept both bool and uint8 dtypes. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 3230244 commit 9bddaae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_syndrome.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ def test_basic_sampling(self):
2828

2929
assert syndromes.shape[0] == 10
3030
assert observables.shape == (10,)
31-
assert syndromes.dtype == np.uint8
32-
assert observables.dtype == np.uint8
31+
assert syndromes.dtype in (np.uint8, np.bool_)
32+
assert observables.dtype in (np.uint8, np.bool_)
3333

3434
def test_without_observables(self):
3535
"""Test sampling without observables."""

0 commit comments

Comments
 (0)