Stabiliser families, the group projector, and the stabilised state (GK-3) #
Category: 1-Mathlib (CSD-free).
The stabiliser layer over the Pauli algebra (plan specs/gottesman-knill-plan.md, GK-3),
in the corpus's hypothesis-driven concrete style: a stabiliser family is indexed by
๐ฝโ^m directly โ ๐ฝโ-linear label maps A B : ๐ฝโ^m โ ๐ฝโโฟ and a sign function
ฯ : ๐ฝโ^m โ ๐ฝโ subject to the one coherence law
ฯ(x+y) = ฯ(x) + ฯ(y) + B(x)ยทA(y),
which is exactly the condition that the signed Paulis ฯ(ฯx)ยทX^{Ax}Z^{Bx} form a genuine
group (the ๐ฝโ pairing on the right is the phase of pauliOp_mul) โ the "โI โ S"
condition of the stabiliser formalism. Commutativity of the family is implied: coherence
at (x,y) and at (y,x) forces the symplectic form of any two members to vanish
(stab_symp_zero).
- โ
Absorption (
stabProjector_absorb): every signed element of the family fixes the group averageP = 2^{โm} โ_x ฯ(ฯx)ยทX^{Ax}Z^{Bx}โ one reindexy โฆ x + y. - โ
Idempotence (
stabProjector_idem):Pยฒ = P, three lines from absorption. - โ
The trace (
stabProjector_trace): with independent labels,tr P = 2โฟ/2^mโ the dimension count of the code space;1for a full stabiliser (m = n). - โ
โ
The stabilised state exists (
stabState_exists): a nonzeroฯwithPฯ = ฯandฯ(ฯx)ยทX^{Ax}Z^{Bx} ฯ = ฯfor every group element โ the defining property of a stabiliser state, extracted fromtr P โ 0plus idempotence, no spectral machinery.
Both residues named at the first landing are now discharged in this file:
- Uniqueness/dimension (
stabProjector_rank,stabState_unique): the group average is a genuine linear projection (stabProjectorL,IsProjonto its range = the fixed space), so Mathlib's rank-equals-trace for projections (LinearMap.IsProj.trace) turns the trace count intofinrank (fixed space) = 2^{nโm}โ and for a full stabiliser (m = n) the stabilised state is unique up to scalar. - The measurement-update rule (
measProjsection): measuring an involutive Pauli observablegon a stabilised state โ โ the outcome is deterministic when the signedgis in the group (meas_deterministic); โ whenganticommutes with a group element the expectation vanishes (meas_expectation_zero) and both outcomes carry probability exactly1/2(meas_prob_half); and the post-measurement branch is stabilised byยฑgitself (pauliOp_measProj) and by every group element commuting withg(meas_update_fixes) โ the standard stabiliser update, stated operator-free.
Honest scope. Measurement is Born-weight bookkeeping on the corpus's coordinate
operators; no measurement dynamics is claimed (that is the CSD layer's business
elsewhere). The IsProj.trace route uses Mathlib's linear algebra, not a spectral theorem.
The stabiliser-group average
P = 2^{โm} โ_{x โ ๐ฝโ^m} ฯ(ฯx) ยท X^{Ax} Z^{Bx}, applied to a state.
Equations
- QuantumInfo.stabProjector A B ฯ ฯ = (2 ^ m)โปยน โข โ x : Fin m โ Fin 2, QuantumInfo.signChar (ฯ x) โข QuantumInfo.pauliOp (A x) (B x) ฯ
Instances For
Coherence forces the trivial sign at 0 โ the group contains +I, not โI.
Coherence at (x,y) and (y,x) forces the symplectic form of any two members to
vanish: the family is automatically abelian.
โ Absorption: every signed element of the family fixes the group average.
โ Idempotence, three lines from absorption.
โ
The trace of the group average is the code-space dimension count 2โฟ/2^m
(= 1 for a full stabiliser, m = n): only the identity label survives the Pauli trace,
and independence pins it to x = 0, where coherence forces the + sign.
โ
โ
The stabilised state exists: a nonzero ฯ fixed by the group average and by
every signed element of the family โ the defining property of a stabiliser state.
Extracted from tr P โ 0 and idempotence; no spectral machinery. (That the fixed space has
dimension exactly 2^{nโm} is the named uniqueness residue in the plan.)
The group average as a linear projection, and rank = trace #
The group average as a linear map.
Equations
- QuantumInfo.stabProjectorL A B ฯ = { toFun := QuantumInfo.stabProjector A B ฯ, map_add' := โฏ, map_smul' := โฏ }
Instances For
The linear-map trace is the coordinate diagonal sum this file computes.
The group average is a genuine linear projection onto its range.
The range of the group average is exactly the fixed space.
โ
โ
Rank equals trace โ the uniqueness residue discharged: the fixed space of a
stabiliser family with m independent generators on n qubits has dimension exactly
2^{nโm}. Via Mathlib's LinearMap.IsProj.trace; no spectral theorem.
โ
โ
The full-stabiliser state is unique up to scalar (m = n): any two stabilised
vectors are parallel.
Measurement of an involutive Pauli observable #
The outcome-s measurement branch of the Pauli observable X^a Z^b:
ฮ _s ฯ = (ฯ + ฯ(s)ยทgฯ)/2, the ฯ(s)-eigenspace projection.
Equations
- QuantumInfo.measProj a b s ฯ = 2โปยน โข (ฯ + QuantumInfo.signChar s โข QuantumInfo.pauliOp a b ฯ)
Instances For
โ
The random case, expectation: if some group element stabilising ฯ anticommutes
with the observable, the expectation โจฯ, gฯโฉ vanishes.
โ
The random case, Born weights: both outcomes carry probability exactly 1/2.
โ
The update rule: every group element commuting with the observable still
stabilises the post-measurement branch. Together with pauliOp_measProj this is the
standard stabiliser update: the new group is generated by ฯ(s)ยทg and the commuting part
of the old one.