Maximum-likelihood logical-class decoding
Maximum-likelihood logical-class decoding chooses the recovery equivalence class with the largest total probability conditioned on the syndrome.
On this page
Explanation and significance
The most likely individual physical error can belong to a less likely class than a collection of many individually weaker alternatives. Quantum degeneracy makes this distinction especially important: stabilizer-related errors have the same effect on encoded information. Summing over classes can improve inference but is computationally difficult for large codes.
Mechanism and mathematical structure
For syndrome s and logical class L, P(L|s) is proportional to sum_(E in L with syndrome s)P(E). A maximum-a-posteriori error decoder instead maximizes P(E|s) over individual E. Those operations, summation and maximization, need not produce the same class.
Fully worked reference example
Assume syndrome-compatible class A contains one pattern of probability 0.12 and another of 0.01, while class B contains four patterns each of probability 0.04. The most likely single pattern lies in A, but total class weights are 0.13 and 0.16, so class decoding selects B. Normalizing over these two classes gives P(A|s)=0.13/0.29≈0.448276 and P(B|s)≈0.551724. This synthetic example isolates the role of multiplicity without claiming a particular physical code realization.
Limits and misconceptions
Uniform counting is not enough when paths have different probabilities. Truncating a sum introduces approximation error that should be assessed. A decoder called optimal must specify its noise model, objective and whether the exact class sum is computed.
Scientific relationships
Is a decoding objective grounded in stabilizer equivalence. Generalizes single-pattern likelihood selection. Is distinct from minimum-weight matching.
Writing the class sum explicitly
Choose one Pauli reference error E_s with observed syndrome s. Every syndrome-compatible Pauli can be written, up to phase, as E_s L S, where S is a stabilizer and L is a logical Pauli representative. For an [[n,k]] stabilizer code with independent stabilizer rank n−k, there are 4^k logical classes for that syndrome, each containing 2^(n−k) phase-free Pauli patterns. The class weight is W_L(s)=Σ_(S in stabilizers)P(E_sLS).
Changing E_s relabels the logical classes but does not alter their probabilities or the best achievable conditional success. This is useful when comparing decoders that choose different reference recoveries. A raw logical label such as X cannot be compared across conventions without tracking that reference choice.
The optimal conditional risk
With P(s)=Σ_L W_L(s), the posterior is P(L|s)=W_L(s)/P(s). A decoder that minimizes the probability of a wrong logical class chooses the largest posterior, and its conditional failure is 1−max_L P(L|s). Averaging over syndromes gives total failure 1−Σ_s max_L W_L(s). This expression identifies the decision objective directly, rather than assuming that a lowest-weight explanation is optimal.
Different applications can assign different costs to logical classes. If a logical Z is harmless for a particular stored classical bit but a logical X is harmful, minimum class-error probability is not the same objective as minimum task failure. A universal quantum-memory benchmark should retain the full logical channel rather than optimizing away an error type because one chosen input state cannot see it.
Probability and multiplicity compete
For independent symmetric Pauli noise, a pattern of weight w has a common prefactor times exp(−βw), where β=ln[3(1−p)/p] and p is total nonidentity probability. A class sum resembles a partition function over its patterns. The most likely individual pattern minimizes weight, while class likelihood additionally depends on how many patterns occur at each weight.
As a synthetic truncated comparison, take one retained class with one weight-two pattern and another with twenty weight-three patterns, ignoring all other terms for this illustration. Their weight ratio is twenty exp(−β). They tie at β=ln(20), corresponding to p=3/23≈0.130435. This is not a code threshold: it is an exact crossover of two specified collections within a deliberately incomplete class-sum model. Additional patterns can shift the result.
Bounding a truncated computation
Suppose an approximate computation has class lower bounds 0.14 and 0.10, and rigorous upper bounds 0.15 and 0.13. The first class must win because its lower bound exceeds the other's upper bound. If the second upper bound were 0.17, the computed partial sums would not certify the decision. This simple interval logic separates a useful approximation from an unjustified claim of exact optimality.
Tensor-network contraction, statistical sampling, or restricted pattern enumeration can estimate class sums, each with different error controls. A Monte Carlo estimate needs uncertainty from the sampling process; a deterministic truncation needs a bound or an empirically justified assessment of omitted weight. Reporting only the largest computed partial sum hides uncertainty that can change the recovery class.
Model mismatch limits the meaning of optimal
A decoder can be exactly optimal for an assumed independent Pauli model and perform poorly on correlated or coherent physical noise. Spatial bursts can give high weight to error strings that the model considers exponentially unlikely. Analog syndrome information can change the posterior when incorporated, while hard thresholding discards some of it before decoding begins.
Coherent errors also require care because different Pauli amplitudes can interfere; a classical distribution P(E) need not represent the complete channel. A Pauli approximation or an implemented noise-tailoring protocol can justify a classical class-inference problem in some settings. The decoder's optimality statement must specify that setting rather than silently extending to every quantum channel.
Acceptance and computational effort
One may accept only syndromes for which the largest posterior exceeds a chosen confidence threshold. This reduces conditional error under a correctly calibrated model while rejecting more attempts. The acceptance function, cost of computing it, and fate of rejected quantum data all belong to the protocol. A high-confidence posterior for an inaccurate model can be especially misleading.
Under a stated noise model, the decoder sums the probabilities of physically equivalent errors in each logical class for the given syndrome. Partitioning the class by weight can give lower and upper probability bounds. Arithmetic exactness, model adequacy, and computational feasibility remain distinct.
Normalization gives a useful global check
For a normalized stochastic Pauli model, summing W_L(s) over every syndrome and logical class must give one. Each phase-free physical Pauli belongs to exactly one such bin. This identity is a practical check on a small-code class-enumeration calculation: duplicate representatives, missing stabilizers, or inconsistent syndrome conventions break the normalization. For k logical qubits, there are 4^k classes within each syndrome, even when some have zero probability under a restricted noise model. Coherent channels require amplitude-level treatment and cannot be validated solely by this classical probability sum.
Sources
Verification scope
Stabilizer Codes and Quantum Error Correction
Daniel Gottesman · · Thesis · Preprint recorded · arXivCitation identity checked ·
Stabilizer algebra and fault-tolerance foundations; no current experimental ranking.
Verification scope
Recorded source check ·
Rank-selected OSD basis, free-variable candidate construction, and bounded search variants checked.
Selected text only; no full threshold proof, experimental replication, or current performance ranking.