Color
Triangular-torus code families and the color decoder
4/4 passed in 5482ms
| Test | What it does | Result |
|---|---|---|
test_color_decoder_scales | The "color" decoder's LER falls from d=3 to d=5 (kagome and hex). At hex d=5 the many shots outside its lookup table decode ten times better than trivial, and every real syndrome resolves with no warning. | ✅ pass |
test_decode_below_trivial | BP+OSD on every family, and the min-weight "color" decoder on the hex color code that MWPM refuses, decode far below the always-zero predictor. | ✅ pass |
test_distance_scales | A larger requested distance gives a heavier lightest logical in every family: genuine code families, not one fixed patch. | ✅ pass |
test_unexplained_syndrome | A syndrome no fault set explains (a detector no mechanism reaches) is counted in unresolved and warned about once, never passed off as "nothing flipped". | ✅ pass |