lemmahilbertEmbed_smul_vectors {H : Type*} [NormedAddCommGroupH]
[InnerProductSpaceℂH] [CompleteSpaceH] (x : n→H) (d : ℂ) (A : Mat n) :
hilbertEmbed (fun i => d • x i) A=hilbertEmbed x ((d*star d) • A) :=by
proof · 8
lines
ext u
rw [hilbertEmbed_apply,hilbertEmbed_apply]
apply Finset.sum_congr rfl; intro i hi
apply Finset.sum_congr rfl; intro j hj
simp only [inner_smul_left,smul_smul,Matrix.smul_apply,smul_eq_mul]
congr 1
simp only [starRingEnd_apply]
ring
lemmahilbertEmbed_normalized_filter {H : Type*} [NormedAddCommGroupH]
[InnerProductSpaceℂH] [CompleteSpaceH] (x : n→H) (A : Mat n) :
hilbertEmbed (fun i => (Real.sqrt (Fintype.card n : ℝ) : ℂ) • x i) A=
hilbertEmbed x ((Fintype.card n : ℂ) • A) :=by
theoremnormalized_purification_tested_gap
{Ω : Type*} {mΩ : MeasurableSpace Ω} [StandardBorelSpace Ω]
(ν : Measure Ω) [IsFiniteMeasure ν] (t : Ω→T) (ht : Measurable t)
{AB : MeasurableSpace Ω} (hA : A≤ mΩ) (hB : B≤ mΩ)
(hind : CondIndep (MeasurableSpace.comap t inferInstance) AB ht.comap_le ν)
(a : Fin2→Option (PositiveTestIndex n)→Set Ω)
(q : Fin2→Option (PositiveTestIndex m)→Set Ω)
(ha : ∀ i r, MeasurableSet[A] (a i r)) (hq : ∀ j s, MeasurableSet[B] (q j s))
(M : Fin2→Fin2→PositiveMatrixMeasureT (n×m))
(hdom : ∀ i j, (M i j).traceMeasure ≪ (@Measure.map Ω T mΩ _ t ν))
(hleft : ∀ i r s, MeasurableSet s →
(∑ j, (Matrix.trace ((probePOVM r ⊗ₖ (1 : Mat m))*(M i j).value s)).re)=
ν.real (a i r∩t⁻¹' s))
(hright : ∀ j g s, MeasurableSet s →
(∑ i, (Matrix.trace (((1 : Mat n) ⊗ₖ probePOVM g)*(M i j).value s)).re)=
ν.real (q j g∩t⁻¹' s))
(hjoint : ∀ i j r g s, MeasurableSet s →
(Matrix.trace ((probePOVM r ⊗ₖ probePOVM g)*(M i j).value s)).re=
ν.real ((a i r∩q j g)∩t⁻¹' s))
{H : Type*} [NormedAddCommGroupH] [InnerProductSpaceℂH] [CompleteSpaceH]
{ι : Type*} (b : HilbertBasis ι ℂH)
(R : Mat (n×m)) (hR : RepresentedR) (i₀ : n×m)
(x : (n×m)→H) (hxGram : ∀ i j, inner ℂ (x i) (x j)=Rᵀ i j)
(W : Fin2→Fin2→PositiveHilbertMeasureTH b)
(hW : ∀ i j s, MeasurableSet s → (W i j).value s=
hilbertEmbed (fun k => (Real.sqrt ((Fintype.card n : ℝ)*Fintype.card m) : ℂ) • x k)
((M i j).value s))
(hW1 : (∑ i, ∑ j, hilbertTrace b ((W i j).value Set.univ))=1)
(σ : PositiveHilbertMeasureTH b) (hσ1 : σ.traceMeasure Set.univ=1) :
ENNReal.ofReal (1/5) ≤ hilbertCQDistance b W σ :=by
proof · 24
lines
letc : ℝ≥0:=Fintype.card (n×m)
letN:=fun i j => (M i j).scale (c : ℝ) (NNReal.coe_nonneg c)
apply arbitrary_purification_tested_gap (c•ν) t ht hA hB
(condIndep_rescale ht.comap_le hA hB hind c) a q ha hq N
?_ ?_ ?_ ?_ b R hR i₀ x hxGram W ?_ hW1 σ hσ1
· intro i j
rw [Measure.map_smul c ht.aemeasurable]
exact (M i j).scale_domination (hdom i j) c
· intro i r s hs
simp only [N,PositiveMatrixMeasure.scale_born,←Finset.mul_sum,
hleft i r s hs,measureReal_nnreal_smul_apply]
· intro j g s hs
simp only [N,PositiveMatrixMeasure.scale_born,←Finset.mul_sum,
hright j g s hs,measureReal_nnreal_smul_apply]
· intro i j r g s hs
simp only [N,PositiveMatrixMeasure.scale_born,hjoint i j r g s hs,
measureReal_nnreal_smul_apply]
· intro i j s hs
rw [hW i j s hs]
havehe : (Real.sqrt ((Fintype.card n : ℝ)*Fintype.card m) : ℂ)=
(Real.sqrt (Fintype.card (n×m) : ℝ) : ℂ) :=by
simp only [Fintype.card_prod,Nat.cast_mul]
rw [he,hilbertEmbed_normalized_filter]
rfl