cfahlgren1's picture
download
raw
4.6 kB
import OAI.Analysis.MutuallyUnbiased.PairMoments.PairAverage
namespace OAI
namespace MUB6.Certificate.PairTargetSemantics
open scoped BigOperators
structure Term where
arity : ℕ
charges : Matrix Coord (Fin arity) ℤ
coefficient : ℤ
deriving Inhabited
noncomputable def weightedAverage (H : CMatrix) (t : Term) : ℝ :=
(t.coefficient : ℝ) * pairAverage H (fun K => (∏ j, g K (fun i => t.charges i j)).re)
def term0 : Term := ⟨2, ![![-3, 3], ![-2, 2], ![0, 0], ![1, -1], ![2, -2], ![2, -2]], 3⟩
def term1 : Term := ⟨3, ![![-3, 1, 2], ![-2, 1, 1], ![0, 0, 0], ![1, 0, -1], ![2, -1, -1], ![2, -1, -1]], -6⟩
def term2 : Term := ⟨3, ![![-3, 2, 1], ![-2, 0, 2], ![0, 0, 0], ![1, 0, -1], ![2, -1, -1], ![2, -1, -1]], -3⟩
def term3 : Term := ⟨3, ![![-3, 1, 2], ![-2, 1, 1], ![0, 0, 0], ![1, -1, 0], ![2, 0, -2], ![2, -1, -1]], -3⟩
def term4 : Term := ⟨3, ![![-3, 1, 2], ![-2, 1, 1], ![0, 0, 0], ![1, -1, 0], ![2, -1, -1], ![2, 0, -2]], -3⟩
def term5 : Term := ⟨3, ![![-1, -2, 3], ![-1, -1, 2], ![0, 0, 0], ![0, 1, -1], ![1, 1, -2], ![1, 1, -2]], -6⟩
def term6 : Term := ⟨4, ![![-1, -2, 1, 2], ![-1, -1, 1, 1], ![0, 0, 0, 0], ![0, 1, 0, -1], ![1, 1, -1, -1], ![1, 1, -1, -1]], 12⟩
def term7 : Term := ⟨4, ![![-1, -2, 2, 1], ![-1, -1, 0, 2], ![0, 0, 0, 0], ![0, 1, 0, -1], ![1, 1, -1, -1], ![1, 1, -1, -1]], 6⟩
def term8 : Term := ⟨4, ![![-1, -2, 1, 2], ![-1, -1, 1, 1], ![0, 0, 0, 0], ![0, 1, -1, 0], ![1, 1, 0, -2], ![1, 1, -1, -1]], 6⟩
def term9 : Term := ⟨4, ![![-1, -2, 1, 2], ![-1, -1, 1, 1], ![0, 0, 0, 0], ![0, 1, -1, 0], ![1, 1, -1, -1], ![1, 1, 0, -2]], 6⟩
def term10 : Term := ⟨3, ![![-2, -1, 3], ![0, -2, 2], ![0, 0, 0], ![0, 1, -1], ![1, 1, -2], ![1, 1, -2]], -3⟩
def term11 : Term := ⟨4, ![![-2, -1, 1, 2], ![0, -2, 1, 1], ![0, 0, 0, 0], ![0, 1, 0, -1], ![1, 1, -1, -1], ![1, 1, -1, -1]], 6⟩
def term12 : Term := ⟨4, ![![-2, -1, 2, 1], ![0, -2, 0, 2], ![0, 0, 0, 0], ![0, 1, 0, -1], ![1, 1, -1, -1], ![1, 1, -1, -1]], 3⟩
def term13 : Term := ⟨4, ![![-2, -1, 1, 2], ![0, -2, 1, 1], ![0, 0, 0, 0], ![0, 1, -1, 0], ![1, 1, 0, -2], ![1, 1, -1, -1]], 3⟩
def term14 : Term := ⟨4, ![![-2, -1, 1, 2], ![0, -2, 1, 1], ![0, 0, 0, 0], ![0, 1, -1, 0], ![1, 1, -1, -1], ![1, 1, 0, -2]], 3⟩
def term15 : Term := ⟨3, ![![-1, -2, 3], ![-1, -1, 2], ![0, 0, 0], ![1, 0, -1], ![0, 2, -2], ![1, 1, -2]], -3⟩
def term16 : Term := ⟨4, ![![-1, -2, 1, 2], ![-1, -1, 1, 1], ![0, 0, 0, 0], ![1, 0, 0, -1], ![0, 2, -1, -1], ![1, 1, -1, -1]], 6⟩
def term17 : Term := ⟨4, ![![-1, -2, 2, 1], ![-1, -1, 0, 2], ![0, 0, 0, 0], ![1, 0, 0, -1], ![0, 2, -1, -1], ![1, 1, -1, -1]], 3⟩
def term18 : Term := ⟨4, ![![-1, -2, 1, 2], ![-1, -1, 1, 1], ![0, 0, 0, 0], ![1, 0, -1, 0], ![0, 2, 0, -2], ![1, 1, -1, -1]], 3⟩
def term19 : Term := ⟨4, ![![-1, -2, 1, 2], ![-1, -1, 1, 1], ![0, 0, 0, 0], ![1, 0, -1, 0], ![0, 2, -1, -1], ![1, 1, 0, -2]], 3⟩
def term20 : Term := ⟨3, ![![-1, -2, 3], ![-1, -1, 2], ![0, 0, 0], ![1, 0, -1], ![1, 1, -2], ![0, 2, -2]], -3⟩
def term21 : Term := ⟨4, ![![-1, -2, 1, 2], ![-1, -1, 1, 1], ![0, 0, 0, 0], ![1, 0, 0, -1], ![1, 1, -1, -1], ![0, 2, -1, -1]], 6⟩
def term22 : Term := ⟨4, ![![-1, -2, 2, 1], ![-1, -1, 0, 2], ![0, 0, 0, 0], ![1, 0, 0, -1], ![1, 1, -1, -1], ![0, 2, -1, -1]], 3⟩
def term23 : Term := ⟨4, ![![-1, -2, 1, 2], ![-1, -1, 1, 1], ![0, 0, 0, 0], ![1, 0, -1, 0], ![1, 1, 0, -2], ![0, 2, -1, -1]], 3⟩
def term24 : Term := ⟨4, ![![-1, -2, 1, 2], ![-1, -1, 1, 1], ![0, 0, 0, 0], ![1, 0, -1, 0], ![1, 1, -1, -1], ![0, 2, 0, -2]], 3⟩
def term25 : Term := ⟨4, ![![1, 2, -1, -2], ![1, 0, -1, 0], ![1, 0, -1, 0], ![-1, -2, 1, 2], ![-1, 0, 1, 0], ![-1, 0, 1, 0]], 1⟩
def term26 : Term := ⟨4, ![![1, 2, -1, -2], ![1, -2, -1, 2], ![1, 0, -1, 0], ![-1, 0, 1, 0], ![-1, 0, 1, 0], ![-1, 0, 1, 0]], 1⟩
def terms0 (i : Fin 26) : Term :=
(#[term0, term1, term2, term3, term4, term5, term6, term7, term8, term9, term10, term11, term12, term13, term14, term15, term16, term17, term18, term19, term20, term21, term22, term23, term24, term25])[i.val]!
noncomputable def expanded0 (H : CMatrix) : ℝ := ∑ i : Fin 26, weightedAverage H (terms0 i)
def terms1 (i : Fin 26) : Term :=
(#[term0, term1, term2, term3, term4, term5, term6, term7, term8, term9, term10, term11, term12, term13, term14, term15, term16, term17, term18, term19, term20, term21, term22, term23, term24, term26])[i.val]!
noncomputable def expanded1 (H : CMatrix) : ℝ := ∑ i : Fin 26, weightedAverage H (terms1 i)
end MUB6.Certificate.PairTargetSemantics
end OAI

Xet Storage Details

Size:
4.6 kB
·
Xet hash:
9d2327408b6288d774f2867ea54a501275cbd16be4ae262a8aa19abee83d8b05

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.