Every error syndrome of a stabilizer is realized by a Pauli error
ProvedQAlgorithms.GottesmanIntro.exists_pauli_of_syndromeLet be the -qubit Pauli group and let generate a stabilizer , that is, an Abelian subgroup of with , and suppose the generators are independent, i.e. . The error syndrome of a Pauli operator is the vector in whose -th bit is if commutes with and if it anticommutes.
Then for every there is with syndrome :
This lemma is the step in the proof of the dimension count of stabilizer codes (Theorem 5) that shows all syndrome subspaces are nonempty.
Formalization Note The syndrome is relative to the generator list, as in the source's proof; the independence of the generators (used in the proof as linear independence of their binary vectors) is the hypothesis . The anticommutation clause is stated explicitly.
import Definitions.Def_QAlgorithms_Defs_QECC set_option autoImplicit false
namespace QAlgorithms.GottesmanIntro
open Stabilizer
/-- Gottesman intro p.12–13, Lemma 1: given a stabilizer `S` (an Abelian subgroup of `P_n`
with `−1 ∉ S`) with independent generators `g_1, …, g_a` (so `|S| = 2^a`), every error syndrome
`v ∈ F_2^a` is the syndrome of some Pauli operator `E`: `E` commutes with `g_i` when `v_i = 0`
and anticommutes with `g_i` when `v_i = 1`. -/
theorem exists_pauli_of_syndrome (n a : ℕ) (g : Fin a → Matrix.unitaryGroup (Qubits n) ℂ)
(hS : IsStabilizerGroup (Subgroup.closure (Set.range g)))
(hcard : Nat.card (Subgroup.closure (Set.range g)) = 2 ^ a) (v : Fin a → ZMod 2) :
∃ E ∈ pauliGroup n, ∀ i : Fin a,
(v i = 0 → (g i : Matrix (Qubits n) (Qubits n) ℂ) * E = E * g i) ∧
(v i = 1 → (g i : Matrix (Qubits n) (Qubits n) ℂ) * E = -((E : Matrix (Qubits n) (Qubits n) ℂ) * g i)) := by
sorry
end QAlgorithms.GottesmanIntro
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix natural numbers and . Let be unitary complex matrices, indexed by in the code, with rows and columns indexed by . Let be the subgroup of the unitary group they generate.
Pauli group. is the subgroup of the unitary group generated by all matrices of the form
Hypotheses.
- is a stabilizer group.
- .
- is abelian.
- No element of equals .
- Size of . has exactly elements. This forces to be finite.
Conclusion. For every binary vector there exists such that, for each :
as matrix equalities.
Degenerate case. When there are no generators. Then is trivial, the size hypothesis reads , and the conclusion holds for any , e.g. the identity.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.