Decoding and measurement-error models
Decode syndrome histories using explicit data and readout error models rather than trusting a single round.
On this page
The question for today
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 , where 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.
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 . 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.
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.
Work it through
A pair of temporal detection events
Assume a known initial measured bit and subsequent bits . Compare two specified explanations: one round-two measurement fault with probability , or two data toggles with probability each. All other factors cancel.
Successive exclusive-ors give . The two adjacent events are consistent with one wrong middle measurement, though the observation alone does not prove that history.
Relative to the common no-fault baseline, the measurement explanation has odds . The two independent data toggles have odds .
The likelihood ratio of those two specified histories is in favor of the measurement fault. Equivalently its weight is , less than .
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.
The living notebook
Explore the model
Interactive lab · probability
Independent repeated readout
Reset and set success probability and trials . Treat successes as readout flips of one fixed parity and predict that bars two and three total . 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.
- Mean · np
- 5
- Variance · np(1−p)
- 2.5
- Total probability
- 1
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.
Pause & reason
Check your understanding
Your turn
Try it yourself
A fixed parity is measured three times with marginal flip probability . Compare the majority error if flips are independent with a model where one common event flips all three with probability . 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 . Under the common-event model, either every outcome is correct or every outcome is wrong, so majority error is . Each readout still has marginal error in both models. Thus equal single-readout rates do not determine the joint history distribution, and assuming independence would overstate the protection.
Keep the idea
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.