DemDecoder
Detector error model and decoders
5/5 passed in 2165ms
| Test | What it does | Result |
|---|---|---|
test_batch_matches_rows | Decoding a batch, with its syndromes deduplicated and memoised, matches decoding each shot alone. | ✅ pass |
test_check_detectors_and_twirl | check_detectors refuses a random observable only when asked to check observables, and twirl leaves only Pauli noise on the same record layout. | ✅ pass |
test_make_dispatch | make() builds the right decoder for each name and target, threads max_bond to "tn" and "coherent" only, refuses bad requests with ValueError, and decodes the Pauli twirl of non-Pauli noise only when asked, always warning. | ✅ pass |
test_matches_full_sweep_oracle | The detector error model matches a brute-force full-sweep oracle mechanism for mechanism, across families with measurements before and after the noise. | ✅ pass |
test_reuse_for | A BP-OSD decoder re-pointed at the next rate's DEM decodes like a fresh one, and refuses a DEM with a different check matrix. | ✅ pass |