theoremphysical_defect_convolution (η θ κ d : ℝ) (a : Fin2→ℝ)
(hη : η ∈Set.Ioo01) (hθ : θ ∈Set.Ioo01) (hκ : κ ∈Set.Icc01)
(hd : 0<d) (ha : ∀ i, 0<a i) (hr0 : 0<outputReference η θ a d)
(ρ : Fin2→State n) (τD m γ ω ρ0 : State n)
(h1 : IsBeamSplitterOutput η (ρ 0) (ρ 1) m) (h2 : IsBeamSplitterOutput θ m τD γ)
(G : (i : Fin2) →SpectralLogData n (ρ i)) (G0 : SpectralLogData n ρ0)
(D : WeightedColumns τD) (M : WeightedColumns m) (V : WeightedColumns γ) (O : WeightedColumns ω)
(hD : ∀ k l, entry τD.op k l=if k=l then (QuantumTrace.thermalWeight n d k:ℂ) else0)
(hO : ∀ k l, entry ω.op k l=if k=l then (QuantumTrace.thermalWeight n (outputReference η θ a d) k:ℂ) else0)
(hrepl : ρ0.op=((1-κ:ℝ):ℂ) • γ.op+(κ:ℂ) • ω.op)
(j : Fin n) (Z : Fock n →L[ℂ] Fock n) :
G0.ambientDefect (outputReference η θ a d) hr0 j
((G0.thermalSpace (outputReference η θ a d) hr0).observable Z)=
(∑ i, (((1-κ)*twoPortLambda η θ i:ℝ):ℂ)*
(G i).ambientDefect (a i) (ha i) j ((G i).thermalSpace (a i) (ha i) |>.observable
(normalizedSlices η θ ⟨hη.1.le,hη.2.le⟩ ⟨hθ.1.le,hθ.2.le⟩ (ρ 0) (ρ 1) τD
(fun i => (G i).thermalSpace (a i) (ha i)) (twoPortLambda η θ) i Z)))+
((Real.sqrt ((1-κ)*κ):ℂ)*V.weakMean (outputReference η θ a d) j)*
EnsembleL2.mixtureFunctional (fun k => inverseWeight 3 (V.vector k))
(fun k => inverseWeight 3 (O.vector k)) V.normalized.summable O.normalized.summable (1-κ) Z:=by
proof · 41
lines
change 0<η ∧ η<1 at hη
change 0<θ ∧ θ<1 at hθ
rw [G0.ambientDefect_centered]
unfold outputReference
have hp := replaced_threeport_centered_weak η θ κ (a 0) (a 1) d
⟨hη.1.le,hη.2.le⟩ ⟨hθ.1.le,hθ.2.le⟩ (ρ 0) (ρ 1) τD m γ ω ρ0 h1 h2
(G0).weightedColumns (G1).weightedColumns DMVOG0.weightedColumns hd hr0 hD hO hrepl j Z
rw [hp]
havehηc : η ∈Set.Icc01:= ⟨hη.1.le,hη.2.le⟩
havehθc : θ ∈Set.Icc01:= ⟨hθ.1.le,hθ.2.le⟩
havehl0 : normalizedSlices η θ hηc hθc (ρ 0) (ρ 1) τD
(fun i => (G i).thermalSpace (a i) (ha i)) (twoPortLambda η θ) 0Z=
((G0).thermalSpace (a 0) (ha 0)).normalize (twoPortLambda η θ 0)
((G1).weightedColumns.rawSlice η hηc (D.rawSlice θ hθc Z)) :=by
change ((G0).thermalSpace (a 0) (ha 0)).normalize (twoPortLambda η θ 0)
(rawFirstSlice η θ hηc hθc (ρ 1) τDZ)=_
rw [WeightedColumns.rawFirstSlice_physical (G1).weightedColumns D]
havehl1 : normalizedSlices η θ hηc hθc (ρ 0) (ρ 1) τD
(fun i => (G i).thermalSpace (a i) (ha i)) (twoPortLambda η θ) 1Z=
((G1).thermalSpace (a 1) (ha 1)).normalize (twoPortLambda η θ 1)
((G0).weightedColumns.rawSliceRight η hηc (D.rawSlice θ hθc Z)) :=by
change ((G1).thermalSpace (a 1) (ha 1)).normalize (twoPortLambda η θ 1)
(rawSecondSlice η θ hηc hθc (ρ 0) τDZ)=_
rw [WeightedColumns.rawSecondSlice_physical (G0).weightedColumns D]
simp only [Fin.sum_univ_two, hl0, hl1]
rw [(G0).ambientDefect_normalize, (G1).ambientDefect_normalize]
have hs (i : Fin2) :
((((1-κ)*twoPortLambda η θ i:ℝ):ℂ)*(Real.sqrt (twoPortLambda η θ i):ℂ)⁻¹)=
((1-κ:ℝ):ℂ)*(Real.sqrt (twoPortLambda η θ i):ℂ) :=by
rw [Complex.ofReal_mul, mul_assoc, ThermalDual.real_mul_inverse_sqrt (twoPortLambda_pos hη hθ.1 i)]
simp only [← mul_assoc, hs]
havehs0 : Real.sqrt (twoPortLambda η θ 0)=Real.sqrt θ*Real.sqrt η :=Real.sqrt_mul hθ.1.le η
havehs1 : Real.sqrt (twoPortLambda η θ 1)=Real.sqrt θ*Real.sqrt (1-η) :=Real.sqrt_mul hθ.1.le (1-η)
havehsq : (Real.sqrt ((1-κ)*κ):ℂ)*(Real.sqrt ((1-κ)*κ):ℂ)=(((1-κ)*κ:ℝ):ℂ) :=by
rw [←Complex.ofReal_mul, Real.mul_self_sqrt (mul_nonneg (sub_nonneg.mpr hκ.2) hκ.1)]
rw [hs0, hs1, EnsembleL2.mixtureFunctional_apply]
havehe : 1-(1-κ)=κ :=by ring
rw [he]
change _=_+_*((Real.sqrt ((1-κ)*κ):ℂ)*(V.expectation Z-O.expectation Z))
simp only [Complex.ofReal_mul, Complex.ofReal_sub, Complex.ofReal_one] at hsq ⊢
linear_combination -(V.weakMean (θ*(η*a 0+(1-η)*a 1)+(1-θ)*d) j*(V.expectation Z-O.expectation Z))*hsq
theoremphysical_mean_covariance (η θ d : ℝ) (a : Fin2→ℝ)
(hη : η ∈Set.Ioo01) (hθ : θ ∈Set.Ioo01)
(hd : 0<d) (ha : ∀ i, 0<a i) (hr0 : 0<outputReference η θ a d)
(ρ : Fin2→State n) (τD m γ ω : State n)
(h1 : IsBeamSplitterOutput η (ρ 0) (ρ 1) m) (h2 : IsBeamSplitterOutput θ m τD γ)
(G : (i : Fin2) →SpectralLogData n (ρ i))
(D : WeightedColumns τD) (M : WeightedColumns m) (V : WeightedColumns γ) (O : WeightedColumns ω)
(hD : ∀ k l, entry τD.op k l=if k=l then (QuantumTrace.thermalWeight n d k:ℂ) else0)
(hO : ∀ k l, entry ω.op k l=if k=l then (QuantumTrace.thermalWeight n (outputReference η θ a d) k:ℂ) else0)
(j : Fin n) :
V.weakMean (outputReference η θ a d) j=
(Real.sqrt (twoPortLambda η θ 0):ℂ)*conj ((G0).annihilationMean j)+
(Real.sqrt (twoPortLambda η θ 1):ℂ)*conj ((G1).annihilationMean j) :=by
proof · 23
lines
change 0<η ∧ η<1 at hη
change 0<θ ∧ θ<1 at hθ
have hh := replaced_threeport_weak η θ 0 (a 0) (a 1) d
⟨hη.1.le,hη.2.le⟩ ⟨hθ.1.le,hθ.2.le⟩
(ρ 0) (ρ 1) τD m γ ω γ h1 h2 (G0).weightedColumns (G1).weightedColumns
DMVOV 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 1havehm : V.weakMean (outputReference η θ a d) j=
(Real.sqrt θ:ℂ)*(Real.sqrt η:ℂ)*(G0).weightedColumns.weakMean (a 0) j+
(Real.sqrt θ:ℂ)*(Real.sqrt (1-η):ℂ)*(G1).weightedColumns.weakMean (a 1) j :=byhaveho : D.rawSlice θ (show θ ∈Set.Icc01from ⟨hθ.1.le,hθ.2.le⟩) 1=1:=D.rawSlice_one _ _
havehi : (G1).weightedColumns.rawSlice η (show η ∈Set.Icc01from ⟨hη.1.le,hη.2.le⟩) 1=1:=
(G1).weightedColumns.rawSlice_one _ _
havehj : (G0).weightedColumns.rawSliceRight η (show η ∈Set.Icc01from ⟨hη.1.le,hη.2.le⟩) 1=1:=
(G0).weightedColumns.rawSliceRight_one _ _
simp only [ho,hi,hj,sub_zero,Complex.ofReal_one,one_mul] at hh
exact hh
rw [hm, (G0).weakMean_eq_conj (a 0) (ha 0), (G1).weakMean_eq_conj (a 1) (ha 1)]
simp only [twoPortLambda, Matrix.cons_val_zero, Matrix.cons_val_one, Matrix.cons_val_fin_one,
Real.sqrt_mul hθ.1.le, Complex.ofReal_mul]
theoremphysical_mean_bound (η θ κ d : ℝ) (a : Fin2→ℝ)
(hη : η ∈Set.Ioo01) (hθ : θ ∈Set.Ioo01) (hκ : κ≤1)
(hd : 0<d) (ha : ∀ i, 0<a i) (hr0 : 0<outputReference η θ a d)
(ρ : Fin2→State n) (τD m γ ω : State n)
(h1 : IsBeamSplitterOutput η (ρ 0) (ρ 1) m) (h2 : IsBeamSplitterOutput θ m τD γ)
(G : (i : Fin2) →SpectralLogData n (ρ i))
(D : WeightedColumns τD) (M : WeightedColumns m) (V : WeightedColumns γ) (O : WeightedColumns ω)
(hD : ∀ k l, entry τD.op k l=if k=l then (QuantumTrace.thermalWeight n d k:ℂ) else0)
(hO : ∀ k l, entry ω.op k l=if k=l then (QuantumTrace.thermalWeight n (outputReference η θ a d) k:ℂ) else0)
(j : Fin n) :
(1-κ)*‖V.weakMean (outputReference η θ a d) j‖^2≤2*∑ i, ((1-κ)*twoPortLambda η θ i)*‖(G i).annihilationMean j‖^2:=by
proof · 7
lines
rw [physical_mean_covariance η θ d a hη hθ hd ha hr0 ρ τD m γ ω h1 h2 GDMVO hD hO j]
have hh := mul_le_mul_of_nonneg_left
(ThermalDual.two_sqrt_norm_sq _ _ (twoPortLambda_pos hη hθ.10).le (twoPortLambda_pos hη hθ.11).le
(conj ((G0).annihilationMean j)) (conj ((G1).annihilationMean j))) (sub_nonneg.mpr hκ)
simp only [Complex.norm_conj] at hh
simp only [Fin.sum_univ_two]
convert! hh using1; ring
theoremphysical_defect_triangle (η θ κ ε d : ℝ) (a : Fin2→ℝ)
(hη : η ∈Set.Ioo01) (hθ : θ ∈Set.Ioo01) (hκ : κ ∈Set.Icc01) (hκ1 : κ<1)
(hd : 0<d) (ha : ∀ i, 0<a i) (hr0 : 0<outputReference η θ a d)
(ρ : Fin2→State n) (τD m γ ω ρ0 : State n)
(h1 : IsBeamSplitterOutput η (ρ 0) (ρ 1) m) (h2 : IsBeamSplitterOutput θ m τD γ)
(G : (i : Fin2) →SpectralLogData n (ρ i)) (G0 : SpectralLogData n ρ0)
(D : WeightedColumns τD) (M : WeightedColumns m) (V : WeightedColumns γ) (O : WeightedColumns ω)
(hD : ∀ k l, entry τD.op k l=if k=l then (QuantumTrace.thermalWeight n d k:ℂ) else0)
(hO : ∀ k l, entry ω.op k l=if k=l then (QuantumTrace.thermalWeight n (outputReference η θ a d) k:ℂ) else0)
(hrepl : ρ0.op=((1-κ:ℝ):ℂ) • γ.op+(κ:ℂ) • ω.op)
(hh₁ : ∀Z, Z∈CenteredTests.operatorSpace G0.basis G0.probability →
(1-κ)^2*BKM.quadratic (G0).basis (G0).probability
(BKM.center (G0).basis (G0).probability
(rawFirstSlice η θ ⟨hη.1.le,hη.2.le⟩ ⟨hθ.1.le,hθ.2.le⟩ (ρ 1) τDZ)) ≤
(1+ε)*(1-κ)*twoPortLambda η θ 0*(h (outputReference η θ a d)/h (a 0))*
BKM.quadratic G0.basis G0.probability Z)
(hh₂ : ∀Z, Z∈CenteredTests.operatorSpace G0.basis G0.probability →
(1-κ)^2*BKM.quadratic (G1).basis (G1).probability
(BKM.center (G1).basis (G1).probability
(rawSecondSlice η θ ⟨hη.1.le,hη.2.le⟩ ⟨hθ.1.le,hθ.2.le⟩ (ρ 0) τDZ)) ≤
(1+ε)*(1-κ)*twoPortLambda η θ 1*(h (outputReference η θ a d)/h (a 1))*
BKM.quadratic G0.basis G0.probability Z)
(hr : (1+ε)*(∑ i, twoPortLambda η θ i*a i) ≤ outputReference η θ a d)
(hs : (1+ε)*(∑ i, twoPortLambda η θ i*(a i+1)) ≤ outputReference η θ a d+1)
:
Real.sqrt (∑ j, ‖G0.defect (outputReference η θ a d) hr0 j‖^2) ≤Real.sqrt (∑ i, ((1-κ)*twoPortLambda η θ i)*(∑ j, ‖(G i).defect (a i) (ha i) j‖^2))+
Real.sqrt (2*κ)*mixtureConstant (outputReference η θ a d)*Real.sqrt (∑ i, ((1-κ)*twoPortLambda η θ i)*(∑ j, ‖(G i).annihilationMean j‖^2)) :=by
proof · 9
lines
exact ThermalDual.aggregate_bound (fun i => (1-κ)*twoPortLambda η θ i)
(fun i => mul_nonneg (sub_nonneg.mpr hκ.2) (twoPortLambda_pos hη hθ.1 i).le)
(fun j => ‖G0.defect (outputReference η θ a d) hr0 j‖)
(fun j => ‖V.weakMean (outputReference η θ a d) j‖)
(fun i j => ‖(G i).defect (a i) (ha i) j‖) (fun i j => ‖(G i).annihilationMean j‖)
(fun j => norm_nonneg (G0.defect (outputReference η θ a d) hr0 j)) (fun j => norm_nonneg (V.weakMean (outputReference η θ a d) j)) (mixtureConstant (outputReference η θ a d)) κ
(mixtureConstant_pos hr0).le hκ
(physical_mean_bound η θ κ d a hη hθ hκ.2 hd ha hr0 ρ τD m γ ω h1 h2 GDMVO hD hO)
(physical_defect_mode_bound η θ κ ε d a hη hθ hκ hκ1 hd ha hr0 ρ τD m γ ω ρ0 h1 h2 GG0DMVO hD hO hrepl hh₁ hh₂ hr hs)
theoremoutput_lower_square (j : Fin n) (x : I→JointFock n) (z : J→Fock n)
(hx : Summable (fun i => ‖x i‖^2)) (hz : Summable (fun j => ‖z j‖^2))
(he : CrossEnsemble.operator (funie : I×NumberIndex n => slice (inverse (x ie.1)) ie.2)
(funie : I×NumberIndex n => slice (inverse (x ie.1)) ie.2)=
CrossEnsemble.operator (fun j => inverseWeight 3 (z j)) (fun j => inverseWeight 3 (z j))) :
(∑' i, ‖lowerL j (x i)‖^2) = ∑' i, ‖sandwich 03 (by omega) j (z i)‖^2:=by
proof · 16
lines
have hi :=CrossEnsemble.applied_summable hx inverse
have hl :=CrossEnsemble.applied_summable hx (lowerL j)
have hzi :=CrossEnsemble.applied_summable hz (inverseWeight 3)
have hzl :=CrossEnsemble.applied_summable hz (sandwich 03 (by omega) j)
have his := slice_family_summable _ hi
have hls := slice_family_summable _ hl
have heL :=CrossEnsemble.shifted_both_operator_eq _ _ _ _ his hls hzi hzl
(up j) (fun k => (Real.sqrt ((k j:ℝ)+1):ℂ))
(fun ie k => lowerL_inverse_apply j (x ie.1) k ie.2)
(fun i k => single_lower_inverse_apply j (z i) k) he
letbas : HilbertBasis (NumberIndex n) ℂ (Fock n) :=HilbertBasis.ofRepr (LinearIsometryEquiv.refl ℂ _)
have hp :=CrossEnsemble.pairing_eq_of_operator_eq bas hls hls hzl hzl heL 1
rw [← pairing_liftLeft _ _ hl hl, liftLeft_one] at hp
have hh1 := (EnsembleL2.self_inner_hasSum (fun i => lowerL j (x i)) hl).tsum_eq
have hh2 := (EnsembleL2.self_inner_hasSum (fun i => sandwich 03 (by omega) j (z i)) hzl).tsum_eq
simpa only [CrossEnsemble.pairing,one_apply_eq_self,hh1,hh2,Complex.ofReal_inj] using hp
theoremreal_smul_add_square (c d : ℝ) (x y : E) :
‖(c:ℂ) • x+(d:ℂ) • y‖^2=c^2*‖x‖^2+d^2*‖y‖^2+2*c*d*(inner ℂ x y).re :=by
proof · 6
lines
rw [norm_add_sq (𝕜:=ℂ)]
simp only [norm_smul,Complex.norm_real,Real.norm_eq_abs,mul_pow,sq_abs,
inner_smul_left,inner_smul_right,Complex.conj_ofReal]
change _+2*((d:ℂ)*((c:ℂ)*inner ℂ x y)).re+_=_
simp only [Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im,zero_mul,sub_zero]
ring
theoremreal_smul_add_hasSum (c d : ℝ) (x y : I→E) (a b : ℝ) (v : ℂ)
(hx : HasSum (fun i => ‖x i‖^2) a) (hy : HasSum (fun i => ‖y i‖^2) b)
(hxy : HasSum (fun i => inner ℂ (x i) (y i)) v) :
HasSum (fun i => ‖(c:ℂ) • x i+(d:ℂ) • y i‖^2) (c^2*a+d^2*b+2*c*d*v.re) :=by
proof · 3
lines
simpa only [real_smul_add_square,Complex.reCLM_apply] using
((hx.mul_left (c^2)).add (hy.mul_left (d^2))).add
((hxy.mapL Complex.reCLM).mul_left (2*c*d))
theoremthermal_lowerEnergy {ρ : State n} (X : WeightedColumns ρ) (r : ℝ) (hr : 0<r)
(he : ∀ k l, entry ρ.op k l=if k=l then (thermalWeight n r k:ℂ) else0) (j : Fin n) :
X.lowerEnergy j=r :=by
proof · 17
lines
havehE : HasSum (fun k => (k j:ℝ)*thermalWeight n r k) (X.lowerEnergy j) :=by
simpa only [he,ite_true,Complex.ofReal_re] usingX.lowerEnergy_hasSum j
have hz (k : NumberIndex n) (hk : k ∉Set.range (up j)) : (k j:ℝ)*thermalWeight n r k=0:=by
rcases index_cases j k with h | ⟨l,rfl⟩
· simp only [h,Nat.cast_zero,zero_mul]
· exact (hk ⟨l,rfl⟩).elim
have hsh := (up_injective j).hasSum_iff hz |>.mpr hE
havehsh' : HasSum (fun k => r/(r+1)*((k j:ℝ)*thermalWeight n r k+thermalWeight n r k))
(X.lowerEnergy j) :=by
convert hsh using1
funext k
simp only [Function.comp_def,up_same,Nat.cast_add,Nat.cast_one,thermalWeight_up]
ring
have hh := hsh'.unique ((hE.add (hasSum_thermalWeight n hr)).mul_left (r/(r+1)))
havehr1 : r+1≠0:=by positivity
field_simp at hh
nlinarith
theorembeam_weakMean (η : ℝ) (hη : η ∈Set.Icc01) (r s u : ℝ) (j : Fin n)
(X : WeightedColumns ρ) (Y : WeightedColumns σ) (T : WeightedColumns τ)
(hτ : IsBeamSplitterOutput η ρ σ τ) :
T.weakMean u j=(Real.sqrt η:ℂ)*X.weakMean r j+(Real.sqrt (1-η):ℂ)*Y.weakMean s j :=by
proof · 8
lines
rw [T.weakMean_reference u (η*r+(1-η)*s)]
have hh := physical_product_weak η r s hη ρ σ τ hτ j X.vector Y.vector T.vector
X.summable Y.summable T.summable X.normalized Y.normalized X.density Y.density T.density 1
change T.weakMean (η*r+(1-η)*s) j=_ at hh
change T.weakMean (η*r+(1-η)*s) j=
(Real.sqrt η:ℂ)*singleWeak r j X.vector (Y.rawSlice η hη 1)+
(Real.sqrt (1-η):ℂ)*singleWeak s j Y.vector (X.rawSliceRight η hη 1) at hh
simpa only [Y.rawSlice_one,X.rawSliceRight_one,weakMean] using hh
have hh :=EnsembleL2.real_smul_add_square (Real.sqrt η) (Real.sqrt (1-η)) x y
rw [Real.sq_sqrt hη.1,Real.sq_sqrt (sub_nonneg.mpr hη.2)] at hh
convert! hh using1
simp only [RCLike.inner_apply,Complex.mul_re,Complex.conj_re,Complex.conj_im]
ring
theorembeam_centeredLowerEnergy (η : ℝ) (hη : η ∈Set.Icc01) (r s u : ℝ) (j : Fin n)
(X : WeightedColumns ρ) (Y : WeightedColumns σ) (T : WeightedColumns τ)
(hτ : IsBeamSplitterOutput η ρ σ τ) :
T.centeredLowerEnergy u j=η*X.centeredLowerEnergy r j+(1-η)*Y.centeredLowerEnergy s j :=by
proof · 4
lines
rw [centeredLowerEnergy,physical_lowerEnergy η hη r s j XYT hτ,
beam_weakMean η hη r s u j XYT hτ,sqrt_complex_square η hη]
simp only [centeredLowerEnergy]
ring
theoremthermal_centeredLowerEnergy (X : WeightedColumns ρ) (r u : ℝ) (hr : 0<r)
(he : ∀ k l, entry ρ.op k l=if k=l then (thermalWeight n r k:ℂ) else0) (j : Fin n) :
X.centeredLowerEnergy u j=r :=by
proof · 4
lines
rw [centeredLowerEnergy,thermal_lowerEnergy X r hr he,
X.weakMean_reference u r]
havehm : X.weakMean r j=0:=X.thermal_weak_zero r hr he j 1
rw [hm,norm_zero,zero_pow (bydecide : 2≠0),sub_zero]
theoremreplacement_centeredLowerEnergy (X : WeightedColumns ρ) (O : WeightedColumns σ)
(T : WeightedColumns τ) (κ r : ℝ) (hr : 0<r)
(hO : ∀ k l, entry σ.op k l=if k=l then (thermalWeight n r k:ℂ) else0)
(he : τ.op=((1-κ:ℝ):ℂ) • ρ.op+(κ:ℂ) • σ.op) (j : Fin n) :
T.centeredLowerEnergy r j=(1-κ)*X.centeredLowerEnergy r j+κ*r+
κ*(1-κ)*‖X.weakMean r j‖^2:=by
proof · 5
lines
haveho : O.weakMean r j=0:=O.thermal_weak_zero r hr hO j 1
rw [centeredLowerEnergy,lowerEnergy_affine XOT (1-κ) κ he,
thermal_lowerEnergy O r hr hO,weakMean_affine XOT _ _ he,ho,mul_zero,add_zero,
norm_mul,mul_pow,Complex.norm_real,Real.norm_eq_abs,sq_abs,centeredLowerEnergy]
ring
theoremthreeport_centered_energy_mode (η θ κ a b d : ℝ)
(hη : η ∈Set.Icc01) (hθ : θ ∈Set.Icc01) (hd : 0<d)
(hr0 : 0<θ*(η*a+(1-η)*b)+(1-θ)*d)
(ρ σ τD m γ ω ρ0 : State n)
(h1 : IsBeamSplitterOutput η ρ σ m) (h2 : IsBeamSplitterOutput θ m τD γ)
(X : WeightedColumns ρ) (Y : WeightedColumns σ) (D : WeightedColumns τD)
(M : WeightedColumns m) (V : WeightedColumns γ) (O : WeightedColumns ω) (T : WeightedColumns ρ0)
(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) :
T.centeredLowerEnergy (θ*(η*a+(1-η)*b)+(1-θ)*d) j-(θ*(η*a+(1-η)*b)+(1-θ)*d)=
((1-κ)*θ*η)*(X.centeredLowerEnergy a j-a)+((1-κ)*θ*(1-η))*(Y.centeredLowerEnergy b j-b)+
κ*(1-κ)*‖V.weakMean (θ*(η*a+(1-η)*b)+(1-θ)*d) j‖^2:=by
proof · 5
lines
rw [replacement_centeredLowerEnergy VOT κ _ hr0 hO hrepl j,
beam_centeredLowerEnergy θ hθ (η*a+(1-η)*b) d _ j MDV h2,
beam_centeredLowerEnergy η hη a b _ j XYM h1,
thermal_centeredLowerEnergy D d d hd hD]
ring
theoremphysical_centered_energy_identity (η θ κ a b d : ℝ)
(hη : η ∈Set.Icc01) (hθ : θ ∈Set.Icc01) (hd : 0<d) (ha : 0<a) (hb : 0<b)
(hr0 : 0<θ*(η*a+(1-η)*b)+(1-θ)*d)
(ρ σ τD m γ ω ρ0 : State n)
(h1 : IsBeamSplitterOutput η ρ σ m) (h2 : IsBeamSplitterOutput θ m τD γ)
(G1 : SpectralLogData n ρ) (G2 : SpectralLogData n σ) (G0 : SpectralLogData n ρ0)
(D : WeightedColumns τD) (M : WeightedColumns m) (V : WeightedColumns γ) (O : WeightedColumns ω)
(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) :
G0.centeredEnergy-(n:ℝ)*(θ*(η*a+(1-η)*b)+(1-θ)*d)=
((1-κ)*θ*η)*(G1.centeredEnergy-(n:ℝ)*a)+((1-κ)*θ*(1-η))*(G2.centeredEnergy-(n:ℝ)*b)+
κ*(1-κ)*(∑ j, ‖V.weakMean (θ*(η*a+(1-η)*b)+(1-θ)*d) j‖^2) :=by
proof · 7
lines
have hh :=Finset.sum_congr (s₁:=Finset.univ) rfl (fun j _ =>
threeport_centered_energy_mode η θ κ a b d hη hθ hd hr0 ρ σ τD m γ ω ρ0 h1 h2
G1.weightedColumns G2.weightedColumns DMVOG0.weightedColumns hD hO hrepl j)
simp only [Finset.sum_sub_distrib,Finset.sum_add_distrib,←Finset.mul_sum,Finset.sum_const,
Finset.card_univ,Fintype.card_fin,nsmul_eq_mul,←G0.centeredEnergy_eq_sum _ hr0,
←G1.centeredEnergy_eq_sum a ha,←G2.centeredEnergy_eq_sum b hb] at hh
convert! hh using1; ring
theoremsecond_dual_conditional (η : ℝ) (hη : η ∈Set.Icc01) (ρ : State n)
(Z : Fock n →L[ℂ] Fock n) :
dual (secondKraus η hη ρ) (secondKraus_norm η hη ρ) Z=
conditionalRight (rootColumn ρ) (rootColumn_norm ρ) (conjugate η hη Z) :=by
proof · 11
lines
letV:=fun j => tensorLeft (B:=NumberIndex n) (rootColumn ρ j)
letU:= jointKraus (n:=n) η hη
have hV := leftFamily_norm (rootColumn ρ) (rootColumn_norm ρ) (B:=NumberIndex n)
have hU := jointKraus_norm (n:=n) η hη
have hr := dual_reindex (Equiv.prodComm _ _) (composite VU) (composite_norm VU hV hU)
(fun x => (Equiv.prodComm _ _).hasSum_iff.mpr (composite_norm VU hV hU x)) Z
change dual (secondKraus η hη ρ) _ Z=dual (composite VU) _ Z at hr
rw [hr, dual_composite VU hV hU]
change dual V hV (dual (jointKraus η hη) hU Z)=_
rw [joint_dual_conjugate]
rfl
theoremdual_composeKraus {IJ : Type*} (U : I→Fock n →L[ℂ] Fock n)
(V : J→Fock n →L[ℂ] Fock n)
(hU : ∀ x, HasSum (fun i => ‖U i x‖^2) (‖x‖^2))
(hV : ∀ x, HasSum (fun j => ‖V j x‖^2) (‖x‖^2)) (Z : Fock n →L[ℂ] Fock n) :
dual (composeKraus UV) (composeKraus_norm UV hU hV) Z=dual V hV (dual U hU Z) :=by
proof · 4
lines
have hr := dual_reindex (Equiv.prodComm _ _) (composite VU) (composite_norm VU hV hU)
(fun x => (Equiv.prodComm _ _).hasSum_iff.mpr (composite_norm VU hV hU x)) Z
change dual (composeKraus UV) _ Z=dual (composite VU) _ Z at hr
rw [hr,dual_composite VU hV hU]
theoremdrift_number (r : ℝ) (k : NumberIndex n) :
drift r (fun k => (totalNumber k:ℝ)) k = n*r-totalNumber k :=by
proof · 6
lines
have he (k : NumberIndex n) : (totalNumber k:ℝ)=numberWeight k-1:=by
simp [totalNumber, numberWeight]
have hh := drift_radial r (fun t => t-1) k
simp_rw [he]
rw [hh]
ring
theoremdriftPolynomial_bounded (n : ℕ) (r : ℝ) :
∃C : ℝ, ∀k : ℕ, driftPolynomial n r k ≤C:=by
proof · 3
lines
obtain ⟨C,hC⟩ := negative_quartic_bounded (4*r*n+12*r-6) (18*r*n+24*r-4)
(28*r*n+14*r-1) (15*r*n)
exact ⟨C, fun k => (driftPolynomial_expand r k).trans_le (hC k (Nat.cast_nonneg k))⟩
apply positive_eq_of_quadratic hD (numberSandwich_positive n)
intro x
have hh := congrArg ENNReal.toReal (he x)
rw [inversePower_root_four, ← numberSandwich_form] at hh
simpa only [ENNReal.toReal_ofReal (show0≤(inner ℂ x (D x)).re from hD.re_inner_nonneg_right x),
ENNReal.toReal_ofReal (show0≤(inner ℂ x (numberSandwich n x)).re from (numberSandwich_positive n).re_inner_nonneg_right x)] using hh
theorempolynomial_weight_six_bound (a b c d e : ℝ) (k : NumberIndex n) :
|a*(totalNumber k:ℝ)^4+b*(totalNumber k:ℝ)^3+c*(totalNumber k:ℝ)^2+d*(totalNumber k:ℝ)+e|≤
(|a|+|b|+|c|+|d|+|e|)*numberWeight k^6:=by
ext x k
simp only [diagonal_apply,div_self (pow_ne_zero _ (ne_of_gt (lt_of_lt_of_le zero_lt_one (numberWeight_one_le k)))),Complex.ofReal_one,
one_mul,one_apply_eq_self]
theoremthermalGenerator_fourth_bound (r : ℝ) : ∃C : ℝ, ∀ (ρ : State n) (hm : FiniteMoment6 ρ),
(WeightedGenerator.pairing r (weightedRoot 3 ρ hm) (1 : Fock n →L[ℂ] Fock n)).re≤C:=by
proof · 8
lines
obtain ⟨C,hC⟩ := driftPolynomial_bounded n r
refine ⟨C,fun ρ hm => ?_⟩
have hh := thermalGenerator_fourth r ρ hm
have hpos (k : NumberIndex n) : 0≤(entry ρ.op k k).re := ρ.positive.re_inner_nonneg_right _
have hle := hh.summable.tsum_le_tsum
(fun k => mul_le_mul_of_nonneg_right (hC (totalNumber k)) (hpos k))
(ρ.trace_one.summable.mul_left C)
simpa only [hh.tsum_eq,tsum_mul_left,ρ.trace_one.tsum_eq,mul_one] using hle
theoremthermal_state_diagonal (r : ℝ) (hr : 0<r) (k l : NumberIndex n) :
entry (thermalState n r hr).op k l=if k=l then (thermalWeight n r k:ℂ) else0:=by
proof · 7
lines
rw [entry,← numberBasis_apply n k,← numberBasis_apply n l]
change inner ℂ (numberBasis n k) ((diagonalState _ _ _).op (numberBasis n l))=_
rw [diagonalState_eigen,inner_smul_right,
orthonormal_iff_ite.mp (numberBasis n).orthonormal k l]
split_ifs with h
· subst l; simp only [mul_one]
· simp only [mul_zero]