Skip to content

DemDecoder ​

Detector error model and decoders

5/5 passed in 2165ms

TestWhat it doesResult
test_batch_matches_rowsDecoding a batch, with its syndromes deduplicated and memoised, matches decoding each shot alone.✅ pass
test_check_detectors_and_twirlcheck_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_dispatchmake() 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_oracleThe 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_forA 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