Buckets:
| import OAI.Analysis.MutuallyUnbiased.Bases.Transitions | |
| import OAI.Analysis.MutuallyUnbiased.Fourier.ChargeDecomposition | |
| import OAI.Analysis.MutuallyUnbiased.Moments.DifferentMatrices | |
| namespace OAI | |
| noncomputable section | |
| open scoped BigOperators ComplexConjugate | |
| namespace MUB6 | |
| /-- The six transitions from a fixed reference basis, with that basis omitted. -/ | |
| def relativeMatrix (B : Fin 7 → Basis) (r : Fin 7) (s : Coord) : CMatrix := | |
| transition (B r) (B (r.succAbove s)) | |
| theorem relativeMatrix_isHadamard (B : Fin 7 → Basis) (hB : IsMUBFamily B) | |
| (r : Fin 7) (s : Coord) : IsHadamard (relativeMatrix B r s) := | |
| transition_isHadamard B hB r (r.succAbove s) (r.ne_succAbove s) | |
| theorem relativeMatrix_cross (B : Fin 7 → Basis) (hB : IsMUBFamily B) | |
| (r : Fin 7) (s t : Coord) (hst : s ≠ t) (k l : Coord) : | |
| Complex.normSq (∑ i, relativeMatrix B r s i k * conj (relativeMatrix B r t i l)) = 6 := by | |
| have ht : r.succAbove t ≠ r.succAbove s := by | |
| intro h | |
| exact hst (Fin.succAbove_right_injective h.symm) | |
| simpa only [relativeMatrix, mul_comm] using | |
| transition_cross_normSq B hB (B r) (r.succAbove t) (r.succAbove s) ht l k | |
| def fourthProduct (ref b : Basis) (i j k l a : Coord) : ℂ := | |
| inner ℂ (ref i) (b a) * star (inner ℂ (ref j) (b a)) * | |
| star (inner ℂ (ref k) (b a)) * inner ℂ (ref l) (b a) | |
| theorem relativeMatrix_order_two_expansion (B : Fin 7 → Basis) (hB : IsMUBFamily B) | |
| (r : Fin 7) (s i j k l : Coord) : | |
| g (relativeMatrix B r s) (difference i j + difference l k) = | |
| 6 * ∑ a, fourthProduct (B r) (B (r.succAbove s)) i j k l a := by | |
| have hH := relativeMatrix_isHadamard B hB r s | |
| have ht (a : Coord) : | |
| (relativeMatrix B r s i a * conj (relativeMatrix B r s j a)) * | |
| (relativeMatrix B r s l a * conj (relativeMatrix B r s k a)) = | |
| 36 * fourthProduct (B r) (B (r.succAbove s)) i j k l a := by | |
| simp only [relativeMatrix, transition, map_mul, Complex.conj_ofReal, | |
| fourthProduct, Complex.star_def] | |
| calc | |
| _ = ((Real.sqrt 6 : ℂ) ^ 2) ^ 2 * | |
| (inner ℂ (B r i) (B (r.succAbove s) a) * | |
| conj (inner ℂ (B r j) (B (r.succAbove s) a)) * | |
| conj (inner ℂ (B r k) (B (r.succAbove s) a)) * | |
| inner ℂ (B r l) (B (r.succAbove s) a)) := by ring | |
| _ = _ := by rw [sqrt_six_square]; ring | |
| simp only [g, character_add _ (fun i => unit_ne_zero (hH.1 i _)), | |
| character_difference _ (fun i => hH.1 i _)] | |
| simp_rw [ht] | |
| rw [← Finset.mul_sum] | |
| ring | |
| theorem fourthProduct_self_zero (b : Basis) (i j k l : Coord) (hij : i ≠ j) : | |
| ∑ a, fourthProduct b b i j k l a = 0 := by | |
| apply Finset.sum_eq_zero | |
| intro a _ | |
| have hz : inner ℂ (b i) (b a) * star (inner ℂ (b j) (b a)) = 0 := by | |
| rw [b.inner_eq_ite, b.inner_eq_ite] | |
| split_ifs <;> simp_all | |
| simp only [fourthProduct, hz, zero_mul] | |
| /-- The order-two Fourier sum identity of a complete mutually unbiased family. -/ | |
| theorem complete_family_order_two (B : Fin 7 → Basis) (hB : IsMUBFamily B) | |
| (r : Fin 7) {a : Charge} (ha : Balanced a) (ho : order a = 2) : | |
| ∑ s, g (relativeMatrix B r s) a = 0 := by | |
| obtain ⟨i, l, j, k, hij, hik, _, _, rfl⟩ := order_two_decomposition ha ho | |
| have h := Weiner.complete_basis_fourth_moment_relative B hB (B r) i j k l | |
| change (∑ s, ∑ t, fourthProduct (B r) (B s) i j k l t) = _ at h | |
| rw [ite_eq_right (by simp [hik]), ite_eq_right (by simp [hij]), add_zero, | |
| Fin.sum_univ_succAbove _ r, fourthProduct_self_zero _ _ _ _ _ hij, zero_add] at h | |
| simp_rw [relativeMatrix_order_two_expansion B hB] | |
| rw [← Finset.mul_sum, h, mul_zero] | |
| end MUB6 | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 3.63 kB
- Xet hash:
- e8f786e768b607e8c6b4848462c8e26c1129d911d5e61d6af2822e32b8046508
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.