defdissipator (j : Fin n) (u : Bool) (x : I→Fock n) : Fock n →L[ℂ] Fock n :=
body · 4
lines
CrossEnsemble.operator (if u then raiseFamily j x else lowerFamily j x)
(if u then raiseFamily j x else lowerFamily j x)-
(2:ℂ)⁻¹ • (CrossEnsemble.operator (modeFamily j u x) (baseFamily x)+
CrossEnsemble.operator (baseFamily x) (modeFamily j u x))
theoremdissipator_entry (x : I→Fock n) (hx : Summable (fun i => ‖x i‖^2))
(j : Fin n) (u : Bool) (k l : NumberIndex n) :
entry (dissipator j u x) k l =
(if u then raiseCoefficient j k*conj (raiseCoefficient j l)*
entry (CrossEnsemble.operator (baseFamily x) (baseFamily x)) (down j k) (down j l)
else lowerCoefficient j k*conj (lowerCoefficient j l)*
entry (CrossEnsemble.operator (baseFamily x) (baseFamily x)) (up j k) (up j l))-
(2:ℂ)⁻¹*((modeCoefficient j u k+conj (modeCoefficient j u l))*
entry (CrossEnsemble.operator (baseFamily x) (baseFamily x)) k l) :=by
proof · 42
lines
havehi : Summable (fun i => ‖baseFamily x i‖^2) :=CrossEnsemble.applied_summable hx (inverseWeight 3)
havehm : Summable (fun i => ‖modeFamily j u x i‖^2) :=CrossEnsemble.applied_summable hx (inverseWeight 2∘L modeBound j u)
have hml :=CrossEnsemble.entry_transform (modeFamily j u x) (baseFamily x) (baseFamily x) (baseFamily x)
hm hi hi hi k l k l (modeCoefficient j u k) 1 (by
intro i
simp only [modeFamily,baseFamily,single_number_third_apply,modeCoefficient,map_one,mul_one]
ring)
have hmr :=CrossEnsemble.entry_transform (baseFamily x) (modeFamily j u x) (baseFamily x) (baseFamily x)
hi hm hi hi k l k l 1 (modeCoefficient j u l) (by
intro i
simp only [modeFamily,baseFamily,single_number_third_apply,modeCoefficient,one_mul,map_mul]
ring)
havehg : entry (CrossEnsemble.operator (if u then raiseFamily j x else lowerFamily j x)
(if u then raiseFamily j x else lowerFamily j x)) k l =
(if u then raiseCoefficient j k*conj (raiseCoefficient j l)*
entry (CrossEnsemble.operator (baseFamily x) (baseFamily x)) (down j k) (down j l)
else lowerCoefficient j k*conj (lowerCoefficient j l)*
entry (CrossEnsemble.operator (baseFamily x) (baseFamily x)) (up j k) (up j l)) :=by
cases u
· simp only [Bool.false_eq_true,ite_false]
apply CrossEnsemble.entry_transform _ _ _ _
(CrossEnsemble.applied_summable hx (sandwich 03 (by omega) j))
(CrossEnsemble.applied_summable hx (sandwich 03 (by omega) j)) hi hi
intro i
simp only [baseFamily,single_lower_third_apply,lowerCoefficient,map_mul]
ring
· simp only [ite_true]
apply CrossEnsemble.entry_transform _ _ _ _
(CrossEnsemble.applied_summable hx (creationSandwich 03 (by omega) j))
(CrossEnsemble.applied_summable hx (creationSandwich 03 (by omega) j)) hi hi
intro i
simp only [baseFamily,single_raise_third_apply,raiseCoefficient,map_mul]
ring
havehout : entry (dissipator j u x) k l=entry (CrossEnsemble.operator
(if u then raiseFamily j x else lowerFamily j x) (if u then raiseFamily j x else lowerFamily j x)) k l-
(2:ℂ)⁻¹*(entry (CrossEnsemble.operator (modeFamily j u x) (baseFamily x)) k l+
entry (CrossEnsemble.operator (baseFamily x) (modeFamily j u x)) k l) :=by
simp only [entry,dissipator,sub_apply,smul_apply,add_apply,inner_sub_right,inner_smul_right,inner_add_right]
rw [hout,hg,hml,hmr]
simp only [map_one,mul_one,one_mul]
ring
theoremweighted_pairing_zero_of_geometric_diagonal (r : ℝ) (p : NumberIndex n →ℝ)
(hb : ∀ j k, ((r+1:ℝ):ℂ)*(p (up j k):ℂ)=(r:ℂ)*(p k:ℂ))
(x : I→Fock n) (hx : Summable (fun i => ‖x i‖^2))
(he : ∀ k l, entry (CrossEnsemble.operator (baseFamily x) (baseFamily x)) k l=
if k=l then (p k:ℂ) else0) (B : Fock n →L[ℂ] Fock n) :
WeightedGenerator.pairing r x B=0:=by
proof · 14
lines
letbas : HilbertBasis (NumberIndex n) ℂ (Fock n) :=HilbertBasis.ofRepr (LinearIsometryEquiv.refl ℂ _)
have hg := generator_zero_of_geometric_diagonal r p hb x hx he
havehzero : HasSum (fun_ : NumberIndex n => (0:ℂ)) 0:= hasSum_zero
have hphys (Z : Fock n →L[ℂ] Fock n) : singleGeneratorPairing r x Z=0:=byhave hh := pairing_hasSum bas r x hx Zhavehz : HasSum (fun_ : NumberIndex n => (0:ℂ)) (singleGeneratorPairing r x Z) :=by
simpa only [hg,zero_apply,map_zero,inner_zero_right] using hh
exact hz.unique hzero
apply weighted_trace_ext bas (WeightedGenerator.generator r x) 0
(WeightedGenerator.pairing r x) (fun _ =>0)
(funZ=>WeightedGenerator.pairing_hasSum bas r x hx Z)
(funZ=>by simpa only [zero_apply,map_zero,inner_zero_right] using hzero)
(funZ=>by rw [weighted_pairing_physical,hphys]) B
theoremthermalWeight_balance {n : ℕ} (r : ℝ) (hr : 0<r) (j : Fin n) (k : Fin n →ℕ) :
((r+1:ℝ):ℂ)*(thermalWeight n r (Annihilation.up j k):ℂ)=
(r:ℂ)*(thermalWeight n r k:ℂ) :=by
proof · 5
lines
haveh : (r+1)*thermalWeight n r (Annihilation.up j k)=r*thermalWeight n r k :=by
rw [thermalWeight_up]
havehr1 : r+1≠0:=by positivity
field_simp
exact_mod_cast h
theoremdissipator_affine (c d : ℂ) (x : I→Fock n) (y : J→Fock n) (z : K→Fock n)
(hx : Summable (fun i => ‖x i‖^2)) (hy : Summable (fun j => ‖y j‖^2))
(hz : Summable (fun k => ‖z k‖^2))
(he : CrossEnsemble.operator (baseFamily z) (baseFamily z)=
c • CrossEnsemble.operator (baseFamily x) (baseFamily x)+
d • CrossEnsemble.operator (baseFamily y) (baseFamily y))
(j : Fin n) (u : Bool) : dissipator j u z=c • dissipator j u x+d • dissipator j u y :=by
proof · 14
lines
have he' (k l : NumberIndex n) :
entry (CrossEnsemble.operator (baseFamily z) (baseFamily z)) k l=
c*entry (CrossEnsemble.operator (baseFamily x) (baseFamily x)) k l+
d*entry (CrossEnsemble.operator (baseFamily y) (baseFamily y)) k l :=by
rw [he]
simp only [entry,add_apply,smul_apply,inner_add_right,inner_smul_right]
apply entry_ext
intro k l
havehs : entry (c • dissipator j u x+d • dissipator j u y) k l=
c*entry (dissipator j u x) k l+d*entry (dissipator j u y) k l :=by
simp only [entry,add_apply,smul_apply,inner_add_right,inner_smul_right]
rw [hs,dissipator_entry z hz,dissipator_entry x hx,dissipator_entry y hy]
simp only [he']
cases u <;> simp only [Bool.false_eq_true,ite_false,ite_true] <;> ring
theoremgenerator_affine (r : ℝ) (c d : ℂ) (x : I→Fock n) (y : J→Fock n) (z : K→Fock n)
(hx : Summable (fun i => ‖x i‖^2)) (hy : Summable (fun j => ‖y j‖^2))
(hz : Summable (fun k => ‖z k‖^2))
(he : CrossEnsemble.operator (baseFamily z) (baseFamily z)=
c • CrossEnsemble.operator (baseFamily x) (baseFamily x)+
d • CrossEnsemble.operator (baseFamily y) (baseFamily y)) :
generator r z=c • generator r x+d • generator r y :=by
proof · 5
lines
unfold generator
simp only [dissipator_affine c d x y z hx hy hz he,smul_add,Finset.smul_sum,←Finset.sum_add_distrib]
apply Finset.sum_congr rfl
intro j _
module
theorempairing_affine (r : ℝ) (c d : ℂ) (x : I→Fock n) (y : J→Fock n) (z : K→Fock n)
(hx : Summable (fun i => ‖x i‖^2)) (hy : Summable (fun j => ‖y j‖^2))
(hz : Summable (fun k => ‖z k‖^2))
(he : CrossEnsemble.operator (baseFamily z) (baseFamily z)=
c • CrossEnsemble.operator (baseFamily x) (baseFamily x)+
d • CrossEnsemble.operator (baseFamily y) (baseFamily y)) (Z : Fock n →L[ℂ] Fock n) :
singleGeneratorPairing r z Z=c*singleGeneratorPairing r x Z+d*singleGeneratorPairing r y Z:=by
proof · 5
lines
letbas : HilbertBasis (NumberIndex n) ℂ (Fock n) :=HilbertBasis.ofRepr (LinearIsometryEquiv.refl ℂ _)
apply (pairing_hasSum bas r z hz Z).unique
rw [generator_affine r c d x y z hx hy hz he]
simpa only [add_apply,smul_apply,map_add,map_smul,inner_add_right,inner_smul_right] using
((pairing_hasSum bas r x hx Z).mul_left c).add ((pairing_hasSum bas r y hy Z).mul_left d)
theoremweighted_pairing_affine (r : ℝ) (c d : ℂ) (x : I→Fock n) (y : J→Fock n) (z : K→Fock n)
(hx : Summable (fun i => ‖x i‖^2)) (hy : Summable (fun j => ‖y j‖^2))
(hz : Summable (fun k => ‖z k‖^2))
(he : CrossEnsemble.operator (baseFamily z) (baseFamily z)=
c • CrossEnsemble.operator (baseFamily x) (baseFamily x)+
d • CrossEnsemble.operator (baseFamily y) (baseFamily y)) (B : Fock n →L[ℂ] Fock n) :
WeightedGenerator.pairing r z B=c*WeightedGenerator.pairing r x B+d*WeightedGenerator.pairing r y B:=by
proof · 12
lines
letbas : HilbertBasis (NumberIndex n) ℂ (Fock n) :=HilbertBasis.ofRepr (LinearIsometryEquiv.refl ℂ _)
apply weighted_trace_ext bas (WeightedGenerator.generator r z)
(c • WeightedGenerator.generator r x+d • WeightedGenerator.generator r y)
(WeightedGenerator.pairing r z) (funZ=> c*WeightedGenerator.pairing r x Z+d*WeightedGenerator.pairing r y Z)
· exact funZ=>WeightedGenerator.pairing_hasSum bas r z hz Z
· intro Z
simpa only [add_apply,smul_apply,map_add,map_smul,inner_add_right,inner_smul_right] using
((WeightedGenerator.pairing_hasSum bas r x hx Z).mul_left c).add
((WeightedGenerator.pairing_hasSum bas r y hy Z).mul_left d)
· intro Z
simp only [weighted_pairing_physical]
exact pairing_affine r c d x y z hx hy hz he Z
theoremthermal_pairing_zero (r : ℝ) (hr : 0<r)
(he : ∀ k l, entry ρ.op k l=if k=l then (thermalWeight n r k:ℂ) else0)
(B : Fock n →L[ℂ] Fock n) : WeightedGenerator.pairing r X.vector B=0:=by
proof · 3
lines
apply PhysicalGenerator.weighted_thermal_pairing_zero r hr X.vector X.summable
intro k l
rw [X.base_density,he]
theoremweak_pairing_hasSum {L : Type*} (b : HilbertBasisLℂ (Fock n))
(r : ℝ) (j : Fin n) (x : I→Fock n) (hx : Summable (fun i => ‖x i‖^2))
(Z : Fock n →L[ℂ] Fock n) :
HasSum (fun k => inner ℂ (b k) (Z (weakOperator r j x (b k)))) (singleWeak r j x Z) :=by
proof · 8
lines
have hi :=CrossEnsemble.applied_summable hx (inverseWeight 3)
have hl :=CrossEnsemble.applied_summable hx (sandwich 03 (by omega) j)
have hr :=CrossEnsemble.applied_summable hx (creationSandwich 03 (by omega) j)
have hh := ((CrossEnsemble.pairing_trace b hi hl Z).mul_left (r+1:ℂ)).sub
((CrossEnsemble.pairing_trace b hr hi Z).mul_left (r:ℂ))
unfold weakOperator
simp only [smul_apply,sub_apply,map_sub,map_smul,inner_sub_right,inner_smul_right]
exact hh
theoremweakOperator_entry (r : ℝ) (j : Fin n) (x : I→Fock n)
(hx : Summable (fun i => ‖x i‖^2)) (k l : NumberIndex n) :
entry (weakOperator r j x) k l=
(r+1:ℂ)*conj (lowerCoefficient j l)*entry (CrossEnsemble.operator (baseFamily x) (baseFamily x)) k (up j l)-
(r:ℂ)*raiseCoefficient j k*entry (CrossEnsemble.operator (baseFamily x) (baseFamily x)) (down j k) l :=by
proof · 20
lines
have hi :=CrossEnsemble.applied_summable hx (inverseWeight 3)
have hl :=CrossEnsemble.applied_summable hx (sandwich 03 (by omega) j)
have hr :=CrossEnsemble.applied_summable hx (creationSandwich 03 (by omega) j)
have el :=CrossEnsemble.entry_transform (baseFamily x) (lowerFamily j x) (baseFamily x) (baseFamily x)
hi hl hi hi k l k (up j l) 1 (lowerCoefficient j l) (by
intro i
simp only [baseFamily,lowerFamily,single_lower_third_apply,lowerCoefficient,map_mul,one_mul]
ring)
have er :=CrossEnsemble.entry_transform (raiseFamily j x) (baseFamily x) (baseFamily x) (baseFamily x)
hr hi hi hi k l (down j k) l (raiseCoefficient j k) 1 (by
intro i
simp only [baseFamily,raiseFamily,single_raise_third_apply,raiseCoefficient,map_one,mul_one]
ring)
haveee : entry (weakOperator r j x) k l=
(r+1:ℂ)*entry (CrossEnsemble.operator (baseFamily x) (lowerFamily j x)) k l-
(r:ℂ)*entry (CrossEnsemble.operator (raiseFamily j x) (baseFamily x)) k l :=by
simp only [entry,weakOperator,sub_apply,smul_apply,inner_sub_right,inner_smul_right]
rw [ee,el,er]
simp only [one_mul,map_one,mul_one]
ring
theoremweakOperator_affine (r : ℝ) (j : Fin n) (c d : ℂ)
(x : I→Fock n) (y : J→Fock n) (z : K→Fock n)
(hx : Summable (fun i => ‖x i‖^2)) (hy : Summable (fun j => ‖y j‖^2))
(hz : Summable (fun k => ‖z k‖^2))
(he : CrossEnsemble.operator (baseFamily z) (baseFamily z)=
c • CrossEnsemble.operator (baseFamily x) (baseFamily x)+
d • CrossEnsemble.operator (baseFamily y) (baseFamily y)) :
weakOperator r j z=c • weakOperator r j x+d • weakOperator r j y :=by
proof · 8
lines
apply entry_ext
intro k l
have e (TU : Fock n →L[ℂ] Fock n) (a b : NumberIndex n) :
entry (c • T+d • U) a b=c*entry T a b+d*entry U a b :=by
simp only [entry,add_apply,smul_apply,inner_add_right,inner_smul_right]
rw [weakOperator_entry r j z hz,e,weakOperator_entry r j x hx,weakOperator_entry r j y hy,he]
rw [e,e]
ring
theoremweak_pairing_affine (r : ℝ) (j : Fin n) (c d : ℂ)
(x : I→Fock n) (y : J→Fock n) (z : K→Fock n)
(hx : Summable (fun i => ‖x i‖^2)) (hy : Summable (fun j => ‖y j‖^2))
(hz : Summable (fun k => ‖z k‖^2))
(he : CrossEnsemble.operator (baseFamily z) (baseFamily z)=
c • CrossEnsemble.operator (baseFamily x) (baseFamily x)+
d • CrossEnsemble.operator (baseFamily y) (baseFamily y)) (Z : Fock n →L[ℂ] Fock n) :
singleWeak r j z Z=c*singleWeak r j x Z+d*singleWeak r j y Z:=by
proof · 5
lines
letbas : HilbertBasis (NumberIndex n) ℂ (Fock n) :=HilbertBasis.ofRepr (LinearIsometryEquiv.refl ℂ _)
apply (weak_pairing_hasSum bas r j z hz Z).unique
rw [weakOperator_affine r j c d x y z hx hy hz he]
simpa only [add_apply,smul_apply,map_add,map_smul,inner_add_right,inner_smul_right] using
((weak_pairing_hasSum bas r j x hx Z).mul_left c).add ((weak_pairing_hasSum bas r j y hy Z).mul_left d)
theoremweak_thermal_pairing_zero (r : ℝ) (hr : 0<r)
(x : I→Fock n) (hx : Summable (fun i => ‖x i‖^2))
(he : ∀ k l, entry (CrossEnsemble.operator (baseFamily x) (baseFamily x)) k l=
if k=l then (thermalWeight n r k:ℂ) else0) (j : Fin n) (Z : Fock n →L[ℂ] Fock n) :
singleWeak r j x Z=0:=by
proof · 7
lines
letbas : HilbertBasis (NumberIndex n) ℂ (Fock n) :=HilbertBasis.ofRepr (LinearIsometryEquiv.refl ℂ _)
have hh := weak_pairing_hasSum bas r j x hx Zhave he0 := weakOperator_zero_of_geometric_diagonal r (thermalWeight n r) (fun j k =>by simpa only [Complex.ofReal_add, Complex.ofReal_one] using thermalWeight_balance r hr j k) x hx he j
havehzero : HasSum (fun_ : NumberIndex n => (0:ℂ)) 0:= hasSum_zero
havehz : HasSum (fun_ : NumberIndex n => (0:ℂ)) (singleWeak r j x Z) :=by
simpa only [he0,zero_apply,map_zero,inner_zero_right] using hh
exact hz.unique hzero
theoremthermal_weak_zero (r : ℝ) (hr : 0<r)
(he : ∀ k l, entry ρ.op k l=if k=l then (thermalWeight n r k:ℂ) else0)
(j : Fin n) (Z : Fock n →L[ℂ] Fock n) : singleWeak r j X.vector Z=0:=by
proof · 3
lines
apply PhysicalGenerator.weak_thermal_pairing_zero r hr X.vector X.summable
intro k l
rw [X.base_density,he]
theoremdual_one (V : I→E→L[ℂ] H) (hV : ∀ x, HasSum (fun i => ‖V i x‖^2) (‖x‖^2)) :
dual V hV (1 : H→L[ℂ] H)=1:=by
proof · 11
lines
apply ContinuousLinearMap.coe_injective
apply (ext_inner_map _ _).mp
intro x
have hh := dual_entry V hV 1 x x
havehs : HasSum (fun i => inner ℂ (V i x) (V i x)) (inner ℂ x x) :=by
convert! (hV x).mapL Complex.ofRealCLM using1 <;>
simp only [inner_self_eq_norm_sq_to_K,Complex.ofReal_pow,Complex.ofRealCLM_apply]
all_goals rfl
havehe : inner ℂ x (dual V hV 1 x)=inner ℂ x x := hh.unique (by simpa only [one_apply_eq_self] using hs)
simpa only [inner_conj_symm,ContinuousLinearMap.coe_coe,one_apply_eq_self] using
congrArg (starRingEnd ℂ) he
theoremconjugate_one (η : ℝ) (hη : η ∈Set.Icc01) :
conjugate (n:=n) η hη 1=1:=by
proof · 5
lines
apply ContinuousLinearMap.ext
intro x
simp only [conjugate,liftLeft_one,ContinuousLinearMap.comp_apply,one_apply_eq_self]
change (beamUnitary η hη).symm (beamUnitary η hη x)=x
exact (beamUnitary η hη).symm_apply_apply x
theoremexpectation_affine {σ τ : State n} (Y : WeightedColumns σ) (Z : WeightedColumns τ)
(c d : ℂ) (he : τ.op=c • ρ.op+d • σ.op) (A : Fock n →L[ℂ] Fock n) :
Z.expectation A=c*X.expectation A+d*Y.expectation A:=by
proof · 16
lines
letbas : HilbertBasis (NumberIndex n) ℂ (Fock n) :=HilbertBasis.ofRepr (LinearIsometryEquiv.refl ℂ _)
have hx :=CrossEnsemble.pairing_trace bas X.normalized.summable X.normalized.summable Ahave hy :=CrossEnsemble.pairing_trace bas Y.normalized.summable Y.normalized.summable Ahave hz :=CrossEnsemble.pairing_trace bas Z.normalized.summable Z.normalized.summable A
change HasSum (fun k => inner ℂ (bas k) (A (TraceEnsemble.operator
(fun i => inverseWeight 3 (X.vector i)) (bas k)))) (X.expectation A) at hx
rw [X.density] at hx
change HasSum (fun k => inner ℂ (bas k) (A (TraceEnsemble.operator
(fun i => inverseWeight 3 (Y.vector i)) (bas k)))) (Y.expectation A) at hy
rw [Y.density] at hy
change HasSum (fun k => inner ℂ (bas k) (A (TraceEnsemble.operator
(fun i => inverseWeight 3 (Z.vector i)) (bas k)))) (Z.expectation A) at hz
rw [Z.density] at hz
exact hz.unique (by
simpa only [he,add_apply,smul_apply,map_add,map_smul,inner_add_right,inner_smul_right] using
(hx.mul_left c).add (hy.mul_left d))
theoremphysical_rawSlice_expectation {n : ℕ} (η : ℝ) (hη : η ∈Set.Icc01)
(ρ σ τ : State n) (hτ : IsBeamSplitterOutput η ρ σ τ)
(X : WeightedColumns ρ) (Y : WeightedColumns σ) (T : WeightedColumns τ)
(Z : Fock n →L[ℂ] Fock n) :
X.expectation (Y.rawSlice η hη Z)=T.expectation Z∧Y.expectation (X.rawSliceRight η hη Z)=T.expectation Z:=by
proof · 33
lines
let v :=fun i => inverseWeight 3 (X.vector i)
let w :=fun j => inverseWeight 3 (Y.vector j)
letU:=funij : X.Index×Y.Index=> beamUnitary η hη (tensor (v ij.1) (w ij.2))
havehu : Summable (fun ij => ‖U ij‖^2) :=by
simpa only [U,LinearIsometryEquiv.norm_map] using
tensorFamily_summable v w X.normalized.summable Y.normalized.summable
have hd := physical_ensemble_output η hη ρ σ τ hτ v w X.normalized Y.normalized X.density Y.density
have hs := slice_family_summable U hu
havehe : CrossEnsemble.operator (funie : (X.Index×Y.Index) ×NumberIndex n => slice (U ie.1) ie.2)
(funie : (X.Index×Y.Index) ×NumberIndex n => slice (U ie.1) ie.2)=
CrossEnsemble.operator (fun i => inverseWeight 3 (T.vector i)) (fun i => inverseWeight 3 (T.vector i)) :=by
rw [cross_slice_eq_partialTrace]
change partialTrace U=TraceEnsemble.operator _
rw [T.density]
exact hd
letbas : HilbertBasis (NumberIndex n) ℂ (Fock n) :=HilbertBasis.ofRepr (LinearIsometryEquiv.refl ℂ _)
have hp :=CrossEnsemble.pairing_eq_of_operator_eq bas hs hs T.normalized.summable T.normalized.summable he Zhavehpair : CrossEnsemble.pairing (funij : X.Index×Y.Index=> tensor (v ij.1) (w ij.2))
(funij : X.Index×Y.Index=> tensor (v ij.1) (w ij.2)) (conjugate η hη Z)=T.expectation Z:=bycalc
_ = CrossEnsemble.pairing UU (liftLeft Z) :=by
unfold CrossEnsemble.pairing
congr 1
funext ij
exact conjugate_inner η hη Z _ _
_ = _ := (pairing_liftLeft UU hu hu Z).trans hp
constructor
· rw [← hpair]
exact (pairing_conditionalLeft v v w X.normalized.summable X.normalized.summable Y.normalized
(conjugate η hη Z)).symm
· rw [← hpair]
exact (pairing_conditionalRight v w w X.normalized Y.normalized.summable Y.normalized.summable
(conjugate η hη Z)).symm
theoremreplaced_threeport_centered_weak
{n : ℕ} (η θ κ a b d : ℝ) (hη : η ∈Set.Icc01) (hθ : θ ∈Set.Icc01)
(ρ σ τD m γ ω ρ0 : State n)
(h1 : IsBeamSplitterOutput η ρ σ m) (h2 : IsBeamSplitterOutput θ m τD γ)
(X : WeightedColumns ρ) (Y : WeightedColumns σ) (D : WeightedColumns τD)
(M : WeightedColumns m) (G : WeightedColumns γ) (O : WeightedColumns ω) (R : WeightedColumns ρ0)
(hd : 0<d) (hr0 : 0<θ*(η*a+(1-η)*b)+(1-θ)*d)
(hD : ∀ k l, entry τD.op k l=if k=l then (thermalWeight n d k:ℂ) else0)
(hO : ∀ k l, entry ω.op k l=if k=l then (thermalWeight n (θ*(η*a+(1-η)*b)+(1-θ)*d) k:ℂ) else0)
(hrepl : ρ0.op=((1-κ:ℝ):ℂ) • γ.op+(κ:ℂ) • ω.op)
(j : Fin n) (Z : Fock n →L[ℂ] Fock n) :
R.centeredWeak (θ*(η*a+(1-η)*b)+(1-θ)*d) j Z=
((1-κ:ℝ):ℂ)*((Real.sqrt θ:ℂ)*(Real.sqrt η:ℂ)*
X.centeredWeak a j (Y.rawSlice η hη (D.rawSlice θ hθ Z))+
(Real.sqrt θ:ℂ)*(Real.sqrt (1-η):ℂ)*
Y.centeredWeak b j (X.rawSliceRight η hη (D.rawSlice θ hθ Z)))+
(κ:ℂ)*((1-κ:ℝ):ℂ)*G.weakMean (θ*(η*a+(1-η)*b)+(1-θ)*d) j*
(G.expectation Z-O.expectation Z) :=by
proof · 26
lines
let r0 := θ*(η*a+(1-η)*b)+(1-θ)*d
have hp (A : Fock n →L[ℂ] Fock n) := replaced_threeport_weak η θ κ a b d hη hθ
ρ σ τD m γ ω ρ0 h1 h2 XYDMGOR hd hr0 hD hO hrepl j Ahave hg (A : Fock n →L[ℂ] Fock n) := replaced_threeport_weak η θ 0 a b d hη hθ
ρ σ τD m γ ω γ h1 h2 XYDMGOG hd hr0 hD hO (by
simp only [sub_zero,Complex.ofReal_one,Complex.ofReal_zero,one_smul]
apply ContinuousLinearMap.ext
intro vector
simp only [add_apply,smul_apply,zero_smul,add_zero]) j AhavehmG : G.weakMean r0 j=(Real.sqrt θ:ℂ)*(Real.sqrt η:ℂ)*X.weakMean a j+
(Real.sqrt θ:ℂ)*(Real.sqrt (1-η):ℂ)*Y.weakMean b j :=by
simpa only [WeightedColumns.weakMean,WeightedColumns.rawSlice_one,WeightedColumns.rawSliceRight_one,
sub_zero,Complex.ofReal_one,one_mul] using hg 1havehmR : R.weakMean r0 j=((1-κ:ℝ):ℂ)*G.weakMean r0 j :=by
rw [hmG]
simpa only [WeightedColumns.weakMean,WeightedColumns.rawSlice_one,WeightedColumns.rawSliceRight_one] using hp 1have he2 := (physical_rawSlice_expectation θ hθ m τD γ h2 MDGZ).1have he1 := physical_rawSlice_expectation η hη ρ σ m h1 XYM (D.rawSlice θ hθ Z)
have hex := he1.1.trans he2
have hey := he1.2.trans he2
have her :=G.expectation_affine OR ((1-κ:ℝ):ℂ) (κ:ℂ) hrepl Z
change R.centeredWeak r0 j Z=_
unfold WeightedColumns.centeredWeak
rw [hp,hmR,her,hex,hey,hmG]
simp only [Complex.ofReal_sub,Complex.ofReal_one]
ring