How many qubits of error information should a decoder keep while it waits for the syndrome? One qubit suffices for pure, nonorthogonal repetition-code flags. A streaming instrument fuses the flags as they arrive. After the syndrome, the retained qubit and a classical index give the same minimum logical error as a collective measurement that waits with all the flags.
In a four-site example with independent bit flips of probability
| Question | Result |
|---|---|
| What is sufficient for an arbitrary-length repetition block? | One persistent qubit, a classical index and one fusion per flag after the first |
| Can a purely classical record match it? | It cannot attain the ideal optimum in the biased four-flag example. At equal priors a collective early measurement can attain the optimum. |
| What changes for a binary linear syndrome |
|
In a three-site repetition example, weak independent phase flips on the incoming flags make three qubits necessary to match the exact waiting optimum. The original one-qubit circuit still stays within the phase-flip probability of that optimum. At a phase-flip probability of 1/8, every decoder that keeps at most two qubits loses more than 0.000013 in absolute logical-error probability. The lower bound covers arbitrary joint processing before the syndrome and unlimited classical storage. Mixed incoming flags
In Quantum-Erasure-Flag-Compression, a monitor designs the flag message and the decoder must recover an unknown logical state exactly. For three blocks of the fixed CSS code, the monitor sends six qubits. The decoder keeps five qubits and a three-symbol classical record while it waits for the syndrome. The sister result gives the exact storage costs for any number of blocks.
- Keep one flag. Use the first supplied flag as the accumulator and record its site. For each new flag, initialize one auxiliary qubit to zero and apply the calibrated three-qubit fusion. Measure both meter qubits in the computational basis and release them. If their two-bit record selects the incoming flag's sign, update the retained site index. Every outcome supplies a valid accumulator.
- Use the syndrome. When the adjacent-check syndrome arrives, compute its two candidate error patterns and their conditional probabilities. Use the retained site to match the accumulator's two candidate states to those patterns. Rotate to the known binary decision basis, measure the accumulator and return the selected Pauli correction for the recovery endpoint to apply to the code block.
One supplied flag is consumed per site. The persistent record is one qubit and a classical site index. The circuit also requires auxiliary preparation and release, two meter bits per fusion, calibrated overlaps and controls, and the final basis rotation. The full-record benchmark gives the ideal logical error. The noise analysis accounts for specified deviations.
- Model and exact recovery objective defines the flag channel, the syndrome cut and the full-record benchmark.
- Streaming decoder gives the two-flag fusion instrument and its physical workspace.
- Early readout proves the finite joint-measurement gap and the exponent for adaptive single-flag measurements.
- Noise gives finite and asymptotic results for phase flips in the accumulator and a separate bound on arbitrary gate deviations.
- Mixed incoming flags proves the exact memory requirement and the approximate-risk bounds at a fixed prior.
- Linear syndromes extends the construction and proves the memory lower bound for all-prior sufficiency.
The pure- and mixed-flag results use calibrated flag states, a classical distribution of Pauli bit flips and an exact, delayed syndrome. The full zero-memory collective error exponent and the minimum memory for a single fixed prior with several logical labels remain open. The related work explains the connections to state discrimination, quantum belief propagation and decoder flags.
John Watrous’s The Theory of Quantum Information (2018) is the educational anchor. The Watrous bridge links the textbook measurements and channels to the decoder. The 30 milestones lead from the two-state test through the noise comparisons and the linear-syndrome construction. The LLM guide points to exact scientific and educational routes.
From the repository root, run:
python3 verification/run_all.pyThe checks use only the Python standard library. They verify the fusion probabilities and overlaps, reproduce the four-flag witness and certify the storage-noise tolerance, the mixed-flag memory gap and its limit at weak input dephasing. The verification guide gives the expected results and their scope.
This repository serves as a record of the work and a guide for the author’s self-directed learning. For discussion or potential collaboration, please contact Ruge Lin at gogoko699@gmail.com.