Exact Lean source
AmplifierWeylMultimode
formalization/Cloning/AmplifierWeylMultimode.lean
Source hash: 9bdec60ff8c48055dd24d9b29a1a90270d4242794af8fe8001b25fd74e98b105
Full source copied without mathematical changes from the snapshot whose input hash matches the passing audit. Select a line number for a stable source pointer.
The declarations belong to the compiled inventory covered by the project’s shared axiom audit. That audit records an aggregate union, without attributing axioms to individual declarations.
Declarations in this module
definition
Cloning.MultimodeAmplifier.Occupationdefinition Cloning.MultimodeAmplifier.JointFockdefinition Cloning.MultimodeAmplifier.sliceVectortheorem Cloning.MultimodeAmplifier.sliceVector_norm_ledefinition Cloning.MultimodeAmplifier.slicetheorem Cloning.MultimodeAmplifier.slice_applytheorem Cloning.MultimodeAmplifier.slice_norm_sq_hasSumdefinition Cloning.MultimodeAmplifier.kraustheorem Cloning.MultimodeAmplifier.kraus_norm_sq_hasSumdefinition Cloning.MultimodeAmplifier.channeltheorem Cloning.MultimodeAmplifier.channel_hasSumtheorem Cloning.MultimodeAmplifier.kraus_numberBasisdefinition Cloning.MultimodeAmplifier.coherentKrausAmplitudetheorem Cloning.MultimodeAmplifier.kraus_adjoint_coherentVectortheorem Cloning.MultimodeAmplifier.coherentKrausAmplitude_inner_hasSumtheorem Cloning.MultimodeAmplifier.channel_coherent_matrixCoefficienttheorem Cloning.MultimodeAmplifier.coherentVector_zero_eq_numberBasistheorem Cloning.MultimodeAmplifier.productLaw_zerotheorem Cloning.MultimodeAmplifier.channel_vacuum1import Cloning.MultimodeIdler
2import Cloning.ThermalWitness
3import Cloning.AmplifierWeylCoherent
4import Cloning.WeylMultimodeChannel
5
6/-! The multimode quantum-limited amplifier is the other partial trace of
7the already constructed multimode isometry. It acts on the entire occupation
8trace class, including arbitrary correlations and coherences. -/
9noncomputable section
10open scoped ComplexOrder InnerProductSpace Topology BigOperators
11namespace Cloning.MultimodeAmplifier
12open Cloning.InfiniteTraceClass Cloning.MultimodeCoherent
13set_option backward.isDefEq.respectTransparency false
14set_option maxHeartbeats 1200000
15
16abbrev Occupation (d : ℕ) := Fin d → ℕ
17abbrev JointFock (d : ℕ) := Cloning.MultimodeIdler.JointFock d
18variable {d : ℕ}
19
20/-- Fix the idler output occupation and retain the signal. -/
21def sliceVector (k : Occupation d) (x : JointFock d) : Fock d := by
22 refine ⟨fun n => x (n, k), memℓp_gen ?_⟩
23 exact ((lp.memℓp x).summable (by norm_num)).comp_injective
24 (fun i j h => congrArg Prod.fst h)
25
26lemma sliceVector_norm_le (k : Occupation d) (x : JointFock d) : ‖sliceVector k x‖ ≤ ‖x‖ := by
27 apply lp.norm_le_of_tsum_le (by norm_num) (norm_nonneg x)
28 rw [lp.norm_rpow_eq_tsum (by norm_num) x]
29 exact Summable.tsum_le_tsum_of_inj (fun n : Occupation d => (n, k))
30 (fun i j h => congrArg Prod.fst h)
31 (fun p _ => Real.rpow_nonneg (norm_nonneg _) _) (fun _ => le_rfl)
32 ((lp.memℓp (sliceVector k x)).summable (by norm_num))
33 ((lp.memℓp x).summable (by norm_num))
34
35def slice (k : Occupation d) : JointFock d →L[ℂ] Fock d :=
36 LinearMap.mkContinuous
37 { toFun := sliceVector k
38 map_add' := by intro x y; ext n; rfl
39 map_smul' := by intro c x; ext n; rfl }
40 1 (fun x => by simpa only [one_mul] using sliceVector_norm_le k x)
41
42@[simp] lemma slice_apply (k : Occupation d) (x : JointFock d) (n : Occupation d) :
43 slice k x n = x (n, k) := rfl
44
45lemma slice_norm_sq_hasSum (x : JointFock d) :
46 HasSum (fun k => ‖slice k x‖ ^ 2) (‖x‖ ^ 2) := by
47 have hfull : HasSum (fun p : Occupation d × Occupation d => ‖x p‖ ^ (2 : ℕ)) (‖x‖ ^ 2) := by
48 simpa only [ENNReal.toReal_ofNat, Real.rpow_two] using
49 lp.hasSum_norm (show 0 < (2 : ENNReal).toReal by norm_num) x
50 have hswap : HasSum (fun p : Occupation d × Occupation d => ‖x (p.2, p.1)‖ ^ (2 : ℕ))
51 (‖x‖ ^ 2) := (Equiv.prodComm (Occupation d) (Occupation d)).hasSum_iff.mpr hfull
52 apply hswap.prod_fiberwise
53 intro k
54 simpa only [ENNReal.toReal_ofNat, Real.rpow_two, slice_apply] using
55 lp.hasSum_norm (show 0 < (2 : ENNReal).toReal by norm_num) (slice k x)
56
57def kraus (q : Fin d → ℝ) (hq0 : ∀ i, 0 ≤ q i) (hq1 : ∀ i, q i < 1)
58 (k : Occupation d) : Fock d →L[ℂ] Fock d :=
59 (slice k).comp (Cloning.MultimodeIdler.isometry q hq0 hq1).toContinuousLinearMap
60
61lemma kraus_norm_sq_hasSum (q : Fin d → ℝ) (hq0 : ∀ i, 0 ≤ q i)
62 (hq1 : ∀ i, q i < 1) (x : Fock d) :
63 HasSum (fun k => ‖kraus q hq0 hq1 k x‖ ^ 2) (‖x‖ ^ 2) := by
64 simpa only [kraus, ContinuousLinearMap.comp_apply, LinearIsometry.coe_toContinuousLinearMap,
65 LinearIsometry.norm_map] using
66 slice_norm_sq_hasSum (Cloning.MultimodeIdler.isometry q hq0 hq1 x)
67
68/-- Genuine CPTP multimode amplifier with potentially distinct mode gains. -/
69def channel (q : Fin d → ℝ) (hq0 : ∀ i, 0 ≤ q i) (hq1 : ∀ i, q i < 1) :
70 QuantumChannel (Fock d) (Fock d) :=
71 QuantumChannel.ofKraus (kraus q hq0 hq1) (kraus_norm_sq_hasSum q hq0 hq1)
72
73lemma channel_hasSum (q : Fin d → ℝ) (hq0 : ∀ i, 0 ≤ q i)
74 (hq1 : ∀ i, q i < 1) (A : TraceClass (Fock d)) :
75 HasSum (fun k => krausTerm (kraus q hq0 hq1 k) A) ((channel q hq0 hq1).toLinearMap A) :=
76 QuantumChannel.ofKraus_hasSum _ _ A
77
78lemma kraus_numberBasis (q : Fin d → ℝ) (hq0 : ∀ i, 0 ≤ q i)
79 (hq1 : ∀ i, q i < 1) (k n : Occupation d) :
80 kraus q hq0 hq1 k (Cloning.MultimodeIdler.numberBasis d n) =
81 (Real.sqrt (Cloning.BosonicNumberLaw.productLaw q n k) : ℂ) •
82 Cloning.MultimodeIdler.numberBasis d (n + k) := by
83 ext m
84 simp only [Cloning.MultimodeIdler.numberBasis_eq_single, kraus,
85 ContinuousLinearMap.comp_apply, LinearIsometry.coe_toContinuousLinearMap,
86 Cloning.MultimodeIdler.isometry_single, slice_apply, Cloning.MultimodeIdler.column_apply,
87 lp.coeFn_smul, Pi.smul_apply, lp.single_apply, Pi.single_apply, smul_eq_mul]
88 by_cases h : m = n + k <;> simp [h]
89
90def coherentKrausAmplitude (q : Fin d → ℝ) (k : Occupation d) (z : Fin d → ℂ) : ℂ :=
91 ∏ i, Cloning.BosonicAmplifier.coherentKrausAmplitude (q i) (k i) (z i)
92
93/-- All modes retain their exact coherent Kraus phases. -/
94theorem kraus_adjoint_coherentVector (q : Fin d → ℝ) (hq0 : ∀ i, 0 ≤ q i)
95 (hq1 : ∀ i, q i < 1) (k : Occupation d) (z : Fin d → ℂ) :
96 (kraus q hq0 hq1 k).adjoint (coherentVector z) =
97 coherentKrausAmplitude q k z •
98 coherentVector (fun i => (Real.sqrt (1 - q i) : ℂ) * z i) := by
99 ext n
100 rw [← Cloning.MultimodeIdler.inner_numberBasis, ContinuousLinearMap.adjoint_inner_right,
101 kraus_numberBasis, inner_smul_left, Cloning.MultimodeIdler.inner_numberBasis]
102 simp only [Complex.conj_ofReal, lp.coeFn_smul, Pi.smul_apply, smul_eq_mul]
103 unfold Cloning.BosonicNumberLaw.productLaw
104 rw [Real.sqrt_prod _ (fun i _ => Cloning.BosonicNumberLaw.seededLaw_nonneg (hq0 i) (hq1 i) _ _),
105 Complex.ofReal_prod]
106 simp only [coherentVector_apply, coherentKrausAmplitude, ← Finset.prod_mul_distrib]
107 apply Finset.prod_congr rfl
108 intro i _
109 exact Cloning.BosonicAmplifier.coherent_kraus_coefficient (hq0 i) (hq1 i) (k i) (n i) (z i)
110
111lemma coherentKrausAmplitude_inner_hasSum (q : Fin d → ℝ)
112 (hq0 : ∀ i, 0 ≤ q i) (hq1 : ∀ i, q i < 1) (v w : Fin d → ℂ) :
113 HasSum (fun k => star (coherentKrausAmplitude q k v) * coherentKrausAmplitude q k w)
114 (((∏ i, (1 - q i) : ℝ) : ℂ) *
115 ⟪coherentVector (fun i => (Real.sqrt (q i) : ℂ) * v i),
116 coherentVector (fun i => (Real.sqrt (q i) : ℂ) * w i)⟫_ℂ) := by
117 have h := hasSum_fin_product_complex d _ _
118 (fun i => Cloning.BosonicAmplifier.coherentKrausAmplitude_inner_hasSum (hq0 i) (hq1 i) (v i) (w i))
119 simpa only [coherentKrausAmplitude, star_prod, ← Finset.prod_mul_distrib,
120 coherentVector, inner_tensorVector, Complex.ofReal_prod, Complex.ofReal_sub,
121 Complex.ofReal_one, Finset.prod_mul_distrib] using h
122
123/-- The complete coherent matrix kernel of the actual multimode amplifier. -/
124theorem channel_coherent_matrixCoefficient (q : Fin d → ℝ)
125 (hq0 : ∀ i, 0 ≤ q i) (hq1 : ∀ i, q i < 1) (A : TraceClass (Fock d)) (v w : Fin d → ℂ) :
126 ⟪coherentVector v, ((channel q hq0 hq1).toLinearMap A).1 (coherentVector w)⟫_ℂ =
127 (((∏ i, (1 - q i) : ℝ) : ℂ) *
128 ⟪coherentVector (fun i => (Real.sqrt (q i) : ℂ) * v i),
129 coherentVector (fun i => (Real.sqrt (q i) : ℂ) * w i)⟫_ℂ) *
130 ⟪coherentVector (fun i => (Real.sqrt (1 - q i) : ℂ) * v i),
131 A.1 (coherentVector (fun i => (Real.sqrt (1 - q i) : ℂ) * w i))⟫_ℂ := by
132 have hs := (channel_hasSum q hq0 hq1 A).mapL
133 (traceClassMatrixCoefficient (coherentVector v) (coherentVector w))
134 have ht := (coherentKrausAmplitude_inner_hasSum q hq0 hq1 v w).mul_right
135 ⟪coherentVector (fun i => (Real.sqrt (1 - q i) : ℂ) * v i),
136 A.1 (coherentVector (fun i => (Real.sqrt (1 - q i) : ℂ) * w i))⟫_ℂ
137 apply hs.unique
138 convert ht using 1
139 funext k
140 simp only [traceClassMatrixCoefficient_apply, krausTerm, inner_sandwichCLM,
141 ContinuousLinearMap.star_eq_adjoint, kraus_adjoint_coherentVector,
142 map_smul, inner_smul_left, inner_smul_right, Complex.star_def]
143 ring
144
145lemma coherentVector_zero_eq_numberBasis :
146 coherentVector (0 : Fin d → ℂ) = Cloning.MultimodeIdler.numberBasis d 0 := by
147 classical
148 ext n
149 simp only [Cloning.MultimodeIdler.numberBasis_eq_single, lp.single_apply, Pi.single_apply]
150 by_cases hn : n = 0
151 · subst n
152 simp [coherentVector_apply, Cloning.ComplexCoherent.coherentVector_apply]
153 · rw [if_neg hn]
154 rw [coherentVector_apply]
155 obtain ⟨i, hi⟩ : ∃ i, n i ≠ 0 := by
156 by_contra h
157 push_neg at h
158 exact hn (funext h)
159 apply Finset.prod_eq_zero (Finset.mem_univ i)
160 simp [Cloning.ComplexCoherent.coherentVector_apply, hi]
161
162lemma productLaw_zero (q : Fin d → ℝ) (k : Occupation d) :
163 Cloning.BosonicNumberLaw.productLaw q 0 k = Cloning.ThermalWitness.productGeometric q k := by
164 simp [Cloning.BosonicNumberLaw.productLaw, Cloning.BosonicNumberLaw.seededLaw,
165 Cloning.ThermalWitness.productGeometric, Cloning.Thermal.geometric]
166
167/-- The actual amplifier sends joint vacuum to the product thermal density. -/
168theorem channel_vacuum (q : Fin d → ℝ)
169 (hq0 : ∀ i, 0 ≤ q i) (hq1 : ∀ i, q i < 1) :
170 (channel q hq0 hq1).toLinearMap (coherentProjector (0 : Fin d → ℂ)) =
171 vectorMixture (Cloning.MultimodeCoherentGaussianMixture.numberBasis d)
172 (Cloning.ThermalWitness.productGeometric q) := by
173 have h := channel_hasSum q hq0 hq1
174 (vectorProjector (Cloning.MultimodeIdler.numberBasis d 0))
175 simp only [krausTerm_vectorProjector, kraus_numberBasis, zero_add, productLaw_zero] at h
176 have he (k : Occupation d) : vectorProjector
177 ((Real.sqrt (Cloning.ThermalWitness.productGeometric q k) : ℂ) •
178 Cloning.MultimodeIdler.numberBasis d k) =
179 (Cloning.ThermalWitness.productGeometric q k : ℂ) •
180 vectorProjector (Cloning.MultimodeIdler.numberBasis d k) :=
181 Cloning.BosonicAmplifier.vectorProjector_sqrt_smul _
182 (Cloning.ThermalWitness.productGeometric_nonneg hq0 hq1 k) _
183 simp only [he] at h
184 change (channel q hq0 hq1).toLinearMap (vectorProjector (coherentVector 0)) = _
185 rw [coherentVector_zero_eq_numberBasis]
186 exact h.tsum_eq.symm
187
188end Cloning.MultimodeAmplifier