Offline · exact source
Exact Lean source

BosonicAmplifier

formalization/Cloning/BosonicAmplifier.lean

Source hash: 8419f4c3cd8810eafa283344ea9ab903ff8ecf85a800877723d03565cc09627a

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
1import Cloning.CoherentCoefficients
2import Mathlib.Analysis.SpecificLimits.Normed
3 
4/-!
5# One-mode quantum-limited amplifier coefficients and Stinespring isometry
6 
7For `0 ≤ q < 1`, the gain is `1/(1-q)`. An input number vector `|n⟩`
8is mapped to a coherent superposition of the pairs `|n+k,k⟩` with squared
9amplitudes `choose(n+k,n) (1-q)^(n+1) q^k`. The negative-binomial
10normalization and the orthogonality of these columns are proved here.
11-/
12 
13noncomputable section
14open scoped InnerProductSpace BigOperators Topology
15 
16namespace Cloning.BosonicAmplifier
17 
18/-- The actual one-mode Fock coefficient Hilbert space. -/
19abbrev Fock := lp (fun _ : ℕ => ℂ) 2
20 
21/-- The canonical photon-number Hilbert basis. -/
22def numberBasis : HilbertBasis ℕ ℂ Fock := HilbertBasis.ofRepr (LinearIsometryEquiv.refl ℂ Fock)
23 
24@[simp] theorem numberBasis_eq_single (n : ℕ) : numberBasis n = lp.single 2 n 1 :=
25  (numberBasis.repr_symm_single n).symm
26 
27/-- Signal and environment photon-number coefficients. -/
28abbrev TwoModeFock := lp (fun _ : ℕ × ℕ => ℂ) 2
29 
30/-- Squared amplifier amplitude at input number `n` and created-pair number `k`. -/
31def weight (q : ℝ) (n k : ℕ) : ℝ :=
32  ((n + k).choose n : ℝ) * (1 - q) ^ (n + 1) * q ^ k
33 
34theorem weight_nonneg {q : ℝ} (hq0 : 0 ≤ q) (hq1 : q < 1) (n k : ℕ) :
35    0 ≤ weight q n k := by
36  have hq : 0 ≤ 1 - q := sub_nonneg.mpr hq1.le
37  unfold weight
38  positivity
39 
40/-- Exact negative-binomial normalization, including zero gain-noise. -/
41theorem weight_hasSum {q : ℝ} (hq0 : 0 ≤ q) (hq1 : q < 1) (n : ℕ) :
42    HasSum (weight q n) 1 := by
43  have hq : ‖q‖ < 1 := by simpa only [Real.norm_eq_abs, abs_of_nonneg hq0] using hq1
44  have hs := (hasSum_choose_mul_geometric_of_norm_lt_one n hq).mul_left
45    ((1 - q) ^ (n + 1))
46  have hn : (1 - q) ^ (n + 1) ≠ 0 := pow_ne_zero _ (by linarith)
47  convert hs using 1
48  · ext k
49    simp only [weight, Nat.add_comm]
50    ring
51  · field_simp
52 
53theorem weight_tsum {q : ℝ} (hq0 : 0 ≤ q) (hq1 : q < 1) (n : ℕ) :
54    ∑' k, weight q n k = 1 := (weight_hasSum hq0 hq1 n).tsum_eq
55 
56/-- The two-mode joint law of one amplifier column. -/
57def columnWeight (q : ℝ) (n : ℕ) (p : ℕ × ℕ) : ℝ :=
58  if p.1 = n + p.2 then weight q n p.2 else 0
59 
60theorem columnWeight_nonneg {q : ℝ} (hq0 : 0 ≤ q) (hq1 : q < 1)
61    (n : ℕ) (p : ℕ × ℕ) : 0 ≤ columnWeight q n p := by
62  unfold columnWeight
63  split_ifs
64  · exact weight_nonneg hq0 hq1 _ _
65  · exact le_rfl
66 
67theorem columnWeight_hasSum {q : ℝ} (hq0 : 0 ≤ q) (hq1 : q < 1) (n : ℕ) :
68    HasSum (columnWeight q n) 1 := by
69  let e : ℕ → ℕ × ℕ := fun k => (n + k, k)
70  have he : Function.Injective e := fun i j hij => congrArg Prod.snd hij
71  have hzero : ∀ p ∉ Set.range e, columnWeight q n p = 0 := by
72    intro p hp
73    unfold columnWeight
74    split_ifs with h
75    · exact False.elim (hp ⟨p.2, Prod.ext h.symm rfl⟩)
76    · rfl
77  apply (he.hasSum_iff hzero).mp
78  simpa only [Function.comp_def, e, columnWeight, if_pos rfl] using weight_hasSum hq0 hq1 n
79 
80/-- The actual two-mode amplifier output vector for a number input. -/
81def column (q : ℝ) (hq0 : 0 ≤ q) (hq1 : q < 1) (n : ℕ) : TwoModeFock :=
82  Cloning.CoherentCoefficients.amplitudeVector (columnWeight q n)
83    (columnWeight_nonneg hq0 hq1 n) (columnWeight_hasSum hq0 hq1 n)
84 
85theorem column_apply (q : ℝ) (hq0 : 0 ≤ q) (hq1 : q < 1) (n : ℕ) (p : ℕ × ℕ) :
86    column q hq0 hq1 n p =
87      if p.1 = n + p.2 then (Real.sqrt (weight q n p.2) : ℂ) else 0 := by
88  simp only [column, Cloning.CoherentCoefficients.amplitudeVector_apply, columnWeight]
89  split_ifs <;> simp
90 
91theorem column_norm (q : ℝ) (hq0 : 0 ≤ q) (hq1 : q < 1) (n : ℕ) :
92    ‖column q hq0 hq1 n‖ = 1 := Cloning.CoherentCoefficients.amplitudeVector_norm _ _ _
93 
94/-- Different input numbers remain orthogonal; coherences are retained. -/
95theorem column_orthonormal (q : ℝ) (hq0 : 0 ≤ q) (hq1 : q < 1) :
96    Orthonormal ℂ (column q hq0 hq1) := by
97  refine ⟨column_norm q hq0 hq1, ?_⟩
98  intro n m hnm
99  rw [lp.inner_eq_tsum]
100  suffices h : ∀ p : ℕ × ℕ, ⟪column q hq0 hq1 n p, column q hq0 hq1 m p⟫_ℂ = 0 by
101    simp only [h, tsum_zero]
102  intro p
103  rw [column_apply, column_apply]
104  split_ifs with hn hm
105  · exact False.elim (hnm (Nat.add_right_cancel (hn.symm.trans hm)))
106  · simp
107  · simp
108  · simp
109 
110/-- The genuine coherent linear isometric Stinespring map. -/
111def isometry (q : ℝ) (hq0 : 0 ≤ q) (hq1 : q < 1) : Fock →ₗᵢ[ℂ] TwoModeFock :=
112  (column_orthonormal q hq0 hq1).orthogonalFamily.linearIsometry
113 
114/-- Its number-basis action is the explicit amplifier column. -/
115theorem isometry_single (q : ℝ) (hq0 : 0 ≤ q) (hq1 : q < 1) (n : ℕ) :
116    isometry q hq0 hq1 (lp.single 2 n 1) = column q hq0 hq1 n := by
117  rw [isometry, OrthogonalFamily.linearIsometry_apply_single]
118  exact one_smul ℂ _
119 
120/-- A fixed environment-number slice is square summable. -/
121def sliceVector (k : ℕ) (x : TwoModeFock) : Fock := by
122  refine ⟨fun m => x (m, k), memℓp_gen ?_⟩
123  exact ((lp.memℓp x).summable (by norm_num)).comp_injective
124    (fun i j h => congrArg Prod.fst h)
125 
126theorem sliceVector_norm_le (k : ℕ) (x : TwoModeFock) : ‖sliceVector k x‖ ≤ ‖x‖ := by
127  apply lp.norm_le_of_tsum_le (by norm_num) (norm_nonneg x)
128  rw [lp.norm_rpow_eq_tsum (by norm_num) x]
129  exact Summable.tsum_le_tsum_of_inj (fun m : ℕ => (m, k))
130    (fun i j h => congrArg Prod.fst h)
131    (fun p _ => Real.rpow_nonneg (norm_nonneg _) _)
132    (fun _ => le_rfl)
133    ((lp.memℓp (sliceVector k x)).summable (by norm_num))
134    ((lp.memℓp x).summable (by norm_num))
135 
136/-- The bounded slice map extracts the `k`th environment coefficient. -/
137def slice (k : ℕ) : TwoModeFock →L[ℂ] Fock :=
138  LinearMap.mkContinuous
139    { toFun := sliceVector k
140      map_add' := by intro x y; ext m; rfl
141      map_smul' := by intro c x; ext m; rfl }
142    1 (fun x => by simpa only [one_mul] using sliceVector_norm_le k x)
143 
144@[simp] theorem slice_apply (k : ℕ) (x : TwoModeFock) (m : ℕ) :
145    slice k x m = x (m, k) := rfl
146 
147/-- Summing the slice probabilities is exactly the two-mode Hilbert norm. -/
148theorem slice_norm_sq_hasSum (x : TwoModeFock) :
149    HasSum (fun k => ‖slice k x‖ ^ 2) (‖x‖ ^ 2) := by
150  have hfull : HasSum (fun p : ℕ × ℕ => ‖x p‖ ^ (2 : ℕ)) (‖x‖ ^ 2) := by
151    simpa only [ENNReal.toReal_ofNat, Real.rpow_two] using
152      lp.hasSum_norm (show 0 < (2 : ENNReal).toReal by norm_num) x
153  have hswap : HasSum (fun p : ℕ × ℕ => ‖x (p.2, p.1)‖ ^ (2 : ℕ)) (‖x‖ ^ 2) :=
154    (Equiv.prodComm ℕ ℕ).hasSum_iff.mpr hfull
155  apply hswap.prod_fiberwise
156  intro k
157  simpa only [ENNReal.toReal_ofNat, Real.rpow_two, slice_apply] using
158    lp.hasSum_norm (show 0 < (2 : ENNReal).toReal by norm_num) (slice k x)
159 
160/-- Genuine amplifier Kraus operators, obtained by slicing the isometry. -/
161def kraus (q : ℝ) (hq0 : 0 ≤ q) (hq1 : q < 1) (k : ℕ) : Fock →L[ℂ] Fock :=
162  (slice k).comp (isometry q hq0 hq1).toContinuousLinearMap
163 
164/-- Exact Kraus normalization on every vector, including coherent superpositions. -/
165theorem kraus_norm_sq_hasSum (q : ℝ) (hq0 : 0 ≤ q) (hq1 : q < 1) (x : Fock) :
166    HasSum (fun k => ‖kraus q hq0 hq1 k x‖ ^ 2) (‖x‖ ^ 2) := by
167  simpa only [kraus, ContinuousLinearMap.comp_apply, LinearIsometry.coe_toContinuousLinearMap,
168    LinearIsometry.norm_map] using slice_norm_sq_hasSum (isometry q hq0 hq1 x)
169 
170/-- The Kraus number-state action is the standard photon-creation shift. -/
171theorem kraus_single_apply (q : ℝ) (hq0 : 0 ≤ q) (hq1 : q < 1) (k n m : ℕ) :
172    kraus q hq0 hq1 k (lp.single 2 n 1) m =
173      if m = n + k then (Real.sqrt (weight q n k) : ℂ) else 0 := by
174  simp only [kraus, ContinuousLinearMap.comp_apply, LinearIsometry.coe_toContinuousLinearMap,
175    isometry_single, slice_apply, column_apply]
176 
177theorem kraus_numberBasis (q : ℝ) (hq0 : 0 ≤ q) (hq1 : q < 1) (k n : ℕ) :
178    kraus q hq0 hq1 k (numberBasis n) =
179      (Real.sqrt (weight q n k) : ℂ) • numberBasis (n + k) := by
180  ext m
181  simp only [numberBasis_eq_single, kraus_single_apply, lp.coeFn_smul, Pi.smul_apply,
182    lp.single_apply, Pi.single_apply, smul_eq_mul]
183  by_cases h : m = n + k <;> simp [h]
184 
185/-- An arbitrary input is mapped by summing amplitudes, not input probabilities. -/
186theorem isometry_hasSum (q : ℝ) (hq0 : 0 ≤ q) (hq1 : q < 1) (x : Fock) :
187    HasSum (fun n => x n • column q hq0 hq1 n) (isometry q hq0 hq1 x) :=
188  (column_orthonormal q hq0 hq1).orthogonalFamily.hasSum_linearIsometry x
189 
190/-- The full amplitude formula also holds for coherent superpositions. -/
191theorem isometry_apply (q : ℝ) (hq0 : 0 ≤ q) (hq1 : q < 1) (x : Fock) :
192    isometry q hq0 hq1 x = ∑' n, x n • column q hq0 hq1 n :=
193  (isometry_hasSum q hq0 hq1 x).tsum_eq.symm
194 
195end Cloning.BosonicAmplifier