cfahlgren1's picture
download
raw
2.25 kB
import OAI.Analysis.MutuallyUnbiased.Bases.Basic
import OAI.Analysis.MutuallyUnbiased.Matrix.Hadamard
import OAI.Analysis.MutuallyUnbiased.Completion.BasisFrame
namespace OAI
noncomputable section
open scoped BigOperators ComplexConjugate
namespace MUB6
def transition (b c : Basis) : CMatrix :=
fun i k => (Real.sqrt 6 : ℂ) * inner ℂ (b i) (c k)
theorem sqrt_six_square : (Real.sqrt 6 : ℂ) ^ 2 = 6 := by
have h : Real.sqrt 6 ^ 2 = (6 : ℝ) := Real.sq_sqrt (by norm_num)
exact_mod_cast h
theorem sqrt_six_normSq : Complex.normSq (Real.sqrt 6 : ℂ) = 6 := by
rw [Complex.normSq_ofReal]
nlinarith [Real.sq_sqrt (by norm_num : (0 : ℝ) ≤ 6)]
theorem transition_column_inner (b c d : Basis) (k l : Coord) :
(∑ i, conj (transition b c i k) * transition b d i l) =
6 * inner ℂ (c k) (d l) := by
have hterm (i : Coord) : conj (transition b c i k) * transition b d i l =
6 * (inner ℂ (c k) (b i) * inner ℂ (b i) (d l)) := by
simp only [transition, map_mul, Complex.conj_ofReal, inner_conj_symm]
calc
_ = (Real.sqrt 6 : ℂ) ^ 2 *
(inner ℂ (c k) (b i) * inner ℂ (b i) (d l)) := by ring
_ = _ := by rw [sqrt_six_square]
simp_rw [hterm]
rw [← Finset.mul_sum, b.sum_inner_mul_inner]
theorem transition_isHadamard {m : ℕ} (B : Fin m → Basis) (hB : IsMUBFamily B)
(r s : Fin m) (hrs : r ≠ s) : IsHadamard (transition (B r) (B s)) := by
refine ⟨?_, ?_⟩
· intro i k
rw [transition, map_mul, sqrt_six_normSq, hB r s hrs i k]
norm_num
· ext i j
change (∑ k, conj (transition (B r) (B s) k i) * transition (B r) (B s) k j) =
(6 : ℂ) * (if i = j then 1 else 0)
rw [transition_column_inner, (B s).inner_eq_ite]
theorem transition_reverse (b c : Basis) :
transition c b = (transition b c).conjTranspose := by
ext i j
simp [transition, Matrix.conjTranspose_apply]
theorem transition_cross_normSq {m : ℕ} (B : Fin m → Basis) (hB : IsMUBFamily B)
(ref : Basis) (s t : Fin m) (hst : s ≠ t) (k l : Coord) :
Complex.normSq (∑ i, conj (transition ref (B s) i k) * transition ref (B t) i l) = 6 := by
rw [transition_column_inner, map_mul, hB s t hst k l]
norm_num [Complex.normSq_ofNat]
end MUB6
end
end OAI

Xet Storage Details

Size:
2.25 kB
·
Xet hash:
8f3ac50853fef4315e09cab1642157169a4576a00d375e739ebed4c866d30b68

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