Sum of traces of relation tensors
OpenQAlgorithms.Papers.Independent.Extend50.P30.sumRelationTracesLet be prime, , and . Each has trace , where is the diagonal relation. Their trace sum has the two product forms below. For this recovers the cardinality of , including the empty product at .
This gives the source's sum of traces of relation tensors 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.45--46, Remark 5.1: individual traces and both finite-product forms, including n=0. -/
theorem sumRelationTraces (d n t : ℕ) [NeZero d] [Fact (Nat.Prime d)] (ht : 1 ≤ t) :
(∀ T : Lagrangian d t, (tensorRelation n T.val).trace =
((Nat.card {x : ResidueRegister d t // (x, x) ∈ T.val} : ℂ) ^ n)) ∧
(∑ T : Lagrangian d t, (tensorRelation n T.val).trace) = (momentNormalization d n t : ℂ) ∧
(∑ T : Lagrangian d t, (tensorRelation n T.val).trace) =
(d : ℂ) ^ (n * t) * ∏ k ∈ Finset.range (t - 1), (1 + (d : ℂ) ^ ((k : ℤ) - n)) := 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 , every natural number , and every natural number , let , and let consist of all subspaces with , , and for every , where is evaluated modulo for even and modulo otherwise. Define the complex matrix , indexed by , by . Then every satisfies
and, as equalities of complex numbers,
The exponents in the last product are integers, so they may be negative. When , both products are empty and equal ; when , each is the one-entry matrix with entry .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.