cfahlgren1's picture
download
raw
4.37 kB
14
lemma sharp_ppt {F : Map n m} (hF : PPT F) : PPT (sharp F) := by
proof · 1 line
  exact ppt_output_transpose (ppt_input_transpose (ppt_hsAdjoint hF))
17
lemma projector_real_smul (r : ℝ) (v : n → ℂ) :
    projector ((r : ℂ) • v)=((r^2 : ℝ) : ℂ) • projector v := by
proof · 4 lines
  ext i j
  simp only [projector,Matrix.vecMulVec_apply,Pi.smul_apply,Pi.star_apply,smul_eq_mul,
    star_mul,Complex.star_def,Complex.conj_ofReal,Matrix.smul_apply,Complex.ofReal_pow]
  ring
24
lemma psd_trace_re_pos {A : Mat n} (hA : A.PosSemidef) (hne : A ≠ 0) :
    0 < (Matrix.trace A).re := by
proof · 8 lines
  have ht := Complex.nonneg_iff.mp hA.trace_nonneg
  apply lt_of_le_of_ne ht.1
  intro h
  apply hne
  apply hA.trace_eq_zero_iff.mp
  apply Complex.ext
  · exact h.symm
  · exact ht.2.symm
35
lemma psd_trace_ofReal {A : Mat n} (hA : A.PosSemidef) :
    ((Matrix.trace A).re : ℂ)=Matrix.trace A := by
proof · 3 lines
  apply Complex.ext
  · rfl
  · exact (Complex.nonneg_iff.mp hA.trace_nonneg).2
41
lemma normalized_psd {A : Mat n} (hA : A.PosSemidef) :
    ((((Matrix.trace A).re)⁻¹ : ℝ) : ℂ) • A |>.PosSemidef :=
proof · 1 line
  hA.smul (by exact_mod_cast inv_nonneg.mpr (Complex.nonneg_iff.mp hA.trace_nonneg).1)
45
lemma normalized_trace {A : Mat n} (hA : A.PosSemidef) (hne : A ≠ 0) :
    Matrix.trace (((((Matrix.trace A).re)⁻¹ : ℝ) : ℂ) • A)=1 := by
proof · 2 lines
  rw [Matrix.trace_smul,smul_eq_mul,Complex.ofReal_inv,psd_trace_ofReal hA]
  exact inv_mul_cancel₀ (fun h => hne (hA.trace_eq_zero_iff.mp h))
54
def stateTrace : ℝ := (Matrix.trace (Z L)).re
56
def rho : Mat (Fin 10 × Fin 10) := ((stateTrace⁻¹ : ℝ) : ℂ) • Z L
58
def stateVector : Fin 10 × Fin 10 → ℂ :=
body · 1 line
  (((Real.sqrt stateTrace)⁻¹ : ℝ) : ℂ) • omega
60
lemma Z_psd : (Z L).PosSemidef := cp_choi (cp_comp main_pair.2.1.1 main_pair.1.1)
61
lemma stateTrace_pos : 0 < stateTrace := psd_trace_re_pos Z_psd main_pair.2.2.1
62
lemma rho_psd : rho.PosSemidef := normalized_psd Z_psd
63
lemma rho_trace : Matrix.trace rho=1 := normalized_trace Z_psd main_pair.2.2.1
64
lemma rho_ne_zero : rho ≠ 0 := by
proof · 4 lines
  intro h
  have hh := rho_trace
  rw [h,Matrix.trace_zero] at hh
  exact zero_ne_one hh
69
lemma rho_no_product (u v : Fin 10 → ℂ)
    (h : ∃ w, rho.mulVec w=product u v) : product u v=0 := by
proof · 5 lines
  obtain ⟨w,hw⟩ := h
  apply main_pair.2.2.2.1 u v
  refine ⟨((stateTrace⁻¹ : ℝ) : ℂ) • w, ?_⟩
  rw [Matrix.mulVec_smul]
  simpa only [rho,Matrix.smul_mulVec] using hw
76
lemma rho_entangled : ¬ Separable rho := by
proof · 3 lines
  intro h
  obtain ⟨u,v,hne,w,hw⟩ := separable_nonzero_product h rho_ne_zero
  exact hne (rho_no_product u v ⟨w,hw⟩)
80
lemma stateVector_projector : projector stateVector=
    ((stateTrace⁻¹ : ℝ) : ℂ) • projector (omega (n := Fin 10)) := by
proof · 1 line
  rw [stateVector,projector_real_smul,inv_pow,Real.sq_sqrt stateTrace_pos.le]
83
lemma rho_identification : rho=tensorMap (sharp (Phi1 L)) (Phi2 L) (projector stateVector) := by
proof · 2 lines
  rw [stateVector_projector,map_smul,← choi_transfer main_pair.1.1]
  rfl
86
lemma rho_represented : Represented rho := by
proof · 4 lines
  refine ⟨rho_psd,rho_trace,10,10,by norm_num,by norm_num,
    sharp (Phi1 L),Phi2 L,stateVector,(sharp_ppt main_pair.1).1,
    (ppt_input_transpose (sharp_ppt main_pair.1)).1,main_pair.2.1.1,
    (ppt_input_transpose main_pair.2.1).1,rho_identification⟩
92
theorem main_state_algebra : rho.PosSemidef ∧ Matrix.trace rho=1 ∧
    rho ≠ 0 ∧ (∀ u v : Fin 10 → ℂ,
      (∃ w, rho.mulVec w=product u v) → product u v=0) ∧
    ¬ Separable rho ∧ Represented rho ∧
    rho=tensorMap (sharp (Phi1 L)) (Phi2 L) (projector stateVector) :=
proof · 1 line
  ⟨rho_psd,rho_trace,rho_ne_zero,rho_no_product,rho_entangled,rho_represented,rho_identification⟩

Xet Storage Details

Size:
4.37 kB
·
Xet hash:
f2a5808364be269e94e0f5fe5a73c16634bebfbbac1ecffc4738fb2e3ba31d21

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