Quantum Computing Master Course — 124. Syndrome Histories
Lesson 124: Syndrome Histories
Smartyfy Quantum Computing Master Course
Objectives and prerequisites
Turn repeated noisy check outcomes into detection events, distinguish simple data-error and measurement-error patterns, and explain why decoding uses time as well as space. Prerequisites are stabilizer eigenvalues, XOR, and ideal syndrome extraction. This lesson begins with a single check to make the timing convention explicit, then extends the idea to a code.
Raw syndrome and detection event are different
Let s(t) be the ideal binary outcome of a particular stabilizer check in round t: 0 for +1 and 1 for −1. Let e(t) be a classical readout-flip bit, and let m(t) = s(t) XOR e(t) be the recorded outcome. For the first examples, readout flips do not themselves disturb the data, and all other extraction operations are ideal.
Define a detection event d(t) = m(t) XOR m(t−1). It marks a change between consecutive recorded outcomes. If a data error changes a check’s eigenvalue and then persists, the raw syndrome stays flipped; the detection event appears only when the change happens. An isolated measurement mistake instead flips one recorded round and then flips back.
We assume the check has a known initial recorded value m(0) = 0 and no active correction changes its expected sign during the example. These assumptions matter. If the initial sign is unknown, comparing it to an invented zero would create a fictitious event. If software tracks a Pauli frame, comparisons must account for the corresponding expected check values.
Worked time sequences
Consider rounds 1 through 5. A persistent data error arriving between rounds 2 and 3 gives ideal and recorded outcomes 0, 0, 1, 1, 1. Including the initial zero, successive XORs give detection events 0, 0, 1, 0, 0. A single wrong readout at round 3 with no data error gives recorded outcomes 0, 0, 1, 0, 0 and events 0, 0, 1, 1, 0.
| Scenario | Recorded m(1)…m(5) | Events d(1)…d(5) |
|---|---|---|
| Persistent data change before round 3 | 00111 | 00100 |
| Readout flip only at round 3 | 00100 | 00110 |
| No error | 00000 | 00000 |
| Data change before round 3 and readout flip at round 3 | 00011 | 00010 |
The final row shows why a local pattern is not a perfect diagnosis. The data change is hidden by a readout flip in its first affected round, so its apparent onset is delayed. Multiple faults can combine or cancel in the event record. A decoder must compare candidate explanations and their probabilities instead of applying an infallible visual rule to each pair of dots.
Add space to the history
Return to the patch from Lesson 123. A center Ze data error flips both neighboring X checks A2 and A3. If it occurs between two ideal rounds, it creates simultaneous detection events at those two check locations. A readout flip of A2 in one round creates two events at A2 in adjacent times. The first pattern is spatial; the second is temporal.
A space-time decoding graph places vertices at check locations and rounds. Edges represent modeled elementary fault mechanisms that create pairs of detection events, or an event paired with an allowed boundary. Spatial edges often represent data errors, and temporal edges often represent readout errors in a simplified phenomenological model. Here phenomenological means assigning effective data and measurement errors directly rather than deriving every effect from individual extraction gates.
Circuit-level models are richer. A fault during an entangling gate can affect data and readout together, producing diagonal or correlated event patterns. Some mechanisms create more than two relevant events and need a richer representation or an approximation when using a pair-matching decoder. An attractive three-dimensional picture is useful only if its edges match the actual modeled circuits.
Beginning and ending the experiment
A finite record has temporal boundaries. At preparation, some stabilizer values may be known from the chosen encoded state and others may not yet have been established. At final destructive data measurement, compatible parity products can sometimes provide a final check value. For example, Z-basis data readout permits evaluation of Z-type check parities, but it does not simultaneously reveal X-type check outcomes.
A persistent error’s event may therefore connect to another spatial event, a spatial boundary, or an allowed temporal boundary. One must specify the initialization and final-readout protocol before deciding which connections are valid. A missing final comparison cannot be silently interpreted as evidence that the error disappeared.
Why simple majority voting is limited
If a check’s true value is constant for three independent readouts, each flipped with probability q, majority voting fails with probability 3q²(1−q) + q³ = 3q² − 2q³. At q = 0.1 this is 0.028, lower than 0.1. This is a useful elementary readout calculation under its stated assumptions.
During ongoing computation, however, the true check value may change because data errors occur. Majority voting across time can then erase or delay a genuine transition. Space-time decoding uses the structure of changes rather than treating all rounds as repeated observations of one unchanging classical bit. Repeated checks are needed, but the way their records are interpreted matters.
The number of rounds required for a reliable logical operation depends on its distance, extraction scheme, boundaries, and noise model. Many standard surface-code procedures use a number of rounds that scales with distance, but one fixed universal round count cannot be inferred from this five-round illustration. Latency and decoder throughput also enter the implementation.
Four exercises with worked solutions
-
For m(0) = 0 and m(1)…m(4) = 0110, calculate the events.
Solution. Compute 0 XOR 0 = 0, 1 XOR 0 = 1, 1 XOR 1 = 0, and 0 XOR 1 = 1. The event sequence is 0101.
-
Why does one isolated readout flip produce two events?
Solution. The faulty recorded value disagrees with both the preceding and following correct values. Therefore the entering and leaving comparisons each flip, assuming both neighboring rounds are present.
-
Evaluate three-readout majority failure at q = 0.02.
Solution. Substitute into 3q² − 2q³: 3 × 0.0004 − 2 × 0.000008 = 0.001184. The reduction relies on a constant true value and independent readout flips.
-
Can final Z-basis data readout close every X-check history?
Solution. No. Individual Z outcomes supply compatible Z-parity products. They do not reveal incompatible X products on the same data. Temporal boundary rules depend on which observables were actually measured.
Five explained multiple-choice questions
-
A detection event is: A. A check outcome that disagrees with the final logical measurement. B. Every raw syndrome bit equal to one. C. The parity of all check outcomes within the same round. D. A change between consecutive recorded check values.
Answer: D. Taking a time difference distinguishes persistent syndrome values from their changes.
-
One readout flip in an interior round usually produces: A. No events. B. A permanent raw syndrome change. C. Two time-adjacent events at the same check. D. One event at every check.
Answer: C. The false value changes both adjacent comparisons in the simplified model.
-
A center data error affecting two checks can produce: A. Two spatially separated events in the same round. B. Only one temporal edge. C. Two consecutive events at only one check in every case. D. A flip in every later detection-event bit at those checks.
Answer: A. Both neighboring check values change when the error occurs.
-
Majority voting across time assumes, in the stated calculation: A. Arbitrary correlated faults. B. A constant true value and independent readout flips. C. A different true bit each round. D. Perfect data recovery from all patterns.
Answer: B. Changing data syndromes violate the constant-value premise.
-
Space-time graph boundaries depend on: A. Initialization, final measurement, and allowed fault mechanisms. B. Only the spatial patch, regardless of preparation and final readout. C. Only the number of rounds, regardless of which observables are measured. D. A convention that every missing final comparison equals zero.
Answer: A. These determine which event endpoints and comparisons are physically meaningful.
Pitfalls and summary
Declare the initial reference, use differences rather than raw bits when defining events, and do not overinterpret a simple pattern in the presence of multiple faults. Repeated syndrome extraction turns error correction into a structured inference problem across space and time.
Primary sources and further study
These sources support the definitions and context. The numerical examples, exercises, and explanations here were prepared for this lesson. Research papers are optional advanced reading.