theoremfinite_transform_norm_sq (U : J→J→ℝ)
(hc : ∀ a b, ∑ k, U k a*U k b = if a=b then1else0) (z : J→ℂ) :
(∑ k, ‖∑ a, (Uk a : ℂ)*z a‖^2) = ∑ a, ‖z a‖^2:=by
proof · 23
lines
classical
letv : J→EuclideanSpaceℂJ:=fun a =>WithLp.toLp 2 (fun k => (Uk a : ℂ))
havehv : Orthonormalℂ v :=by
rw [orthonormal_iff_ite]
intro a b
change (∑ k, (Uk b : ℂ)*star (Uk a : ℂ)) = _
simp only [Complex.star_def, Complex.conj_ofReal, ←Complex.ofReal_mul,
←Complex.ofReal_sum, hc]
by_cases hab : a=b
· simp [hab]
· simp [hab, Ne.symm hab]
have hi := hv.inner_sum z z Finset.univ
havehe : (∑ a, z a • v a) = WithLp.toLp 2 (fun k =>∑ a, (Uk a : ℂ)*z a) :=by
ext k
simp [v, mul_comm]
havehnorm : ‖∑ a, z a • v a‖^2 = ∑ a, ‖z a‖^2:=bycalc
_ = (inner ℂ (∑ a, z a • v a) (∑ a, z a • v a)).re :=
(inner_self_eq_norm_sq (𝕜:=ℂ) _).symm
_ = (∑ a, conj (z a)*z a).re := congrArg Complex.re hi
_ = _ :=by simp [Complex.mul_re, Complex.sq_norm, Complex.normSq_apply]
rw [he, EuclideanSpace.norm_sq_eq] at hnorm
exact hnorm
theoremunitary_coordinate (b : HilbertBasis (SigmaI) ℂE)
(U : ∀ s, I s →I s →ℝ)
(hcol : ∀ s a d, ∑ k, U s k a*U s k d = if a=d then1else0)
(hrow : ∀ s k l, ∑ a, U s k a*U s l a = if k=l then1else0)
(x : E) (s : S) (k : I s) :
inner ℂ (b ⟨s,k⟩) (unitary b U hcol hrow x) =
∑ a, (Us k a : ℂ)* inner ℂ (b ⟨s,a⟩) x :=by
proof · 5
lines
have hi := (unitary b U hcol hrow).inner_map_map
((unitary b U hcol hrow).symm (b ⟨s,k⟩)) x
rw [LinearIsometryEquiv.apply_symm_apply, unitary_symm_apply_basis] at hi
rw [hi]
simp only [sum_inner, inner_smul_left, Complex.conj_ofReal]
theoremunitary_sector_mass (b : HilbertBasis (SigmaI) ℂE)
(U : ∀ s, I s →I s →ℝ)
(hcol : ∀ s a d, ∑ k, U s k a*U s k d = if a=d then1else0)
(hrow : ∀ s k l, ∑ a, U s k a*U s l a = if k=l then1else0)
(x : E) (s : S) :
(∑ k, ‖inner ℂ (b ⟨s,k⟩) (unitary b U hcol hrow x)‖^2) =
∑ k, ‖inner ℂ (b ⟨s,k⟩) x‖^2:=by
proof · 2
lines
simp only [unitary_coordinate]
exact finite_transform_norm_sq (U s) (hcol s) _
theoremunitary_weighted_mass (b : HilbertBasis (SigmaI) ℂE)
(U : ∀ s, I s →I s →ℝ)
(hcol : ∀ s a d, ∑ k, U s k a*U s k d = if a=d then1else0)
(hrow : ∀ s k l, ∑ a, U s k a*U s l a = if k=l then1else0)
(x : E) (w : S→ℝ≥0∞) :
(∑' i : SigmaI, w i.1 * ENNReal.ofReal (‖inner ℂ (b i) (unitary b U hcol hrow x)‖^2)) =
∑' i : SigmaI, w i.1 * ENNReal.ofReal (‖inner ℂ (b i) x‖^2) :=by
theoremmatrixMoment_ensemble [DecidableEqA] {v : I→HA}
(hv : Summable (fun i => ‖v i‖^2)) (w : A→ℝ≥0∞) :
matrixMoment w (TraceEnsemble.operator v) = ∑' i, vectorMoment w (v i) :=by
proof · 11
lines
have he (a : A) : ENNReal.ofReal
(inner ℂ (lp.single 2 a 1) (TraceEnsemble.operator v (lp.single 2 a 1))).re =
∑' i, ENNReal.ofReal (‖v i a‖^2) :=byhaveh : HasSum (fun i => ‖v i a‖^2)
(inner ℂ (lp.single 2 a 1) (TraceEnsemble.operator v (lp.single 2 a 1))).re :=by
convert! TraceEnsemble.hasSum_quadratic hv (lp.single 2 a 1) using1
ext i
simp only [lp.inner_single_left, RCLike.inner_apply, map_one, mul_one]
rw [← h.tsum_eq, ENNReal.ofReal_tsum_of_nonneg (fun _ => sq_nonneg _) h.summable]
simp only [matrixMoment, he, ←ENNReal.tsum_mul_left, vectorMoment]
exact ENNReal.tsum_comm
theoremtensor_add_moment (w : A→ℝ≥0∞) (u : B→ℝ≥0∞) (x : HA) (y : HB) :
vectorMoment (funab : A×B=> w ab.1+u ab.2) (tensor x y) =
vectorMoment w x * ENNReal.ofReal (‖y‖^2) +
ENNReal.ofReal (‖x‖^2) * vectorMoment u y :=by
proof · 11
lines
havehx : (∑' a, ENNReal.ofReal (‖x a‖^2)) = ENNReal.ofReal (‖x‖^2) :=by
simpa only [vectorMoment, one_mul] using vectorMoment_one x
havehy : (∑' b, ENNReal.ofReal (‖y b‖^2)) = ENNReal.ofReal (‖y‖^2) :=by
simpa only [vectorMoment, one_mul] using vectorMoment_one y
change (∑' ab : A×B, (w ab.1+u ab.2)*ENNReal.ofReal (‖x ab.1*y ab.2‖^2)) = _
simp only [norm_mul, mul_pow, ENNReal.ofReal_mul (sq_nonneg _),
add_mul, ENNReal.tsum_add, ENNReal.tsum_prod']
congr 1
· simp only [← mul_assoc, ENNReal.tsum_mul_left, ENNReal.tsum_mul_right, hy, vectorMoment]
· simp only [mul_left_comm (u _) (ENNReal.ofReal _), ENNReal.tsum_mul_left,
ENNReal.tsum_mul_right, hx, vectorMoment]
theorembeam_sector_weighted_mass {n : ℕ} (η : ℝ) (hη : η ∈Set.Icc01)
(x : JointFock n) (w : NumberIndex n →ℝ≥0∞) :
(∑' a : NumberSector n, w a.1 * ENNReal.ofReal
(‖inner ℂ (jointSectorBasis n a) (beamUnitary η hη x)‖^2)) =
∑' a : NumberSector n, w a.1 * ENNReal.ofReal (‖inner ℂ (jointSectorBasis n a) x‖^2) :=by
rw [energyMoment_eq]
have hp (k : NumberIndex n) : 0≤ (totalNumber k : ℝ)*(entry ρ.op k k).re :=
mul_nonneg (Nat.cast_nonneg _) (ρ.positive.re_inner_nonneg_right _)
constructor
· intro h
exact h.tsum_ofReal_lt_top
· intro h
have hs :=ENNReal.summable_toReal h.ne
change Summable (fun k => (totalNumber k : ℝ)*(entry ρ.op k k).re)
simpa only [ENNReal.toReal_ofReal (hp _)] using hs
simp only [firstKraus_apply]
apply hasSum_slice_family (v :=fun b => beamUnitary η hη (tensor x (rootColumn σ b)))
simpa only [LinearIsometryEquiv.norm_map, tensor_norm_sq, mul_one] using
(rootColumn_norm σ).mul_left (‖x‖^2)
theoremsecondKraus_norm {n : ℕ} (η : ℝ) (hη : η ∈Set.Icc01) (ρ : State n) (x : Fock n) :
HasSum (fun ea => ‖secondKraus η hη ρ ea x‖^2) (‖x‖^2) :=by
proof · 4
lines
simp only [secondKraus_apply]
apply hasSum_slice_family (v :=fun a => beamUnitary η hη (tensor (rootColumn ρ a) x))
simpa only [LinearIsometryEquiv.norm_map, tensor_norm_sq, one_mul] using
(rootColumn_norm ρ).mul_right (‖x‖^2)
have hu (j : J) : (∑' i, ‖V i (v j)‖^2) = ‖v j‖^2:= (hV (v j)).tsum_eq
havehs : Summable (funji : J×I=> ‖V ji.2 (v ji.1)‖^2) :=by
apply (summable_prod_of_nonneg (fun _ => sq_nonneg _)).mpr
exact ⟨fun j => (hV (v j)).summable, by simpa only [hu] using hv.summable⟩
haveht : (∑' ji : J×I, ‖V ji.2 (v ji.1)‖^2) = t :=by
rw [hs.tsum_prod]
simpa only [hu] using hv.tsum_eq
havehsum : HasSum (funji : J×I=> ‖V ji.2 (v ji.1)‖^2) t := ht ▸ hs.hasSum
exact (Equiv.prodComm IJ).hasSum_iff.mpr hsum
theorembeam_ensemble {n : ℕ} {IJ : Type*} (η : ℝ) (hη : η ∈Set.Icc01)
(ρ σ : State n) (v : I→Fock n) (w : J→Fock n)
(hv : HasSum (fun i => ‖v i‖^2) 1) (hw : HasSum (fun j => ‖w j‖^2) 1)
(hev : TraceEnsemble.operator v = ρ.op) (hew : TraceEnsemble.operator w = σ.op) :
partialTrace (funij : I×J=> beamUnitary η hη (tensor (v ij.1) (w ij.2))) =
(beamOutput η hη ρ σ).op :=by
proof · 9
lines
havehn : Summable (funij : I×J=> ‖beamUnitary η hη (tensor (v ij.1) (w ij.2))‖^2) :=by
simpa only [LinearIsometryEquiv.norm_map] using (TraceEnsemble.hasSum_tensor_norm hv hw).summable
apply entry_ext
intro k l
havehh : HasSum (fun e => outputBlock η ρ σ k l e)
(entry (partialTrace (funij : I×J=> beamUnitary η hη (tensor (v ij.1) (w ij.2)))) k l) :=by
simpa only [entry, numberKet, beam_ensemble_entry η hη ρ σ v w hv hw hev hew] using
partialTrace_entry hn k l
exact hh.unique (beamOutput_spec η hη ρ σ k l)
theoremfirstKraus_ensemble {n : ℕ} {I : Type*} (η : ℝ) (hη : η ∈Set.Icc01)
(ρ σ : State n) (v : I→Fock n) (hv : HasSum (fun i => ‖v i‖^2) 1)
(hev : TraceEnsemble.operator v = ρ.op) :
TraceEnsemble.operator (funei : (NumberIndex n ×NumberIndex n) ×I=>
firstKraus η hη σ ei.1 (v ei.2)) = (beamOutput η hη ρ σ).op :=by
proof · 6
lines
let e := (Equiv.prodAssoc (NumberIndex n) (NumberIndex n) I).trans
(Equiv.prodCongr (Equiv.refl (NumberIndex n)) (Equiv.prodComm (NumberIndex n) I))
have he :=TraceEnsemble.operator_reindex e (funz : NumberIndex n × (I×NumberIndex n) =>
slice (beamUnitary η hη (tensor (v z.2.1) (rootColumn σ z.2.2))) z.1)
change _ = partialTrace (funij : I×NumberIndex n => beamUnitary η hη (tensor (v ij.1) (rootColumn σ ij.2))) at he
exact he.trans (beam_ensemble η hη ρ σ v (rootColumn σ) hv (rootColumn_norm σ) hev (rootColumn_operator σ))
theoremsecondKraus_ensemble {n : ℕ} {I : Type*} (η : ℝ) (hη : η ∈Set.Icc01)
(ρ σ : State n) (v : I→Fock n) (hv : HasSum (fun i => ‖v i‖^2) 1)
(hev : TraceEnsemble.operator v = σ.op) :
TraceEnsemble.operator (funei : (NumberIndex n ×NumberIndex n) ×I=>
secondKraus η hη ρ ei.1 (v ei.2)) = (beamOutput η hη ρ σ).op :=by
proof · 5
lines
have he :=TraceEnsemble.operator_reindex (Equiv.prodAssoc (NumberIndex n) (NumberIndex n) I)
(funz : NumberIndex n × (NumberIndex n ×I) =>
slice (beamUnitary η hη (tensor (rootColumn ρ z.2.1) (v z.2.2))) z.1)
change _ = partialTrace (funij : NumberIndex n ×I=> beamUnitary η hη (tensor (rootColumn ρ ij.1) (v ij.2))) at he
exact he.trans (beam_ensemble η hη ρ σ (rootColumn ρ) v (rootColumn_norm ρ) hv (rootColumn_operator ρ) hev)
theoreminner_sum (v w : I→E) (hv : Summable (fun i => ‖v i‖^2)) (hw : Summable (fun i => ‖w i‖^2)) :
HasSum (fun i => inner ℂ (v i) (w i)) (inner ℂ (vector v hv) (vector w hw)) :=
proof · 1
line
lp.hasSum_inner (𝕜:=ℂ) (vector v hv) (vector w hw)
theoremprojection_bound (x a b : E) (hab : inner ℂ a b = 0)
(hax : inner ℂ a x = inner ℂ a a) (hbx : inner ℂ b x = inner ℂ b b) :
‖a‖^2+‖b‖^2≤ ‖x‖^2:=by
proof · 12
lines
havehba : inner ℂ b a = 0:=by rw [← inner_conj_symm b a, hab, map_zero]
havehxa : inner ℂ x a = inner ℂ a a :=by
rw [← inner_conj_symm x a, hax, inner_self_conj]
havehxb : inner ℂ x b = inner ℂ b b :=by
rw [← inner_conj_symm x b, hbx, inner_self_conj]
havehh : 0≤ (inner ℂ (x-a-b) (x-a-b)).re := inner_self_nonneg (𝕜:=ℂ) (x := x-a-b)
simp only [inner_sub_left, inner_sub_right, hax, hbx, hxa, hxb, hab, hba] at hh
simp only [Complex.sub_re, Complex.zero_re] at hh
have hn (v : E) : (inner ℂ v v).re = ‖v‖^2:=by
exact (norm_sq_eq_re_inner (𝕜:=ℂ) v).symm
simp only [hn] at hh
nlinarith
theoremprojection_sums (x a b : I→E) (u v w : ℝ)
(hx : HasSum (fun i => ‖x i‖^2) w) (ha : HasSum (fun i => ‖a i‖^2) u)
(hb : HasSum (fun i => ‖b i‖^2) v)
(hab : HasSum (fun i => inner ℂ (a i) (b i)) 0)
(hax : HasSum (fun i => inner ℂ (a i) (x i)) (u : ℂ))
(hbx : HasSum (fun i => inner ℂ (b i) (x i)) (v : ℂ)) : u+v ≤ w :=by
proof · 12
lines
have hna := (norm_sum a ha.summable).unique ha
have hnb := (norm_sum b hb.summable).unique hb
have hnx := (norm_sum x hx.summable).unique hx
have hh := projection_bound (vector x hx.summable) (vector a ha.summable) (vector b hb.summable)
((inner_sum a b ha.summable hb.summable).unique hab)
(by rw [(inner_sum a x ha.summable hx.summable).unique hax, inner_self_eq_norm_sq_to_K]
change (u:ℂ)=(‖vector a ha.summable‖:ℂ)^2
rw [←Complex.ofReal_pow, hna])
(by rw [(inner_sum b x hb.summable hx.summable).unique hbx, inner_self_eq_norm_sq_to_K]
change (v:ℂ)=(‖vector b hb.summable‖:ℂ)^2
rw [←Complex.ofReal_pow, hnb])
rwa [hna, hnb, hnx] at hh
theoremfubini_inner (a z : I×J→E) (u : I→ℂ) (t : ℂ)
(ha : Summable (fun ij => ‖a ij‖^2)) (hz : Summable (fun ij => ‖z ij‖^2))
(hrow : ∀ i, HasSum (fun j => inner ℂ (a (i,j)) (z (i,j))) (u i))
(hu : HasSum u t) : HasSum (fun ij => inner ℂ (a ij) (z ij)) t :=by
proof · 2
lines
have hh := inner_sum a z ha hz
exact (hh.prod_fiberwise hrow).unique hu ▸ hh
theoremfubini_inner_second (a z : I×J→E) (u : J→ℂ) (t : ℂ)
(ha : Summable (fun ij => ‖a ij‖^2)) (hz : Summable (fun ij => ‖z ij‖^2))
(hrow : ∀ j, HasSum (fun i => inner ℂ (a (i,j)) (z (i,j))) (u j))
(hu : HasSum u t) : HasSum (fun ij => inner ℂ (a ij) (z ij)) t :=by
proof · 4
lines
have hh := fubini_inner (funji : J×I=> a (ji.2,ji.1))
(funji : J×I=> z (ji.2,ji.1)) u t
ha.prod_symm hz.prod_symm hrow hu
exact (Equiv.prodComm JI).hasSum_iff (f :=fun ij => inner ℂ (a ij) (z ij)) |>.mp hh
theoremself_inner_hasSum (v : I→E) (hv : Summable (fun i => ‖v i‖^2)) :
HasSum (fun i => inner ℂ (v i) (v i)) (((∑' i, ‖v i‖^2):ℝ):ℂ) :=by
proof · 6
lines
have hh := hv.hasSum.mapL Complex.ofRealCLM
have he (i : I) : inner ℂ (v i) (v i) = (((‖v i‖^2):ℝ):ℂ) :=by
rw [inner_self_eq_norm_sq_to_K]
change (‖v i‖:ℂ)^2=(((‖v i‖^2):ℝ):ℂ)
rw [Complex.ofReal_pow]
simpa only [he, Complex.ofRealCLM_apply] using hh
theoremdual_point_square (V : I→E→L[ℂ] H)
(hV : ∀ x, HasSum (fun i => ‖V i x‖^2) (‖x‖^2))
(Z : H→L[ℂ] H) (x : E) :
‖dual V hV Z x‖^2≤∑' i, ‖Z (V i x)‖^2:=by
proof · 11
lines
havehn : ‖(analysis V hV).adjoint‖ ≤1:=by
rw [LinearIsometryEquiv.norm_map]
exact analysis_norm V hV
haveht : ‖dual V hV Z x‖ ≤ ‖acted V hV Z x‖ :=by
exact ((analysis V hV).adjoint.le_opNorm (acted V hV Z x)).trans
(by simpa only [one_mul] using mul_le_mul_of_nonneg_right hn (norm_nonneg (acted V hV Z x)))
havehs : HasSum (fun i => ‖Z (V i x)‖^2) (‖acted V hV Z x‖^2) :=by
convert! lp.hasSum_norm (p:=2) (by norm_num) (acted V hV Z x) using1 <;> simp only [ENNReal.toReal_ofNat, Real.rpow_two]
rfl
rw [hs.tsum_eq]
exact pow_le_pow_left₀ (norm_nonneg _) ht 2
theoremcenter_mean (v : I→E) (hv : HasSum (fun i => ‖v i‖^2) 1) (Z : E→L[ℂ] E) :
HasSum (fun i => inner ℂ (v i) (center v Z (v i))) 0:=by
proof · 5
lines
havehi : HasSum (fun i => inner ℂ (v i) (v i)) (1:ℂ) :=by
simpa only [hv.tsum_eq, Complex.ofReal_one] using self_inner_hasSum v hv.summable
have hh := (mean_hasSum v hv.summable Z).sub (hi.mul_left (mean v Z))
simpa only [center, sub_apply, smul_apply, inner_sub_right, inner_smul_right,
ContinuousLinearMap.id_apply, mul_one, sub_self] using hh
theoremconditionalLeft_mean (x : I→HA) (y : J→HB)
(hx : HasSum (fun i => ‖x i‖^2) 1) (hy : HasSum (fun j => ‖y j‖^2) 1)
(Z : H (A×B) →L[ℂ] H (A×B)) :
HasSum (fun i => inner ℂ (x i) (conditionalLeft y hy Z (x i)))
(EnsembleL2.mean (funij : I×J=> tensor (x ij.1) (y ij.2)) Z) :=by
proof · 3
lines
have hh :=EnsembleL2.mean_hasSum (funij : I×J=> tensor (x ij.1) (y ij.2))
(tensorFamily_summable x y hx.summable hy.summable) Z
exact hh.prod_fiberwise (fun i => conditionalLeft_entry y hy Z (x i) (x i))
theoremcentered_arithmetic_projection (x : I→HA) (y : J→HB)
(hx : HasSum (fun i => ‖x i‖^2) 1) (hy : HasSum (fun j => ‖y j‖^2) 1)
(Z : H (A×B) →L[ℂ] H (A×B)) :
letT:=EnsembleL2.center (funij : I×J=> tensor (x ij.1) (y ij.2)) Z
proof · 12
lines
(∑' i, ‖conditionalLeft y hy T (x i)‖^2)+(∑' j, ‖conditionalRight x hx T (y j)‖^2) ≤∑' ij : I×J, ‖T (tensor (x ij.1) (y ij.2))‖^2:=by
dsimp only
letT:=EnsembleL2.center (funij : I×J=> tensor (x ij.1) (y ij.2)) Zhavehv : HasSum (funij : I×J=> ‖tensor (x ij.1) (y ij.2)‖^2) 1:=by
simpa only [one_mul] using tensorFamily_norm x y 11 hx hy
have hm :=EnsembleL2.center_mean (funij : I×J=> tensor (x ij.1) (y ij.2)) hv Zhavehz : EnsembleL2.mean (funij : I×J=> tensor (x ij.1) (y ij.2)) T=0:= hm.tsum_eq
apply arithmetic_projection x y hx hy T (conditionalLeft y hy T) (conditionalRight x hx T)
(conditionalLeft_entry y hy T) (conditionalRight_entry x hx T)
· exact hz ▸ conditionalLeft_mean x y hx hy T
· exact hz ▸ conditionalRight_mean x y hx hy T
theoremdual_output_mean (V : K→E→L[ℂ] H)
(hV : ∀ x, HasSum (fun k => ‖V k x‖^2) (‖x‖^2))
(v : I→E) (hv : Summable (fun i => ‖v i‖^2)) (Z : H→L[ℂ] H) :
EnsembleL2.mean v (dual V hV Z)=EnsembleL2.mean (funik : I×K=>V ik.2 (v ik.1)) Z:=by
proof · 4
lines
have hw := family_hasSum V hV v _ hv.hasSum
have hh :=EnsembleL2.mean_hasSum (funik : I×K=>V ik.2 (v ik.1)) hw.summable Z
exact (EnsembleL2.mean_hasSum v hv (dual V hV Z)).unique
(hh.prod_fiberwise (fun i => dual_entry V hV Z (v i) (v i)))
theoremdual_variance (V : K→E→L[ℂ] H)
(hV : ∀ x, HasSum (fun k => ‖V k x‖^2) (‖x‖^2))
(v : I→E) (hv : Summable (fun i => ‖v i‖^2)) (Z : H→L[ℂ] H) :
(∑' i, ‖EnsembleL2.center v (dual V hV Z) (v i)‖^2) ≤∑' ik : I×K, ‖EnsembleL2.center (funik : I×K=>V ik.2 (v ik.1)) Z (V ik.2 (v ik.1))‖^2:=by
proof · 6
lines
letT:=EnsembleL2.center (funik : I×K=>V ik.2 (v ik.1)) Zhave hw := family_hasSum V hV v _ hv.hasSum
have hs :=EnsembleL2.image_summable (funik : I×K=>V ik.2 (v ik.1)) hw.summable T
rw [dual_center V hV v hv Z, hs.tsum_prod]
exact Summable.tsum_le_tsum (fun i => dual_point_square V hV T (v i))
(EnsembleL2.image_summable v hv (dual V hV T)) hs.prod
theoremchannel_arithmetic_projection (x : I→HA) (y : J→HB)
(hx : HasSum (fun i => ‖x i‖^2) 1) (hy : HasSum (fun j => ‖y j‖^2) 1)
(V : K→H (A×B) →L[ℂ] E)
(hV : ∀ z, HasSum (fun k => ‖V k z‖^2) (‖z‖^2))
(Z : E→L[ℂ] E) :
let v :=funij : I×J=> tensor (x ij.1) (y ij.2)
proof · 6
lines
letT:=EnsembleL2.center v (KrausBounded.dual V hV Z)
(∑' i, ‖conditionalLeft y hy T (x i)‖^2)+(∑' j, ‖conditionalRight x hx T (y j)‖^2) ≤∑' ik : (I×J) ×K, ‖EnsembleL2.center (funik : (I×J) ×K=>V ik.2 (v ik.1)) Z (V ik.2 (v ik.1))‖^2:=by
exact (centered_arithmetic_projection x y hx hy (KrausBounded.dual V hV Z)).trans
(KrausBounded.dual_variance V hV (funij : I×J=> tensor (x ij.1) (y ij.2))
(tensorFamily_summable x y hx.summable hy.summable) Z)
theoremdual_composite (V : I→E→L[ℂ] H) (U : J→H→L[ℂ] F)
(hV : ∀ x, HasSum (fun i => ‖V i x‖^2) (‖x‖^2))
(hU : ∀ x, HasSum (fun j => ‖U j x‖^2) (‖x‖^2)) (Z : F→L[ℂ] F) :
dual (composite VU) (composite_norm VU hV hU) Z=dual V hV (dual U hU Z) :=by
proof · 6
lines
ext y
apply ext_inner_left ℂ
intro x
have hh := dual_entry (composite VU) (composite_norm VU hV hU) Z x y
exact (hh.prod_fiberwise (fun i => dual_entry U hU Z (V i x) (V i y))).unique
(dual_entry V hV (dual U hU Z) x y)
theoremdual_reindex {K : Type*} (e : K ≃ I) (V : I→E→L[ℂ] H)
(hV : ∀ x, HasSum (fun i => ‖V i x‖^2) (‖x‖^2))
(hW : ∀ x, HasSum (fun k => ‖V (e k) x‖^2) (‖x‖^2)) (Z : H→L[ℂ] H) :
dual (fun k =>V (e k)) hW Z=dual V hV Z:=by
proof · 4
lines
ext y
apply ext_inner_left ℂ
intro x
exact (dual_entry _ hW Z x y).unique (e.hasSum_iff.mpr (dual_entry V hV Z x y))
theoremjointKraus_norm {n : ℕ} (η : ℝ) (hη : η ∈Set.Icc01)
(x : H (NumberIndex n ×NumberIndex n)) :
HasSum (fun e => ‖jointKraus η hη e x‖^2) (‖x‖^2) :=by
proof · 2
lines
convert! hasSum_slice_norm_sq (beamUnitary η hη x) using1
exact (beamUnitary η hη).norm_map x |>.symm |> congrArg (funt : ℝ=> t^2)
theoremphysical_arithmetic_projection {n : ℕ} (η θ : ℝ)
(hη : η ∈Set.Icc01) (hθ : θ ∈Set.Icc01) (ρ σ τ : State n)
(Z : Fock n →L[ℂ] Fock n) :
let x := rootColumn ρ
proof · 10
lines
let y := rootColumn σ
let v :=funij : NumberIndex n ×NumberIndex n => tensor (x ij.1) (y ij.2)
letT:=EnsembleL2.center v (rawDual η θ hη hθ τ Z)
let out :=funik : (NumberIndex n ×NumberIndex n) × (NumberIndex n × (NumberIndex n ×NumberIndex n)) =>
rawJointKraus η θ hη hθ τ ik.2 (v ik.1)
(∑' i, ‖conditionalLeft y (rootColumn_norm σ) T (x i)‖^2)+
(∑' j, ‖conditionalRight x (rootColumn_norm ρ) T (y j)‖^2) ≤∑' ik, ‖EnsembleL2.center out Z (out ik)‖^2:=
channel_arithmetic_projection (rootColumn ρ) (rootColumn σ) (rootColumn_norm ρ)
(rootColumn_norm σ) (rawJointKraus η θ hη hθ τ) (rawJointKraus_norm η θ hη hθ τ) Z
deffixedPortEquiv (n : ℕ) : ((NumberIndex n ×NumberIndex n) × (NumberIndex n ×NumberIndex n)) ≃
NumberIndex n × (NumberIndex n × (NumberIndex n ×NumberIndex n)) where
body · 4
lines
toFun z := (z.2.2, (z.2.1,z.1))
invFun z := (z.2.2,(z.2.1,z.1))
left_inv _ := rfl
right_inv _ := rfl