CSS relation composition
OpenQAlgorithms.Papers.Independent.Extend50.P30.cssCompositionLet be prime, , and be defect subspaces. Construct by existential relational composition. Then , its defects are and , and its induced quotient map is whenever , , and . This is independent of the chosen representatives.
This gives the source's css relation composition in the fixed computational-basis and phase conventions.
Formalization Note Pure states carry norm one; stabilizer averages use density matrices to discard global phases. All finite tensor indices are explicitly ordered by copy, then physical qudit.
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P30
noncomputable section
open scoped BigOperators ComplexConjugate Matrix
namespace QAlgorithms.Papers.Independent.Extend50.P30
open QAlgorithms.Papers.Independent.Information100.P63 (tensorPower)
open QAlgorithms.Papers.Independent.Gap20.P06 (ketBra)
attribute [local instance] Classical.propDecidable
/-- PDF pp.40--41, Lemma 4.25: computed CSS composition realizes precisely the data in (4.25). -/
theorem cssComposition (d t : ℕ) [NeZero d] [Fact (Nat.Prime d)] (ht : 1 ≤ t)
(N M : Submodule (ZMod d) (ResidueRegister d t)) (hN : IsDefect N) (hM : IsDefect M) :
let T := composeRelation (cssRelation N) (cssRelation M)
IsStochasticLagrangian T ∧
leftDefect T = (N ⊔ M) ⊓ perpendicular N ∧
rightDefect T = (N ⊔ M) ⊓ perpendicular M ∧
(∀ x y, (x, y) ∈ T ↔ x ∈ perpendicular (leftDefect T) ∧
y ∈ perpendicular (rightDefect T) ∧ x - y ∈ N ⊔ M) ∧
(∀ x y hx hy, x - y ∈ N ⊔ M →
canonicalDefectMap T (defectClass (rightDefect T) y hy) = defectClass (leftDefect T) x hx) ∧
(∀ n : ℕ, tensorRelation n (cssRelation N) * tensorRelation n (cssRelation M) =
((Nat.card ↥(N ⊓ M) : ℂ) ^ n) • tensorRelation n T ∧
tensorRelation n (cssRelation N) * tensorRelation n (cssRelation M) =
((d : ℂ) ^ (n * Module.finrank (ZMod d) ↥(N ⊓ M))) • tensorRelation n T) := by sorry
end QAlgorithms.Papers.Independent.Extend50.P30
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For every nonzero prime natural number , natural number , and subspaces , define modulo for even and modulo otherwise, and define perpendicular subspaces using the bilinear form modulo . Assume vanishes on and and . Write , define analogously, and let be the linear span of . Then has elements, contains , and satisfies for every . Its subspaces and satisfy and , and
For , define by choosing a representative of the input class and then choosing with , returning , or zero if no such exists. For all and with , one has . Finally, define , indexed by , by . For every natural number , including ,
For , each defining product is the empty product .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.