research30 min studyLesson 437 in Physics

Decoding and measurement-error models

Decode syndrome histories using explicit data and readout error models rather than trusting a single round.

On this page

What you’ll understand

  • Distinguish a syndrome value from a detection event in time.
  • Compare candidate fault histories with likelihood weights.
  • Explain how repeated measurements help and when correlations defeat simple voting.

An error-correcting code does not specify a decoder by itself. The decoder combines check outcomes with a model of possible faults and chooses a recovery or a logical frame update. When check measurements can be wrong, the latest syndrome is not a reliable picture of the data. Repeating checks supplies temporal evidence, but interpretation requires the timing convention, the initial check sector, and the ways circuit faults can correlate data and readout errors.

Look for changes across rounds

Encode a check eigenvalue by a binary bit s, with zero for positive and one for negative. Let its measured bit be mt=st⊕etm_t=s_t\oplus e_t, where ete_t denotes a readout flip. Compare consecutive measurements through their exclusive-or. If the underlying check is initially stable, one isolated wrong measurement creates two consecutive changes: one on entering the wrong value and another on returning. A persistent data error instead changes the true syndrome until another data event or correction occurs.

The first comparison needs an initial value or boundary assumption, and the last needs a final measurement or an explicit temporal boundary. Ignoring these endpoints can turn a valid history into an apparent unmatched event. In a spatial code, data faults also connect neighboring checks. The decoder therefore works in a graph with spatial and temporal directions: different edge types represent different hypothesized faults, rather than literal trajectories of a measured quantum particle.

mt=st⊕et,dt=mt⊕mt−1m_t=s_t\oplus e_t,\qquad d_t=m_t\oplus m_{t-1}
All variables are dimensionless bits; t labels discrete measurement rounds. The readout-flip representation is a simplified phenomenological model, not a full ancilla-gate noise model.↔ Scroll wide equations horizontally.

Turn a fault model into a decision rule

For independent binary fault locations with probabilities p, a candidate history has a product of fault and no-fault probabilities. Relative to the no-fault baseline, each selected location contributes odds p/(1−p)p/(1-p). Taking negative logarithms converts their product into a sum of edge weights. For probabilities below one half, these weights are positive, making minimum-weight search natural. Different data and measurement probabilities imply different weights; the shortest geometric chain need not be most probable.

Choosing the single most likely history is not always the same as choosing the most likely logical class. Many distinct histories can differ by stabilizers while producing the same logical action. A maximum-likelihood logical decoder sums probabilities within each class before choosing. Minimum-weight matching is an important approximation for suitable graphlike noise models, not a universal Bayesian solver. Correlated multi-qubit faults and biased or coherent noise can require different models, weights, or inference algorithms.

wj=ln⁡1−pjpj,P(F)∝exp⁡ ⁣(−∑j∈Fwj)w_j=\ln\frac{1-p_j}{p_j},\qquad P(F)\propto\exp\!\left(-\sum_{j\in F}w_j\right)
The proportionality compares histories over the same fixed set of independent binary locations. Probabilities and logarithmic weights are dimensionless; zero or unit probabilities require limiting treatment.↔ Scroll wide equations horizontally.

Use repetition without inventing independence

Repeated readout can suppress an isolated measurement error when the underlying parity is fixed during the votes. Three independent flips with the same probability produce an incorrect majority only if at least two occur. That calculation is useful for a stationary calibration check. During active computation, however, real data errors may change the parity between rounds, and blindly voting across those changes can erase the signal the decoder needs.

Correlated readout faults can also defeat the apparent improvement: if a common disturbance flips all three outcomes together, their majority is wrong whenever that disturbance occurs. A faster decoder is useful only if its assumed graph captures relevant faults and its processing keeps pace with syndrome production. Recovery may be tracked as a Pauli frame instead of immediately applied, but later gates and measurements must interpret that frame consistently. Classical inference never reconstructs or measures the unknown logical amplitudes.

Pvote=3pm2(1−pm)+pm3P_{\mathrm{vote}}=3p_m^2(1-p_m)+p_m^3
This formula assumes a constant true parity during three independent, identically distributed readouts. It does not describe a changing data syndrome or a common-mode readout fault.↔ Scroll wide equations horizontally.

A pair of temporal detection events

Assume a known initial measured bit m0=0m_0=0 and subsequent bits (m1,m2,m3,m4)=(0,1,0,0)(m_1,m_2,m_3,m_4)=(0,1,0,0). Compare two specified explanations: one round-two measurement fault with probability pm=0.05p_m=0.05, or two data toggles with probability pd=0.01p_d=0.01 each. All other factors cancel.

  1. Successive exclusive-ors give (d1,d2,d3,d4)=(0,1,1,0)(d_1,d_2,d_3,d_4)=(0,1,1,0). The two adjacent events are consistent with one wrong middle measurement, though the observation alone does not prove that history.

  2. Relative to the common no-fault baseline, the measurement explanation has odds 0.05/0.95=1/190.05/0.95=1/19. The two independent data toggles have odds (0.01/0.99)2=1/9801(0.01/0.99)^2=1/9801.

  3. The likelihood ratio of those two specified histories is 9801/19≈515.849801/19\approx515.84 in favor of the measurement fault. Equivalently its weight is ln⁡19≈2.944\ln19\approx2.944, less than 2ln⁡99≈9.1902\ln99\approx9.190.

The result

Under this limited independent model the single measurement fault is about 516 times likelier than the stated two-data-toggle history; other histories must still be considered by a complete decoder.

Explore the model

Interactive lab

Interactive lab · probability

Independent repeated readout

Reset and set success probability p=0.10p=0.10 and trials n=3n=3. Treat successes as readout flips of one fixed parity and predict that bars two and three total 0.0280.028. Use Step to read each highlighted outcome probability. The lab computes exact binomial probabilities and never resamples measurements. It does not include evolving data, spatial checks, correlated readout, or a quantum decoder.

Independent repeated readoutThese are exact binomial probabilities for independent trials with one fixed success probability. Playback tours the distribution; it does not resample outcomes. Current readings: Mean · np: 5; Variance · np(1−p): 2.5; Total probability: 1. All parameters are adjustable with the labeled controls below.03581000.070.150.220.3Successes kP(X = k)k = 0 · P = 9.77e-4
Exact probabilityHighlighted outcomeMean np
Mean · np
5
Variance · np(1−p)
2.5
Total probability
1
t = 0 s

These are exact binomial probabilities for independent trials with one fixed success probability. Playback tours the distribution; it does not resample outcomes. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.

Look forThe benefit of repeated readout is conditional on a stable parity and independence across the recorded outcomes.

Check your understanding

What does one isolated wrong measurement of an otherwise constant check produce in consecutive-round detection events, away from boundaries?

Try it yourself

A fixed parity is measured three times with marginal flip probability 0.100.10. Compare the majority error if flips are independent with a model where one common event flips all three with probability 0.100.10. Are equal marginal rates sufficient for equal decoding performance?

Take a moment to make a prediction or work it out on paper. Open a hint when you need one.

Give me a hint

Enumerate two or three flips for independence, then treat the common disturbance as one shared event.

Compare with the solution

Independent majority error is 3(0.10)2(0.90)+(0.10)3=0.0283(0.10)^2(0.90)+(0.10)^3=0.028. Under the common-event model, either every outcome is correct or every outcome is wrong, so majority error is 0.100.10. Each readout still has marginal error 0.100.10 in both models. Thus equal single-readout rates do not determine the joint history distribution, and assuming independence would overstate the protection.

Take it with you

  • Detection events compare check outcomes across time and need boundary conventions.
  • Likelihood weights encode a specified noise model rather than geometry alone.
  • Repeated readout helps only under assumptions about data evolution and fault correlations.

Read further

Original sources and deeper explanations to follow at your own pace.

Optional progress, saved in this browser when available. Revisit any lesson at any time.

Lesson not marked complete.