cfahlgren1's picture
download
raw
4.17 kB
16
theorem filter_comp (W : PositiveMatrixMeasure Ω n) (B : Matrix e n ℂ)
    (C : Matrix d e ℂ) : (W.filter B).filter C=W.filter (C*B) := by
proof · 5 lines
  apply ext_entry_default
  ext i j s hs
  change ((W.filter B).filter C).value s i j=(W.filter (C*B)).value s i j
  rw [filter_value,filter_value,filter_value,Matrix.conjTranspose_mul]
  simp only [Matrix.mul_assoc]
27
def normalizedProbe : PositiveMatrixMeasure Ω n :=
body · 1 line
  I.rawProbe.filter (((Real.sqrt (Fintype.card n : ℝ) : ℂ)⁻¹) • (1 : Mat n))
30
lemma sqrt_card_ne_zero [Nonempty n] : (Real.sqrt (Fintype.card n : ℝ) : ℂ)≠0 := by
proof · 1 line
  exact_mod_cast (Real.sqrt_pos.2 (by exact_mod_cast Fintype.card_pos)).ne'
33
lemma sqrt_card_mul : (Real.sqrt (Fintype.card n : ℝ) : ℂ)*
    (Real.sqrt (Fintype.card n : ℝ) : ℂ)=(Fintype.card n : ℂ) := by
proof · 1 line
  rw [← Complex.ofReal_mul,Real.mul_self_sqrt (by positivity),Complex.ofReal_natCast]
37
theorem normalizedProbe_value (s : Set Ω) :
    I.normalizedProbe.value s=(Fintype.card n : ℂ)⁻¹ • I.rawProbe.value s := by
proof · 6 lines
  unfold normalizedProbe
  rw [PositiveMatrixMeasure.filter_value,Matrix.conjTranspose_smul,
    Matrix.conjTranspose_one]
  simp only [map_inv₀,Complex.star_def,Complex.conj_ofReal,Matrix.smul_mul,
    Matrix.one_mul,Matrix.mul_smul,Matrix.mul_one,smul_smul]
  rw [← mul_inv,sqrt_card_mul]
47
theorem normalizedProbe_filter [Nonempty n] (B : Matrix e n ℂ) :
    I.normalizedProbe.filter ((Real.sqrt (Fintype.card n : ℝ) : ℂ) • B)=
      I.purificationLaw B := by
proof · 6 lines
  rw [purificationLaw_eq_filter]
  unfold normalizedProbe
  rw [PositiveMatrixMeasure.filter_comp]
  congr 1
  rw [Matrix.smul_mul,Matrix.mul_smul,Matrix.mul_one,smul_smul,
    mul_inv_cancel₀ sqrt_card_ne_zero,one_smul]
56
theorem normalizedProbe_trace [Nonempty n] :
    Matrix.trace (I.normalizedProbe.value Set.univ)=1 := by
proof · 3 lines
  rw [normalizedProbe_value,rawProbe_total,Matrix.trace_smul,Matrix.trace_one]
  change (Fintype.card n : ℂ)⁻¹*(Fintype.card n : ℂ)=1
  exact inv_mul_cancel₀ (by exact_mod_cast (Fintype.card_pos : 0<Fintype.card n).ne')
61
instance normalizedProbe_probability [Nonempty n] :
    IsProbabilityMeasure I.normalizedProbe.traceMeasure := by
body · 5 lines
  constructor
  apply (ENNReal.toReal_eq_toReal_iff' (measure_ne_top _ _) ENNReal.one_ne_top).mp
  change I.normalizedProbe.traceMeasure.real Set.univ=(1 : ℝ≥0∞).toReal
  rw [PositiveMatrixMeasure.traceMeasure_real _ MeasurableSet.univ,I.normalizedProbe_trace]
  simp
70
lemma product_normalized_probe_amplitude {a b : Type} [Fintype a] [Fintype b]
    [DecidableEq a] [DecidableEq b] :
    (((Real.sqrt (Fintype.card a : ℝ) : ℂ)⁻¹ • (1 : Mat a)) ⊗ₖ
      ((Real.sqrt (Fintype.card b : ℝ) : ℂ)⁻¹ • (1 : Mat b)))=
      (Real.sqrt (Fintype.card (a×b) : ℝ) : ℂ)⁻¹ • (1 : Mat (a×b)) := by
proof · 3 lines
  rw [Matrix.smul_kronecker,Matrix.kronecker_smul,smul_smul,Matrix.one_kronecker_one,
    ← mul_inv,← Complex.ofReal_mul,← Real.sqrt_mul (by positivity)]
  simp only [Fintype.card_prod,Nat.cast_mul]
79
theorem normalized_product_probe_filter {a b : Type} [Fintype a] [Fintype b]
    [DecidableEq a] [DecidableEq b] [Nonempty a] [Nonempty b]
    (I : FiniteInputInstrument (a×b) Ω) (R : Mat (a×b)) :
    I.normalizedProbe.filter (canonicalProbeFilter R)=
      I.purificationLaw (CFC.sqrt R)ᵀ := by
proof · 2 lines
  convert I.normalizedProbe_filter (CFC.sqrt R)ᵀ using 1
  simp only [canonicalProbeFilter,Fintype.card_prod,Nat.cast_mul]

Xet Storage Details

Size:
4.17 kB
·
Xet hash:
779d35d286d1e0f7c820fc770c1325f33592bec689033ac222550d7dab97f74a

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