cfahlgren1's picture
download
raw
3.94 kB
import OAI.Analysis.Laughlin.Spin.Torus
namespace OAI
namespace Laughlin.Rotation
open scoped BigOperators Matrix
theorem tensorWeight_sum_const (Q p : ℕ) (c : ℂ) :
(∑ a : Fin Q → Fin 2, if tensorWeight Q a=p then c else 0) = (Q.choose p : ℂ)*c := by
have he (a : Fin Q → Fin 2) : (if tensorWeight Q a=p then c else 0) =
((if tensorWeight Q a=p then (1 : ℝ) else 0) : ℂ)*c := by split_ifs <;> simp
simp_rw [he]
rw [← Finset.sum_mul]
have hc := congrArg Complex.ofReal (tensorWeight_count Q p)
simp only [Complex.ofReal_sum,apply_ite,Complex.ofReal_one,Complex.ofReal_zero,Complex.ofReal_natCast] at hc
simpa only [Complex.ofReal_one] using congrArg (fun z : ℂ => z*c) hc
theorem symmetricTensorInclusion_column_sum (Q : ℕ) (p : Fin (Q+1)) :
(∑ a, symmetricTensorInclusion Q a p) = (Real.sqrt (Q.choose p.val : ℝ) : ℂ) := by
simp only [symmetricTensorInclusion,Matrix.map_apply,symmetricTensorInclusionReal,apply_ite,
Complex.ofReal_zero]
rw [tensorWeight_sum_const]
have hs : (Real.sqrt (Q.choose p.val : ℝ) : ℂ)^2=(Q.choose p.val : ℂ) := by
exact_mod_cast Real.sq_sqrt (show (0 : ℝ) ≤ Q.choose p.val by positivity)
have hn : (Real.sqrt (Q.choose p.val : ℝ) : ℂ) ≠ 0 := by
apply Complex.ofReal_ne_zero.mpr
apply Real.sqrt_ne_zero'.mpr
exact_mod_cast Nat.choose_pos (by omega : p.val ≤ Q)
rw [Complex.ofReal_inv,← hs]
field_simp
theorem tensorMatrix_uniform_first_column (Q : ℕ) (A : Matrix (Fin 2) (Fin 2) ℂ) (c : ℂ)
(h0 : A 0 0=c) (h1 : A 1 0=c) (a : Fin Q → Fin 2) :
(tensorMatrix Q A*symmetricTensorInclusion Q) a 0=c^Q := by
classical
rw [Matrix.mul_apply,Finset.sum_eq_single (fun _ => (0 : Fin 2))]
· rw [symmetricTensor_zero_column,ite_eq_left rfl,mul_one]
have he (i : Fin Q) : A (a i) 0=c := by
have h : a i=0 ∨ a i=1 := by omega
rcases h with h | h
· rw [h]; exact h0
· rw [h]; exact h1
simp [tensorMatrix,he]
· intro b hb hne
rw [symmetricTensor_zero_column,ite_eq_right hne,mul_zero]
· simp
noncomputable def sourceMixer : SourceSU2 := by
let c : ℝ := Real.sqrt (1/2)
have hc : (c : ℂ)^2=(1/2 : ℂ) := by
have hs : c^2=(1/2 : ℝ) := Real.sq_sqrt (by norm_num)
have h := congrArg Complex.ofReal hs
push_cast at h
exact h
refine ⟨!![(c : ℂ),-(c : ℂ);(c : ℂ),(c : ℂ)],?_⟩
constructor
· apply Matrix.mem_unitaryGroup_iff.mpr
ext i j
fin_cases i <;> fin_cases j <;>
simp [Matrix.mul_apply,Matrix.star_eq_conjTranspose,Matrix.conjTranspose_apply] <;>
linear_combination 2*hc
· simp [Matrix.det_fin_two]
linear_combination 2*hc
theorem sourceSpinRepresentation_mixer_column (Q : ℕ) (p : Fin (Q+1)) :
sourceSpinRepresentation Q sourceMixer p 0 =
(Real.sqrt (Q.choose p.val : ℝ) : ℂ)*(Real.sqrt (1/2) : ℂ)^Q := by
change ((symmetricTensorInclusion Q)ᴴ*tensorMatrix Q sourceMixer.val*symmetricTensorInclusion Q) p 0 = _
rw [Matrix.mul_assoc,Matrix.mul_apply]
have he (a : Fin Q → Fin 2) : (tensorMatrix Q sourceMixer.val*symmetricTensorInclusion Q) a 0 =
(Real.sqrt (1/2) : ℂ)^Q := tensorMatrix_uniform_first_column Q _ _ rfl rfl a
simp_rw [he,Matrix.conjTranspose_apply]
have hr (a : Fin Q → Fin 2) : star (symmetricTensorInclusion Q a p)=symmetricTensorInclusion Q a p := by
simp [symmetricTensorInclusion]
simp_rw [hr]
rw [← Finset.sum_mul,symmetricTensorInclusion_column_sum]
theorem sourceSpinRepresentation_mixer_column_ne_zero (Q : ℕ) (p : Fin (Q+1)) :
sourceSpinRepresentation Q sourceMixer p 0 ≠ 0 := by
rw [sourceSpinRepresentation_mixer_column]
apply mul_ne_zero
· apply Complex.ofReal_ne_zero.mpr
apply Real.sqrt_ne_zero'.mpr
exact_mod_cast Nat.choose_pos (by omega : p.val ≤ Q)
· apply pow_ne_zero
exact Complex.ofReal_ne_zero.mpr (by positivity)
end Laughlin.Rotation
end OAI

Xet Storage Details

Size:
3.94 kB
·
Xet hash:
27227d9df903abb17359668ded48db8c7a3bc62e3675c5f92b67ea097ae5a9ba

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