Skip to content

Commit 4449c43

Browse files
Remove print statements inside sinter test
1 parent 839d4a9 commit 4449c43

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/py/tesseract_sinter_compat_test.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -516,19 +516,16 @@ def test_full_scale_one_worker():
516516
)
517517

518518
# Use sinter.collect to run the decoding task.
519-
results, = sinter.collect(
519+
result, = sinter.collect(
520520
num_workers=1,
521521
tasks=[sinter.Task(circuit=circuit)],
522522
decoders=["tesseract"],
523523
max_shots=1000,
524524
custom_decoders=construct_tesseract_decoder_for_sinter(),
525525
)
526526

527-
# Print a summary of the decoding results.
528-
print("Basic Repetition Code Decoding Results:")
529-
print(f"Shots run: {results.shots}")
530-
print(f"Observed errors: {results.errors}")
531-
print(f"Logical error rate: {results.errors / results.shots}")
527+
assert result.discards == 0
528+
assert result.shots == 1000
532529

533530
if __name__ == "__main__":
534531
raise SystemExit(pytest.main([__file__]))

0 commit comments

Comments
 (0)