Let be the stabilizer group of an stabilizer code, generated by independent commuting Pauli operators , and let be its normalizer in the Pauli group. Phases are ignored throughout, so a Pauli error is an element of . The syndrome of an error is , whose -th bit is 1 exactly when anticommutes with . Let be a probability distribution on errors.
Fix, for every syndrome , one Pauli with . The errors with syndrome are exactly the elements of , and this set splits into cosets , one for each logical class . Two errors in the same coset differ by a stabilizer and act identically on every code state.
- Most-likely-error decoding returns .
- Degenerate maximum-likelihood decoding returns any element of the coset , where
The sum has terms. A decoder is a map from syndromes to corrections; it succeeds when the correction lies in the same coset as the error. If it picks the coset for syndrome , its success probability is , which is maximised term by term by the rule above. Degenerate maximum-likelihood decoding therefore has the smallest logical failure probability of any decoder for the given code and noise. The two rules coincide when every coset contains at most one error of non-negligible probability, as for a non-degenerate code at low noise, and differ in general; the formulation follows Hsieh and Le Gall and Iyer and Poulin.