Skip to content

Commit 6f1d93b

Browse files
committed
Use error probability smaller than 0.5 to avoid exception from correlated pymatching
1 parent 588d065 commit 6f1d93b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

glue/sample/src/sinter/_decoding/_decoding_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def test_no_detectors_with_post_mask(decoder: str, force_streaming: Optional[boo
239239
@pytest.mark.parametrize('decoder,force_streaming', DECODER_CASES)
240240
def test_post_selection(decoder: str, force_streaming: Optional[bool]):
241241
circuit = stim.Circuit("""
242-
X_ERROR(0.6) 0
242+
X_ERROR(0.4) 0
243243
M 0
244244
DETECTOR(2, 0, 0, 1) rec[-1]
245245
OBSERVABLE_INCLUDE(0) rec[-1]
@@ -264,9 +264,9 @@ def test_post_selection(decoder: str, force_streaming: Optional[bool]):
264264
__private__unstable__force_decode_on_disk=force_streaming,
265265
custom_decoders=TEST_CUSTOM_DECODERS,
266266
)
267-
assert 1050 <= result.discards <= 1350
267+
assert 650 <= result.discards <= 950
268268
if 'vacuous' not in decoder:
269-
assert 40 <= result.errors <= 160
269+
assert 60 <= result.errors <= 240
270270

271271

272272
@pytest.mark.parametrize('decoder,force_streaming', DECODER_CASES)

0 commit comments

Comments
 (0)