Knill–Laflamme condition for quantum error correction
OpenQAlgorithms.GottesmanIntro.knillLaflammeThis is the Knill–Laflamme criterion.
Let be a finite-dimensional Hilbert space, a linear space of operators on (the errors) and a subspace. Say corrects if there is a quantum operation on (a map with ) such that for all and all unit vectors . Then corrects if and only if there is a function such that
The criterion turns the existence of a recovery operation into a checkable condition on the code alone. It is the basis of the distance, degeneracy and counting bounds that follow.
Formalization Note The function is quantified before , so it does not depend on the state. Codewords are normalized, following the source's convention of omitted normalization (p.2).
import Definitions.Def_QAlgorithms_Defs_FTCircuit set_option autoImplicit false
namespace QAlgorithms.GottesmanIntro
open scoped Matrix
open QAlgorithms Stabilizer
/-- Gottesman intro p.6, Theorem 3 (Knill–Laflamme): for a linear space `𝓔` of errors on a
finite-dimensional Hilbert space `H` and a subspace `C` of `H`, `C` is a quantum
error-correcting code correcting `𝓔` iff there is a function `c(E)`, independent of the state,
with `⟨ψ|E†E|ψ⟩ = c(E)` for all `E ∈ 𝓔` and all normalized `|ψ⟩ ∈ C` (eq. (29)). -/
theorem knillLaflamme {ι : Type*} [Fintype ι] [DecidableEq ι]
(𝓔 : Submodule ℂ (Matrix ι ι ℂ)) (C : Submodule ℂ (EuclideanSpace ℂ ι)) :
Corrects C (𝓔 : Set (Matrix ι ι ℂ)) ↔
∃ c : Matrix ι ι ℂ → ℂ, ∀ E ∈ 𝓔, ∀ ψ ∈ C, ‖ψ‖ = 1 → inner ℂ ψ (act (Eᴴ * E) ψ) = c E := by
sorry
end QAlgorithms.GottesmanIntro
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let be a finite index set with decidable equality. Let be a complex linear subspace of the complex matrices, and let be a complex subspace of .
Statement. The following are equivalent.
- corrects . There is a single Kraus-form channel with the following property. Here for finitely many matrices with . For every and every unit vector ,
Here is the matrix .
- Constant expectation. There is a function from matrices to such that, for every and every unit vector ,
The inner product is conjugate-linear in its first argument.
Condition 2 constrains only the diagonal expectations of single operators . It requires these to be independent of the unit codeword . It does not explicitly mention cross terms .
If , there are no unit vectors in , and both sides hold trivially.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.