Skip to content
Current section
The Quantum Computing Enthusiast’s Hub
Saved
All sections

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Belief-propagation decoding

Belief propagation estimates error probabilities by exchanging local messages on a graph of variables and parity constraints.

Edition released Coverage: Overview · Technical · Research
On this page

Explanation and significance

For sparse codes, each message summarizes how a local check or neighboring variable changes the plausibility of a fault. On tree graphs the inference has strong exactness properties; short cycles and quantum degeneracy can make the approximation fail. Quantum implementations often combine belief propagation with a postprocessing step.

Mechanism and mathematical structure

A Tanner graph has variable nodes for error components and check nodes enforcing syndrome equations. Messages may be represented as probabilities or log-likelihood ratios. A binary parity check combines neighboring beliefs subject to their XOR matching the observed syndrome. The estimated error must ultimately satisfy the syndrome, not merely have individually plausible marginals.

Fully worked reference example

For two independent error bits e1,e2 with priors P(e1=1)=0.1 and P(e2=1)=0.2, observe syndrome e1 XOR e2=1. Candidate10 has prior0.1×0.8=0.08; candidate01 has prior0.9×0.2=0.18. After conditioning, their probabilities are 0.08/0.26≈0.307692 and 0.18/0.26≈0.692308. The check message therefore favors e2 even though both positions could explain the parity. Larger loopy graphs repeat related updates approximately.

Limits and misconceptions

Independent marginal decisions can violate parity even if each marginal looks sensible. Degenerate quantum error classes require more than selecting one likely bit pattern. A converged message sequence need not imply a correct logical recovery.

Scientific relationships

Is a decoding method used for quantum LDPC codes. Depends on a probabilistic noise model and check graph. Is often combined with ordered-statistics postprocessing.

Deriving the binary check update

Represent a binary error variable's belief by L=ln[P(e=0)/P(e=1)]. For an independent prior p, its initial value is ln[(1−p)/p]. A variable-to-check message combines that prior with incoming messages from every other neighboring check. Excluding the destination prevents immediate reuse of the same evidence. In log form the combination is addition.

For a parity check with syndrome s, the outgoing message to variable i is L_(c→i)=2 atanh[(-1)^s Π_(j≠i)tanh(L_(j→c)/2)]. To see the product, note that tanh(L/2)=P(0)−P(1) for a normalized binary distribution. The signed expectation of the parity of independent bits is the product of their signed expectations. Conditioning on the required parity then determines the remaining bit. Independence is exact for the separated branches of a tree and becomes an approximation on a loopy graph.

Exact marginals can still give an invalid hard decision

Take three independent error bits with probability p=0.1 and one observed odd-parity check. The three weight-one patterns each have probability 0.1×0.9²=0.081, and the weight-three pattern has probability 0.001. Total probability of the odd syndrome is 0.244. For any one bit, the posterior probability of error is (0.081+0.001)/0.244≈0.336066.

Every exact marginal therefore favors zero. Taking the most likely value of each bit independently produces 000, which violates the observed odd parity. The most likely joint patterns are the three weight-one strings. This failure occurs even on a tree with exact inference; it is a mismatch between marginal decisions and constrained joint decoding, not necessarily a failure of the message equations.

Quantum variables carry coupled Pauli components

A physical Pauli error can be represented by binary X and Z components, with Y corresponding to both components present. Under depolarizing noise with total probability p, P(X component=1)=P(Z component=1)=2p/3, but P(both)=p/3. Multiplying the marginals would give 4p²/9, which differs sharply at small p. Decoding the components independently discards that correlation.

Messages over the four Pauli possibilities can retain the local X-Z relation. The check update must use commutation with the relevant Pauli operator rather than treating every check as the same ordinary bit parity. The resulting graph still contains degeneracy and cycles, so retaining four-state variables improves the model but does not make loopy inference exact.

Cycles recycle evidence

In a graph with a short cycle, a message can travel around the cycle and return as if it were new evidence. This can create overconfidence, oscillation, or convergence to a poor fixed point. Quantum check commutation often produces graph structure that differs from classical sparse-code ensembles optimized for ordinary belief propagation. Performance therefore depends on the actual code and update schedule.

Damping replaces an update by a mixture of the new message and its previous value. It can reduce oscillations but can also slow convergence or retain a biased fixed point. Clipping log-likelihood ratios prevents numerical infinities from tanh and atanh operations, yet introduces an approximation in strongly confident regimes. These choices belong in a reproducible decoder specification.

Degeneracy changes the desired decision

Several different physical errors can differ by a stabilizer and have identical action on the encoded state. Belief propagation often estimates individual variable marginals rather than the probability of each full logical equivalence class. A posterior that is spread over many stabilizer-related patterns can therefore look indecisive locally even when one logical class is strongly favored.

Postprocessing can use the soft outputs to select a syndrome-consistent candidate, but consistency does not prove the right logical class was chosen. The three distinct outcomes—no syndrome solution, a wrong logical solution, and a successful logical recovery—should be counted separately when diagnosing a decoder. Calling every converged run successful hides precisely the failures most relevant to quantum storage.

Noise priors and independent validation

The prior distribution may vary with location, gate context, leakage flags, or analog readout. Better priors can help only when they are calibrated and appropriate to the evaluation data. A decoder trained on a synthetic noise distribution should be tested against departures such as bursts and drift, with its limitations stated rather than interpreted as universal robustness.

The four allowed joint patterns of the three-bit odd-parity example have identical one-bit marginals. Picking the most probable bit independently can still violate parity. Evidence returning around a short graph cycle can make inference harder. This synthetic posterior describes neither a logical threshold nor a measured decoder.

A noisy check weakens its message

If a measured parity bit is flipped independently with probability ε, its signed information is reduced by 1−2ε. The binary check update becomes 2 atanh[(1−2ε)(−1)^s Π_j tanh(L_j/2)] for the neighboring variables excluding the destination. At ε=0.5 the message is zero: an entirely random check supplies no evidence. At ε=0 the exact parity rule is recovered. This factor is appropriate only for the stated independent measurement-flip model. Persistent measurement faults or analog signals correlated across checks need a joint factor rather than repeated independent confidence multipliers.

Sources

  • Joschka Roffe; David R. White; Simon Burton; Earl Campbell · · Research paper · Peer-reviewed publication recorded · journals.aps.org
    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.