Skip to content

Color ​

Triangular-torus code families and the color decoder

4/4 passed in 5482ms

TestWhat it doesResult
test_color_decoder_scalesThe "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_trivialBP+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_scalesA larger requested distance gives a heavier lightest logical in every family: genuine code families, not one fixed patch.✅ pass
test_unexplained_syndromeA 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