lemmachannel_entry_value (W : PositiveMatrixMeasureT n) (F : Map n m) (s : SetT) :
(fun a b => (∑ i, ∑ j, F (Matrix.single i j 1) a b • W.entry i j) s)=F (W.value s) :=by
proof · 8
lines
rw [linearMap_entries F (W.value s)]
ext a b
simp only [_root_.sum_apply,_root_.smul_apply,smul_eq_mul,Matrix.sum_apply,Matrix.smul_apply,value]
apply Finset.sum_congr rfl
intro i _
apply Finset.sum_congr rfl
intro j _
exact mul_comm _ _
lemmachannel_value (W : PositiveMatrixMeasureT n) (F : Map n m) (hF : CPF) (s : SetT) :
(W.channel F hF).value s=F (W.value s) := channel_entry_value WF s
lemmachannel_density_integrable (F : Map n m) {μ : MeasureT} (D : T→Mat n)
(hi : ∀ a b, Integrable (fun t =>D t a b) μ) (a b : m) :
Integrable (fun t =>F (D t) a b) μ :=by
proof · 4
lines
havehe : (fun t =>F (D t) a b)=(fun t =>∑ i, ∑ j, D t i j*F (Matrix.single i j 1) a b) :=
funext fun t => channel_entry F (D t) a b
rw [he]
exact integrable_finsetSum _ fun i _ => integrable_finsetSum _ fun j _ => (hi i j).mul_const _
lemmachannel_setIntegral (F : Map n m) {μ : MeasureT} (D : T→Mat n)
(hi : ∀ a b, Integrable (fun t =>D t a b) μ) (s : SetT) (a b : m) :
(∫ t in s, F (D t) a b ∂μ)=F (fun i j =>∫ t in s, D t i j ∂μ) a b :=by
proof · 9
lines
havehe : (fun t =>F (D t) a b)=(fun t =>∑ i, ∑ j, D t i j*F (Matrix.single i j 1) a b) :=
funext fun t => channel_entry F (D t) a b
rw [he]
apply Eq.trans ?_ (channel_entry F (Matrix.of fun i j =>∫ t in s, D t i j ∂μ) a b).symm
rw [integral_finsetSum _ (fun i _ => integrable_finsetSum _ (fun j _ => (hi i j).integrableOn.mul_const _))]
apply Finset.sum_congr rfl
intro i _
rw [integral_finsetSum _ (fun j _ => (hi i j).integrableOn.mul_const _)]
simp only [integral_mul_const,Matrix.of_apply]
lemmachannel_positiveDensity (W : PositiveMatrixMeasureT n) (F : Map n m)
(hF : CPF) (hT : TracePreservingF) {μ : MeasureT} [IsFiniteMeasure μ]
(hW : W.traceMeasure≪μ) :
(fun t =>F (W.positiveDensity μ t))=ᵐ[μ](W.channel F hF).positiveDensity μ :=by
proof · 9
lines
apply (W.channel F hF).density_unique
(by simpa only [channel_traceMeasure WF hF hT] using hW)
· exact channel_density_integrable F _ (W.positiveDensity_integrable hW)
· intro s hs a b
rw [channel_setIntegral F _ (W.positiveDensity_integrable hW),channel_value]
havehe : (Matrix.of fun i j =>∫ t in s, W.positiveDensity μ t i j ∂μ)=W.value s :=by
ext i j
exact W.positiveDensity_setIntegral hW hs i j
exact congrArg (funM : Mat n =>FM a b) he
lemmabitComparisonMeasure_channel (W : Fin2→Fin2→PositiveMatrixMeasureT n)
(σ : PositiveMatrixMeasureT n) (F : Map n m) (hF : CPF) (hT : TracePreservingF) :
bitComparisonMeasure (fun i j => (W i j).channel F hF) (σ.channel F hF)=bitComparisonMeasure W σ :=by
proof · 1
line
simp only [bitComparisonMeasure,familyTraceMeasure,PositiveMatrixMeasure.channel_traceMeasure _ F hF hT]
theoremcqBitDistance_channel (W : Fin2→Fin2→PositiveMatrixMeasureT n)
(σ : PositiveMatrixMeasureT n) (F : Map n m) (hF : CPF) (hT : TracePreservingF) :
cqBitDistance (fun i j => (W i j).channel F hF) (σ.channel F hF) ≤ cqBitDistance W σ :=by
proof · 32
lines
havehtr : ∀A, Matrix.trace (FA)=Matrix.trace A:= hT
let μ := bitComparisonMeasure W σ
have hW (i j : Fin2) := (W i j).channel_positiveDensity F hF hT (bitComparison_actual_dom W σ i j)
have hσ := σ.channel_positiveDensity F hF hT (bitComparison_ideal_dom W σ)
unfold cqBitDistance
rw [bitComparisonMeasure_channel W σ F hF hT,
← bitDistance_congr_ae hW hσ]
apply Finset.sum_le_sum
intro i _
apply Finset.sum_le_sum
intro j _
apply integral_mono
· apply integrable_traceNorm_sub
· exact (measurable_matrix_map F).comp ((W i j).positiveDensity_measurable μ)
· exact idealDensity_measurable _ ((measurable_matrix_map F).comp (σ.positiveDensity_measurable μ)) i j
· intro t; exact cp_positive hF ((W i j).positiveDensity_psd μ t)
· exact idealDensity_psd _ (fun t => cp_positive hF (σ.positiveDensity_psd μ t)) i j
· simpa only [htr] using (W i j).positiveDensity_trace_integrable (bitComparison_actual_dom W σ i j)
· apply idealDensity_trace_integrable
simpa only [htr] using σ.positiveDensity_trace_integrable (bitComparison_ideal_dom W σ)
· apply integrable_traceNorm_sub
· exact (W i j).positiveDensity_measurable μ
· exact idealDensity_measurable _ (σ.positiveDensity_measurable μ) i j
· exact (W i j).positiveDensity_psd μ
· exact idealDensity_psd _ (σ.positiveDensity_psd μ) i j
· exact (W i j).positiveDensity_trace_integrable (bitComparison_actual_dom W σ i j)
· exact idealDensity_trace_integrable _ (σ.positiveDensity_trace_integrable (bitComparison_ideal_dom W σ)) i j
· intro t
dsimp only
rw [← channel_idealDensity F (σ.positiveDensity μ) i j t,← map_sub]
exact traceNorm_cptp F hF hT (((W i j).positiveDensity_psd μ t).isHermitian.sub
(idealDensity_psd _ (σ.positiveDensity_psd μ) i j t).isHermitian)