cfahlgren1's picture
download
raw
4.8 kB
import OAI.Analysis.MutuallyUnbiased.MixedMoments.MixedMoments
namespace OAI
noncomputable section
open scoped BigOperators ComplexConjugate
namespace MUB6
theorem rowFourier_zero_first {p : ℕ} (H : CMatrix) (a : Fin (p + 1) → ℤ)
(ha : a 0 = 0) (ρ : Fin (p + 1) ↪ Coord) :
rowFourier H ρ a = rowFourier H (Sampling.dropFirst ρ) (fun i => a i.succ) := by
simp only [rowFourier, Fin.prod_univ_succ, ha, zpow_zero, one_mul]
rfl
theorem mixedMoment_zero_first_row {p n l : ℕ} (hp : p < 6) (B : Fin 7 → Basis)
(A : Matrix (Fin (p + 1)) (Fin n) ℤ) (label : Fin n → Fin l)
(hA : ∀ j, A 0 j = 0) :
mixedMoment B A label = mixedMoment B (fun i j => A i.succ j) label := by
apply average_congr
intro r
have h (ρ : Fin (p + 1) ↪ Coord) (τ : Fin l ↪ Coord) :
mixedIntegrand B A label r ρ τ =
mixedIntegrand B (fun i j => A i.succ j) label r (Sampling.dropFirst ρ) τ := by
apply Finset.prod_congr rfl
intro j _
exact rowFourier_zero_first _ (fun i => A i j) (hA j) ρ
simp_rw [h]
exact Sampling.average_dropFirst hp
(fun ρ : Fin p ↪ Coord => average (fun τ : Fin l ↪ Coord =>
(mixedIntegrand B (fun i j => A i.succ j) label r ρ τ).re))
theorem mixedMoment_unused_first_label {p n l : ℕ} (hl : l < 6) (B : Fin 7 → Basis)
(A : Matrix (Fin p) (Fin n) ℤ) (label : Fin n → Fin l) :
mixedMoment B A (Fin.succ ∘ label) = mixedMoment B A label := by
apply average_congr
intro r
apply average_congr
intro ρ
change average (fun τ : Fin (l + 1) ↪ Coord =>
(mixedIntegrand B A label r ρ (Sampling.dropFirst τ)).re) = _
exact Sampling.average_dropFirst hl
(fun τ : Fin l ↪ Coord => (mixedIntegrand B A label r ρ τ).re)
theorem mixedMoment_zero_first_factor {p n l : ℕ} (B : Fin 7 → Basis)
(A : Matrix (Fin p) (Fin (n + 1)) ℤ) (label : Fin (n + 1) → Fin l)
(hA : ∀ i, A i 0 = 0) :
mixedMoment B A label = mixedMoment B (fun i j => A i j.succ) (fun j => label j.succ) := by
apply average_congr
intro r
apply average_congr
intro ρ
apply average_congr
intro τ
unfold mixedIntegrand
rw [Fin.prod_univ_succ]
have hz : (fun i => A i 0) = 0 := funext hA
rw [hz, rowFourier_zero, one_mul]
/-- The source singleton-label contraction, before dividing by its positive
integer coefficient. The first factor has order two and its own label. -/
theorem mixedMoment_singleton_first {p n l : ℕ} (hl : l < 6)
(B : Fin 7 → Basis) (hB : IsMUBFamily B)
(A : Matrix (Fin p) (Fin (n + 1)) ℤ) (label : Fin n → Fin l)
(ha : ∑ i, A i 0 = 0) (ho : ∑ i, (A i 0).toNat = 2) :
((6 - l : ℕ) : ℝ) * mixedMoment B A (Fin.cases 0 (Fin.succ ∘ label)) +
(∑ j : Fin l, mixedMoment B A (Fin.cases j label)) = 0 := by
let f (r : Fin 7) (ρ : Fin p ↪ Coord) (τ : Fin l ↪ Coord) (s : Coord) : ℝ :=
(rowFourier (relativeMatrix B r s) ρ (fun i => A i 0) *
mixedIntegrand B (fun i j => A i j.succ) label r ρ τ).re
have hs (r : Fin 7) (ρ : Fin p ↪ Coord) (τ : Fin l ↪ Coord) : ∑ s, f r ρ τ s = 0 := by
simp only [f, ← Complex.re_sum, ← Finset.sum_mul, complete_family_row_order_two B hB r ρ (fun i => A i 0) ha ho, zero_mul, Complex.zero_re]
have hnew (r : Fin 7) (ρ : Fin p ↪ Coord) (τ : Fin (l + 1) ↪ Coord) :
f r ρ (Sampling.dropFirst τ) (τ 0) =
(mixedIntegrand B A (Fin.cases 0 (Fin.succ ∘ label)) r ρ τ).re := by
simp only [f, mixedIntegrand, Fin.prod_univ_succ, Fin.cases_zero, Fin.cases_succ, Function.comp_apply, Sampling.dropFirst_apply]
have hold (r : Fin 7) (ρ : Fin p ↪ Coord) (τ : Fin l ↪ Coord) (j : Fin l) :
f r ρ τ (τ j) = (mixedIntegrand B A (Fin.cases j label) r ρ τ).re := by
simp only [f, mixedIntegrand, Fin.prod_univ_succ, Fin.cases_zero, Fin.cases_succ]
have hc (r : Fin 7) (ρ : Fin p ↪ Coord) :
((6 - l : ℕ) : ℝ) * average (fun τ : Fin (l + 1) ↪ Coord =>
(mixedIntegrand B A (Fin.cases 0 (Fin.succ ∘ label)) r ρ τ).re) +
(∑ j : Fin l, average (fun τ : Fin l ↪ Coord =>
(mixedIntegrand B A (Fin.cases j label) r ρ τ).re)) = 0 := by
have h := Sampling.average_contraction hl (f r ρ) (hs r ρ)
simpa only [hnew, hold] using h
calc
_ = average (fun r : Fin 7 => average (fun ρ : Fin p ↪ Coord =>
((6 - l : ℕ) : ℝ) * average (fun τ : Fin (l + 1) ↪ Coord =>
(mixedIntegrand B A (Fin.cases 0 (Fin.succ ∘ label)) r ρ τ).re) +
(∑ j : Fin l, average (fun τ : Fin l ↪ Coord =>
(mixedIntegrand B A (Fin.cases j label) r ρ τ).re)))) := by
simp only [average_add, average_mul, average_sum, mixedMoment]
_ = 0 := by simp only [hc, average_zero]
end MUB6
end
end OAI

Xet Storage Details

Size:
4.8 kB
·
Xet hash:
5de4ef2f7900395613583d0e7f02bfc63f3097c219de585f98595bc3a397da7e

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