Buckets:
| import OAI.Analysis.MutuallyUnbiased.Bases.CompleteFamily | |
| import OAI.Analysis.MutuallyUnbiased.Moments.PartitionExpansion | |
| namespace OAI | |
| noncomputable section | |
| open scoped BigOperators ComplexConjugate | |
| namespace MUB6 | |
| def embedCharge {p : ℕ} (ρ : Fin p ↪ Coord) (a : Fin p → ℤ) : Charge := | |
| Function.extend ρ a (fun _ => 0) | |
| @[simp] theorem embedCharge_apply {p : ℕ} (ρ : Fin p ↪ Coord) (a : Fin p → ℤ) (i : Fin p) : | |
| embedCharge ρ a (ρ i) = a i := ρ.injective.extend_apply _ _ _ | |
| theorem embedCharge_outside {p : ℕ} (ρ : Fin p ↪ Coord) (a : Fin p → ℤ) (i : Coord) | |
| (hi : i ∉ Set.range ρ) : embedCharge ρ a i = 0 := | |
| Function.extend_apply' _ _ _ hi | |
| theorem embedCharge_sum {p : ℕ} (ρ : Fin p ↪ Coord) (a : Fin p → ℤ) : | |
| ∑ i, embedCharge ρ a i = ∑ i, a i := by | |
| symm | |
| exact Fintype.sum_of_injective ρ ρ.injective a (embedCharge ρ a) | |
| (embedCharge_outside ρ a) (fun i => (embedCharge_apply ρ a i).symm) | |
| theorem embedCharge_order {p : ℕ} (ρ : Fin p ↪ Coord) (a : Fin p → ℤ) : | |
| order (embedCharge ρ a) = ∑ i, (a i).toNat := by | |
| symm | |
| apply Fintype.sum_of_injective ρ ρ.injective (fun i => (a i).toNat) | |
| (fun i => (embedCharge ρ a i).toNat) | |
| · intro i hi | |
| rw [embedCharge_outside ρ a i hi] | |
| rfl | |
| · intro i | |
| rw [embedCharge_apply] | |
| theorem embedCharge_add {p : ℕ} (ρ : Fin p ↪ Coord) (a b : Fin p → ℤ) : | |
| embedCharge ρ (a + b) = embedCharge ρ a + embedCharge ρ b := by | |
| funext i | |
| by_cases hi : i ∈ Set.range ρ | |
| · obtain ⟨j, rfl⟩ := hi | |
| simp | |
| · simp [Pi.add_apply, embedCharge_outside ρ _ i hi] | |
| theorem embedCharge_neg {p : ℕ} (ρ : Fin p ↪ Coord) (a : Fin p → ℤ) : | |
| embedCharge ρ (-a) = -embedCharge ρ a := by | |
| funext i | |
| by_cases hi : i ∈ Set.range ρ | |
| · obtain ⟨j, rfl⟩ := hi | |
| simp | |
| · simp [Pi.neg_apply, embedCharge_outside ρ _ i hi] | |
| theorem character_embedCharge {p : ℕ} (x : Coord → ℂ) (ρ : Fin p ↪ Coord) | |
| (a : Fin p → ℤ) : character x (embedCharge ρ a) = ∏ i, x (ρ i) ^ a i := by | |
| symm | |
| apply Fintype.prod_of_injective ρ ρ.injective (fun i => x (ρ i) ^ a i) | |
| (fun i => x i ^ embedCharge ρ a i) | |
| · intro i hi | |
| rw [embedCharge_outside ρ a i hi, zpow_zero] | |
| · intro i | |
| rw [embedCharge_apply] | |
| theorem rowFourier_eq_g {p : ℕ} (H : CMatrix) (ρ : Fin p ↪ Coord) (a : Fin p → ℤ) : | |
| rowFourier H ρ a = g H (embedCharge ρ a) := by | |
| simp only [rowFourier, g, character_embedCharge] | |
| theorem rowFourier_norm_le_one {p : ℕ} {H : CMatrix} (hH : IsHadamard H) | |
| (ρ : Fin p ↪ Coord) (a : Fin p → ℤ) : ‖rowFourier H ρ a‖ ≤ 1 := by | |
| rw [rowFourier_eq_g] | |
| exact g_norm_le_one hH _ | |
| @[simp] theorem rowFourier_zero {p : ℕ} (H : CMatrix) (ρ : Fin p ↪ Coord) : | |
| rowFourier H ρ 0 = 1 := by norm_num [rowFourier] | |
| theorem rowFourier_neg {p : ℕ} {H : CMatrix} (hH : IsHadamard H) | |
| (ρ : Fin p ↪ Coord) (a : Fin p → ℤ) : | |
| rowFourier H ρ (-a) = conj (rowFourier H ρ a) := by | |
| rw [rowFourier_eq_g, embedCharge_neg, g_neg hH, rowFourier_eq_g] | |
| theorem rowFourier_order_one {p : ℕ} {H : CMatrix} (hH : IsHadamard H) | |
| (ρ : Fin p ↪ Coord) (a : Fin p → ℤ) (ha : ∑ i, a i = 0) | |
| (ho : ∑ i, (a i).toNat = 1) : rowFourier H ρ a = 0 := by | |
| rw [rowFourier_eq_g] | |
| apply g_order_one hH | |
| · exact (embedCharge_sum ρ a).trans ha | |
| · exact (embedCharge_order ρ a).trans ho | |
| theorem complete_family_row_order_two {p : ℕ} (B : Fin 7 → Basis) (hB : IsMUBFamily B) | |
| (r : Fin 7) (ρ : Fin p ↪ Coord) (a : Fin p → ℤ) (ha : ∑ i, a i = 0) | |
| (ho : ∑ i, (a i).toNat = 2) : ∑ s, rowFourier (relativeMatrix B r s) ρ a = 0 := by | |
| simp only [rowFourier_eq_g] | |
| exact complete_family_order_two B hB r ((embedCharge_sum ρ a).trans ha) | |
| ((embedCharge_order ρ a).trans ho) | |
| end MUB6 | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 3.86 kB
- Xet hash:
- 5dc40b1830f3dfdeed578368d344dbbc07bc3ad17ef7a27740344b07a8e00e31
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.