Empirical/QM: discretization of errors (why correcting four Paulis corrects a continuum) #
Category: 3-Local. QM-validity layer.
A quantum error is an arbitrary operator — a continuum of them, parameterised by four complex
numbers per qubit. A code corrects only finitely many. The reason quantum error correction works
at all is discretization: every single-qubit operator is a ℂ-combination of the four Paulis
{I, X, Z, XZ}, so an arbitrary error carries a corrupted codeword nowhere outside the span of
the four correctable ones. Handling four discrete errors therefore handles the continuum.
This is the conceptual content that makes QEC/ThreeQubit.lean (bit flips) and
QEC/PhaseFlip.lean (phase flips) into a general error-correction claim rather than a pair of
special cases, and it is what Shor's 9-qubit code turns into a full single-qubit code.
What this file proves #
pauli_decomposition— the discretization itself: every2 × 2complex matrix isc₀·I + c₁·X + c₂·Z + c₃·XZ, with the coefficients given explicitly in terms of its entries ((M₀₀ ± M₁₁)/2and(M₀₁ ± M₁₀)/2). Four numbers, no analysis, no choice.pauli_span_top— the same fact as a spanning statement:span ℂ {I, X, Z, XZ} = ⊤. The Pauli set is not merely sufficient for the errors a code happens to face; it exhausts the single-qubit operator space.error_discretization_qubit₁ / ₂ / ₃— the consequence on the three-qubit code: an arbitrary single-qubit error on any of the three qubits is the corresponding combination of the four discrete errors on that qubit, as operators onH3.errored_codeword_eq— and hence on states: the corrupted codeword(E ⊗ I ⊗ I)·vis that same combination of the four correctable corrupted codewords, for everyv.
Scope — what this does and does not give #
This is the discretization half of the argument, and it is exact and dimension-free. It says an arbitrary error produces no state outside the span of the four discrete ones.
It is not by itself a proof that the three-qubit code corrects arbitrary errors — that code
corrects bit flips only ({I, X₁, X₂, X₃}), and Z errors are outside its correctable set, as
PhaseFlip.lean exists to complement. Completing the argument to "any single-qubit error" needs
the concatenated Shor 9-qubit code, whose correctable set spans all four Paulis on each
qubit; that is an open item (specs/BACKLOG.md) blocked on 9-qubit (512-dimensional)
infrastructure, not on this file. The other half — that measuring the syndrome collapses a
superposition of error branches onto one correctable branch — likewise needs the orthogonality of
the error subspaces and is not claimed here is delivered in
QEC/SyndromeCollapse.lean (errored_pairwise_orthogonal,
three_qubit_corrects_span_error). Corrected 2026-08-04 (codebase audit). — it read as open beside the genuinely-open Shor-9
item, and this file's References never pointed at its own sequel.
References #
QEC/ThreeQubit.lean (pX, pZ, kron3, X1/X2/X3, logical);
QEC/PhaseFlip.lean (the Z-error half); specs/BACKLOG.md (Shor-9 / concatenation);
specs/future-work.md. Shor 1995; Nielsen–Chuang §10.2 (discretization of errors).
The fourth Pauli #
The fourth Pauli XZ = !![0,−1;1,0] (= −i·Y; the global phase is irrelevant to error
correction, and staying phase-free keeps the coefficients rational in the entries).
Instances For
Discretization: the four Paulis span every single-qubit operator #
Discretization of errors. Every single-qubit operator is a ℂ-combination of the four
Paulis {I, X, Z, XZ}, with coefficients read off its entries. A continuum of possible errors
collapses to four discrete ones — the fact that makes quantum error correction possible.
Lifting the decomposition to the three-qubit code #
(XZ)₁ = XZ ⊗ I ⊗ I. The Z₁/Z₂/Z₃ lifts are QEC/PhaseFlip.lean's, reused.
Instances For
(XZ)₂ = I ⊗ XZ ⊗ I.
Instances For
(XZ)₃ = I ⊗ I ⊗ XZ.
Instances For
kron3 is ℂ-linear in each slot, so the Pauli decomposition lifts verbatim.
An arbitrary error on qubit 1 is a combination of the four discrete errors on qubit 1.
An arbitrary error on qubit 2 is a combination of the four discrete errors on qubit 2.
An arbitrary error on qubit 3 is a combination of the four discrete errors on qubit 3.
The corrupted codeword stays in the span of the four correctable ones. For every state
v — codeword or not — an arbitrary single-qubit error on qubit 1 produces exactly the
corresponding combination of the four discrete corrupted states. So no continuum of outcomes
accompanies the continuum of errors.