All stabilizer moments
OpenQAlgorithms.Papers.Independent.Extend50.P30.stabilizerMomentFormulaLet be prime and . Average uniformly over the finite set of pure stabilizer density matrices, counting each global-phase class once. The resulting moment is the sum of all stochastic Lagrangian relation tensors divided by its trace normalization. This holds also for .
This gives the source's all stabilizer moments 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.46, Theorem 5.3: all positive n,t, with no stable-range hypothesis. -/
theorem stabilizerMomentFormula (d n t : ℕ) [NeZero d] [Fact (Nat.Prime d)]
(hn : 1 ≤ n) (ht : 1 ≤ t) :
stabilizerMoment d n t = (momentNormalization d n t : ℂ)⁻¹ •
∑ T : Lagrangian d t, tensorRelation n 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 numbers with and , the following matrix identity holds. Write , let if is even and otherwise, and put and . For , define
where hats denote representatives in . Form the finite matrix set . Among its subsets , retain those containing the identity, closed under multiplication and conjugate transpose, and satisfying , . Set . Let be the finite set of matrices obtained this way that also equal for some unit vector ; repetitions are removed because this is a set. For , call admissible here precisely when , , and in for every . Denote the finite set of these submodules by , and define a matrix indexed by -tuples of elements of by
For any matrix , write . The asserted identity is
The product in the denominator is empty, hence , when ; inverses throughout these definitions use the convention .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.