CSS code operators and the projection converse
OpenQAlgorithms.Papers.Independent.Extend50.P30.cssCodeRelationFor prime , , and any defect subspace , let and let be the independent Pauli average over , . The forward statement is proportionality. Conversely, if has unscaled an orthogonal projection, is the CSS relation for its left defect.
This gives the source's css code operators and the projection converse 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 p.40, Theorem 4.24: forward proportionality and only the printed projection converse. -/
theorem cssCodeRelation (d t : ℕ) [NeZero d] [Fact (Nat.Prime d)] (ht : 1 ≤ t) :
(∀ N : Submodule (ZMod d) (ResidueRegister d t), IsDefect N →
relationOperator (cssRelation N) = (Nat.card N : ℂ) • cssProjector N ∧
relationOperator (cssRelation N) = ((d : ℂ) ^ Module.finrank (ZMod d) N) • cssProjector N) ∧
(∀ T : Lagrangian d t, (relationOperator T.val).IsHermitian →
relationOperator T.val * relationOperator T.val = relationOperator T.val →
T.val = cssRelation (leftDefect T.val)) := 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 and natural number , let , define modulo for even and modulo otherwise, and set . For any subspace , define , and for any relation define if and otherwise. Put , , and define unless , in which case
Define . For every on which vanishes and satisfying , both and hold. Furthermore, for every subspace satisfying , , and on , if the unnormalized matrix is Hermitian and satisfies , then , where . The subspace is allowed.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.