The encoded message stays a superposition
Encoding spreads the superposition over the code space. It does not clone the input into independent copies.
Q045 · Detect, decode and repair
Can you find an error without reading the encoded message? Yes. Auxiliary checks reveal how an error changed relations between encoded qubits, leaving the logical message unread. Their combined result, the syndrome, selects a repair for the errors the code can correct. Ideal repetition checks repair bit flips; the five-qubit code corrects any single-qubit error.
Move an error between encoded qubits, read the auxiliary checks and test the repair. Compare bit-flip protection with a five-qubit code.
Only the auxiliary qubit is read here
Ideal circuit protocol. The lines are registers, not atom trajectories. One auxiliary qubit is reset and reused for each check.
Ready. Nothing recorded yet.
02 / What the records say
Ideal target-state verification, with pointwise 95% Wilson intervals. The unencoded comparator is an independent qubit exposed to the same memory channel and forced error.
03 / The decoder sees only the checks
Multiple errors can imitate one correctable error. A flipped syndrome can trigger the wrong repair. The final target projection consumes the encoded state and is kept separate from the syndrome measurement.
04 / Save the evidence
Most recent twelve trials shown. Export keeps every zero and every failed outcome. Save up to six samples, then restore their settings and records.
Generators are measured through a fresh auxiliary qubit: Hadamard, controlled Pauli factors, Hadamard, readout. After each controlled gate the touched data qubit may receive a uniform Pauli fault. Ancilla propagation faults, leakage, correlated noise, encoding faults and verification faults are omitted. Memory noise acts independently on each data qubit before extraction. Correction gates are ideal.
The repetition code protects against bit flips only. The five-qubit code corrects any single-qubit error when the checks are perfect. The random error rates belong to one assumed noise model; they are not a hardware error breakdown or a fault-tolerance threshold. Resource counts cover the checks only, not encoding or verification circuits.
IBM · Stabilizer codes · Laflamme et al. · Perfect quantum code
Physics tutorial
BackgroundMove an error between encoded qubits, read the auxiliary checks and test the repair. Compare bit-flip protection with a five-qubit code.
Why it mattersPredict from what you can actually observe, then check the prediction separately.
Start with the essentials
Encoding spreads the superposition over the code space. It does not clone the input into independent copies.
A Hadamard on the auxiliary qubit, a controlled stabilizer and a final Hadamard carry out these projectors. The syndrome on screen is the classical readout, including any readout flips you selected.
For an encoded zero state with independent bit-flip errors in memory and perfect syndrome extraction, the code fails only when two or three bits flip. It does not protect against phase errors, and it does not establish a fault-tolerant threshold.
The ideal projection onto the target state is sampled into pass or fail records. It is not a syndrome measurement, and it is not a general measure of logical error.
Typical misconceptionThe syndrome is the logical message.
Better mental modelThe decoder sees only the auxiliary check bits. The final projection onto the known target is a separate test that destroys the state.
Typical misconceptionA successful simulated run certifies a device.
Better mental modelThe small register is simulated exactly, with one auxiliary qubit that is reused. Pauli faults in memory, faults after controlled gates that hit only data qubits and classical flips of the syndrome readout are set separately. Encoding and the final verification are ideal. A single round of syndrome extraction is not fault tolerant and does not establish a threshold.
Repair a bit flip with the repetition code. Then keep the code and switch to a phase-sensitive input with a phase error.
What to observe: The phase error can leave every check silent and still fail the final verification.Repeat the phase-error experiment with the five-qubit code. Follow syndrome extraction, decoding, correction and final verification one step at a time.
What to observe: The syndrome from the auxiliary qubit picks the repair without reading the logical amplitudes.Remove the forced error and raise the gate or readout errors. Compare how often encoded and unencoded qubits survive, alongside the resources the checks use.
What to observe: Noisy correction can make things worse. One round of these unprotected checks is not fault tolerant.Quantum evidence · Reading path
Articles on this path that use this experiment, followed by the other experiments they suggest.
Quantum evidence · Reading path
Articles on this path that use this experiment, followed by the other experiments they suggest.