Correctable errors are closed under linear combinations; weight-t Pauli errors give all t-qubit errors
OpenQAlgorithms.GottesmanIntro.corrects_linearCombinationLet be a quantum code on qubits, i.e. a linear subspace of . Say that corrects a set of operators if there is one quantum operation (a trace-preserving map , ) such that for every and every unit vector ,
Then:
- If corrects , then corrects the whole linear span .
- For every , if corrects every Pauli operator of weight at most (a tensor product of with a phase, at most factors different from ), then corrects every operator that acts on at most qubits. Such an operator has the form for an arbitrary, not necessarily unitary, operator on a set of at most qubits.
The theorem reduces error correction to a basis of errors. It is why it suffices to correct the discrete Pauli errors in order to correct arbitrary, even continuous or non-unitary, errors on few qubits.
Formalization Note The factor is forced by trace preservation of . One recovery must serve all errors at once: this is the source's procedure (record the error, measure, invert). With separate recoveries the claim fails.
import Definitions.Def_QAlgorithms_Defs_FTCircuit set_option autoImplicit false
namespace QAlgorithms.GottesmanIntro
open scoped Matrix
open QAlgorithms Stabilizer
/-- Gottesman intro p.4, Theorem 2: for an `n`-qubit quantum code `C`, (1) if `C` corrects the
errors `A` and `B` (with one recovery operation), it corrects every linear combination of `A`
and `B` (all of them with one recovery operation); (2) if `C` corrects all Pauli errors of
weight at most `t`, it corrects all errors acting on at most `t` qubits (arbitrary, not
necessarily unitary, operators; p.5). -/
theorem corrects_linearCombination (n : ℕ) (C : Submodule ℂ (EuclideanSpace ℂ (Qubits n))) :
(∀ A B : Matrix (Qubits n) (Qubits n) ℂ, Corrects C {A, B} →
Corrects C (Submodule.span ℂ {A, B} : Set (Matrix (Qubits n) (Qubits n) ℂ))) ∧
∀ t : ℕ, Corrects C {M | ∃ P : PauliString n, P.weight ≤ t ∧ M = P.toMatrix} →
Corrects C {E | ActsOnAtMost t E} := by
sorry
end QAlgorithms.GottesmanIntro
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix and a complex subspace (the -qubit state space).
Correctability. For a set of complex matrices, " corrects " means the following. There exists a single map from matrices to matrices that is a Kraus-form channel, meaning for finitely many with . This one must satisfy, for every and every unit vector ,
The theorem is a conjunction of two statements.
-
Spans. For all matrices : if corrects , then corrects the entire complex linear span .
-
From Paulis to local errors. For every , suppose corrects the set of Pauli-string matrices of weight . Then corrects every matrix acting on at most qubits.
- Pauli strings. These are the matrices
where $Y=\begin{pmatrix}0&-i\\ i&0\end{pmatrix}$. Factor $q$ acts on wire $q$.
-
Weight. The weight of a Pauli string is the number of factors . The overall phase is unrestricted.
-
Acting on at most qubits. acts on at most qubits if there are:
- a set of at most wires;
- an injective listing with image inside ;
- an arbitrary (not necessarily unitary) matrix ,
such that is placed on wires and the identity elsewhere. Explicitly, when and agree outside the image of , and otherwise.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.