Buckets:
| import Mathlib.Basic.Complex.BigOperators | |
| import OAI.Analysis.MutuallyUnbiased.Moments.MomentSymmetry | |
| import OAI.Analysis.MutuallyUnbiased.Moments.EqualityPatterns | |
| namespace OAI | |
| noncomputable section | |
| open scoped BigOperators ComplexConjugate | |
| attribute [local instance] Classical.propDecidable | |
| namespace MUB6 | |
| def groupedColumns {p n k : ℕ} (A : Matrix (Fin p) (Fin n) ℤ) | |
| (label : Fin n → Fin k) : Matrix (Fin p) (Fin k) ℤ := | |
| fun i b => ∑ j with label j = b, A i j | |
| def rawMonomial {p n : ℕ} (H : CMatrix) (A : Matrix (Fin p) (Fin n) ℤ) | |
| (ρ : Fin p ↪ Coord) (κ : Fin n → Coord) : ℂ := | |
| ∏ i, ∏ j, H (ρ i) (κ j) ^ A i j | |
| def rowFourier {p : ℕ} (H : CMatrix) (ρ : Fin p ↪ Coord) (a : Fin p → ℤ) : ℂ := | |
| (6 : ℂ)⁻¹ * ∑ k, ∏ i, H (ρ i) k ^ a i | |
| theorem prod_zpow_eq_zpow_sum {ι : Type*} (s : Finset ι) (a : ι → ℤ) | |
| {z : ℂ} (hz : z ≠ 0) : (∏ i ∈ s, z ^ a i) = z ^ (∑ i ∈ s, a i) := by | |
| classical | |
| induction s using Finset.induction_on with | |
| | empty => simp | |
| | @insert i s hi ih => | |
| rw [Finset.prod_insert hi, Finset.sum_insert hi, ih, zpow_add₀ hz] | |
| theorem product_grouped {n k : ℕ} (label : Fin n → Fin k) | |
| (x : Fin k → ℂ) (hx : ∀ b, x b ≠ 0) (a : Fin n → ℤ) : | |
| (∏ j, x (label j) ^ a j) = ∏ b, x b ^ (∑ j with label j = b, a j) := by | |
| rw [← Finset.prod_fiberwise Finset.univ label] | |
| apply Finset.prod_congr rfl | |
| intro b _ | |
| rw [← prod_zpow_eq_zpow_sum _ a (hx b)] | |
| apply Finset.prod_congr rfl | |
| intro j hj | |
| rw [(Finset.mem_filter.mp hj).2] | |
| theorem rawMonomial_grouped {p n k : ℕ} {H : CMatrix} (hH : IsHadamard H) | |
| (A : Matrix (Fin p) (Fin n) ℤ) (label : Fin n → Fin k) | |
| (ρ : Fin p ↪ Coord) (κ : Fin k ↪ Coord) : | |
| rawMonomial H A ρ (fun j => κ (label j)) = | |
| exponentMonomial H (groupedColumns A label) ρ κ := by | |
| unfold rawMonomial exponentMonomial groupedColumns | |
| apply Finset.prod_congr rfl | |
| intro i _ | |
| exact product_grouped label (fun b => H (ρ i) (κ b)) | |
| (fun b => unit_ne_zero (hH.1 _ _)) (fun j => A i j) | |
| theorem rowFourier_product_expand {p n : ℕ} (H : CMatrix) | |
| (A : Matrix (Fin p) (Fin n) ℤ) (ρ : Fin p ↪ Coord) : | |
| (∏ j, rowFourier H ρ (fun i => A i j)) = | |
| (6 : ℂ)⁻¹ ^ n * ∑ κ : Fin n → Coord, rawMonomial H A ρ κ := by | |
| simp only [rowFourier, Finset.prod_mul_distrib, Finset.prod_const, | |
| Finset.card_univ, Fintype.card_fin] | |
| rw [Fintype.prod_sum] | |
| congr 1 | |
| apply Finset.sum_congr rfl | |
| intro κ _ | |
| exact Finset.prod_comm | |
| /-- The unnormalized equality-partition identity. The factor `(6)_k` in | |
| the manuscript is exactly the cardinality of the inner injection type. -/ | |
| theorem rowFourier_partition_expand {p n : ℕ} {P : Type*} [Fintype P] | |
| {H : CMatrix} (hH : IsHadamard H) (A : Matrix (Fin p) (Fin n) ℤ) | |
| (ρ : Fin p ↪ Coord) (F : EqualityPatterns.Family (Fin n) P) | |
| (cover : ∀ f : Fin n → Coord, ∃ s, ∀ i j, | |
| F.label s i = F.label s j ↔ f i = f j) : | |
| (∏ j, rowFourier H ρ (fun i => A i j)) = | |
| (6 : ℂ)⁻¹ ^ n * ∑ s, ∑ κ : Fin (F.blocks s) ↪ Coord, | |
| exponentMonomial H (groupedColumns A (F.label s)) ρ κ := by | |
| rw [rowFourier_product_expand] | |
| have hs := (F.assignmentsEquiv cover).sum_comp | |
| (fun κ : Fin n → Coord => rawMonomial H A ρ κ) | |
| change (∑ s : Σ s, Fin (F.blocks s) ↪ Coord, | |
| rawMonomial H A ρ (fun i => s.2 (F.label s.1 i))) = _ at hs | |
| rw [Fintype.sum_sigma] at hs | |
| rw [← hs] | |
| congr 1 | |
| apply Finset.sum_congr rfl | |
| intro s _ | |
| apply Finset.sum_congr rfl | |
| intro κ _ | |
| exact rawMonomial_grouped hH A (F.label s) ρ κ | |
| end MUB6 | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 3.66 kB
- Xet hash:
- b0b2d878c11ea873c649f9d9aa0ce63dd7286d9d93a232976ddb03091b67a369
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.