Exact Lean source
BosonicIdlerChannel
formalization/Cloning/BosonicIdlerChannel.lean
Source hash: 5f67ac8f81eccfc10e87fe4c6f18521c93c7753911c35ad54904fd805e193ddb
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.BosonicAmplifier.idlerSliceVectortheorem Cloning.BosonicAmplifier.idlerSliceVector_norm_ledefinition Cloning.BosonicAmplifier.idlerSlicetheorem Cloning.BosonicAmplifier.idlerSlice_applytheorem Cloning.BosonicAmplifier.idlerSlice_norm_sq_hasSumdefinition Cloning.BosonicAmplifier.idlerKraustheorem Cloning.BosonicAmplifier.idlerKraus_norm_sq_hasSumdefinition Cloning.BosonicAmplifier.idlerChanneltheorem Cloning.BosonicAmplifier.idlerChannel_hasSumtheorem Cloning.BosonicAmplifier.idlerKraus_numberBasis_applytheorem Cloning.BosonicAmplifier.inner_numberBasistheorem Cloning.BosonicAmplifier.idlerKraus_adjoint_numberBasis_applytheorem Cloning.BosonicAmplifier.idlerKraus_adjoint_numberBasis_shifttheorem Cloning.BosonicAmplifier.idlerKraus_adjoint_numberBasis_zerotheorem Cloning.BosonicAmplifier.idlerKraus_diagonal_shifttheorem Cloning.BosonicAmplifier.idlerKraus_diagonal_zerotheorem Cloning.BosonicAmplifier.idlerChannel_diagonal_hasSumtheorem Cloning.BosonicAmplifier.idlerChannel_diagonal_re_hasSumtheorem Cloning.BosonicAmplifier.idlerChannel_diagonal_re1import Cloning.BosonicAmplifierChannel
2
3/-!
4# Vacuum-signal output for an arbitrary idler state
5
6Taking slices in the other output coordinate of the amplifier isometry gives
7a genuine complementary channel. For input number `l`, the physical signal
8and idler pair is `|k,k+l⟩`. The channel retains general input coherences;
9only its output number diagonal depends solely on the idler number diagonal.
10-/
11
12noncomputable section
13open scoped ComplexOrder InnerProductSpace Topology BigOperators
14
15namespace Cloning.BosonicAmplifier
16
17open Cloning.InfiniteTraceClass
18set_option backward.isDefEq.respectTransparency false
19
20/-- A slice at a fixed output idler number. -/
21def idlerSliceVector (m : ℕ) (x : TwoModeFock) : Fock := by
22 refine ⟨fun k => x (m, k), memℓp_gen ?_⟩
23 exact ((lp.memℓp x).summable (by norm_num)).comp_injective
24 (fun i j h => congrArg Prod.snd h)
25
26theorem idlerSliceVector_norm_le (m : ℕ) (x : TwoModeFock) :
27 ‖idlerSliceVector m x‖ ≤ ‖x‖ := by
28 apply lp.norm_le_of_tsum_le (by norm_num) (norm_nonneg x)
29 rw [lp.norm_rpow_eq_tsum (by norm_num) x]
30 exact Summable.tsum_le_tsum_of_inj (fun k : ℕ => (m, k))
31 (fun i j h => congrArg Prod.snd h)
32 (fun p _ => Real.rpow_nonneg (norm_nonneg _) _)
33 (fun _ => le_rfl)
34 ((lp.memℓp (idlerSliceVector m x)).summable (by norm_num))
35 ((lp.memℓp x).summable (by norm_num))
36
37def idlerSlice (m : ℕ) : TwoModeFock →L[ℂ] Fock :=
38 LinearMap.mkContinuous
39 { toFun := idlerSliceVector m
40 map_add' := by intro x y; ext k; rfl
41 map_smul' := by intro c x; ext k; rfl }
42 1 (fun x => by simpa only [one_mul] using idlerSliceVector_norm_le m x)
43
44@[simp] theorem idlerSlice_apply (m : ℕ) (x : TwoModeFock) (k : ℕ) :
45 idlerSlice m x k = x (m, k) := rfl
46
47theorem idlerSlice_norm_sq_hasSum (x : TwoModeFock) :
48 HasSum (fun m => ‖idlerSlice m x‖ ^ 2) (‖x‖ ^ 2) := by
49 have hfull : HasSum (fun p : ℕ × ℕ => ‖x p‖ ^ (2 : ℕ)) (‖x‖ ^ 2) := by
50 simpa only [ENNReal.toReal_ofNat, Real.rpow_two] using
51 lp.hasSum_norm (show 0 < (2 : ENNReal).toReal by norm_num) x
52 apply hfull.prod_fiberwise
53 intro m
54 simpa only [ENNReal.toReal_ofNat, Real.rpow_two, idlerSlice_apply] using
55 lp.hasSum_norm (show 0 < (2 : ENNReal).toReal by norm_num) (idlerSlice m x)
56
57/-- Kraus operators for the vacuum signal with a general idler input. -/
58def idlerKraus (q : ℝ) (hq0 : 0 ≤ q) (hq1 : q < 1) (m : ℕ) : Fock →L[ℂ] Fock :=
59 (idlerSlice m).comp (isometry q hq0 hq1).toContinuousLinearMap
60
61theorem idlerKraus_norm_sq_hasSum (q : ℝ) (hq0 : 0 ≤ q) (hq1 : q < 1) (x : Fock) :
62 HasSum (fun m => ‖idlerKraus q hq0 hq1 m x‖ ^ 2) (‖x‖ ^ 2) := by
63 simpa only [idlerKraus, ContinuousLinearMap.comp_apply,
64 LinearIsometry.coe_toContinuousLinearMap, LinearIsometry.norm_map] using
65 idlerSlice_norm_sq_hasSum (isometry q hq0 hq1 x)
66
67/-- The complementary output is an actual completely positive trace-preserving map. -/
68def idlerChannel (q : ℝ) (hq0 : 0 ≤ q) (hq1 : q < 1) : QuantumChannel Fock Fock :=
69 QuantumChannel.ofKraus (idlerKraus q hq0 hq1) (idlerKraus_norm_sq_hasSum q hq0 hq1)
70
71theorem idlerChannel_hasSum (q : ℝ) (hq0 : 0 ≤ q) (hq1 : q < 1) (A : TraceClass Fock) :
72 HasSum (fun m => krausTerm (idlerKraus q hq0 hq1 m) A)
73 ((idlerChannel q hq0 hq1).toLinearMap A) := QuantumChannel.ofKraus_hasSum _ _ A
74
75theorem idlerKraus_numberBasis_apply (q : ℝ) (hq0 : 0 ≤ q) (hq1 : q < 1) (m n k : ℕ) :
76 idlerKraus q hq0 hq1 m (numberBasis n) k =
77 if m = n + k then (Real.sqrt (weight q n k) : ℂ) else 0 := by
78 simp only [numberBasis_eq_single, idlerKraus, ContinuousLinearMap.comp_apply,
79 LinearIsometry.coe_toContinuousLinearMap, isometry_single, idlerSlice_apply, column_apply]
80
81theorem inner_numberBasis (n : ℕ) (x : Fock) : ⟪numberBasis n, x⟫_ℂ = x n := by
82 rw [numberBasis_eq_single, lp.inner_single_left]
83 simp only [RCLike.inner_apply, map_one, mul_one]
84
85theorem idlerKraus_adjoint_numberBasis_apply
86 (q : ℝ) (hq0 : 0 ≤ q) (hq1 : q < 1) (m k n : ℕ) :
87 (star (idlerKraus q hq0 hq1 m) (numberBasis k)) n =
88 if m = n + k then (Real.sqrt (weight q n k) : ℂ) else 0 := by
89 rw [← inner_numberBasis, ContinuousLinearMap.star_eq_adjoint,
90 ContinuousLinearMap.adjoint_inner_right, ← inner_conj_symm, inner_numberBasis,
91 idlerKraus_numberBasis_apply]
92 split_ifs <;> simp only [map_zero, Complex.conj_ofReal]
93
94/-- On a fixed output number the adjoint Kraus operator selects one idler number. -/
95theorem idlerKraus_adjoint_numberBasis_shift
96 (q : ℝ) (hq0 : 0 ≤ q) (hq1 : q < 1) (l k : ℕ) :
97 star (idlerKraus q hq0 hq1 (l + k)) (numberBasis k) =
98 (Real.sqrt (weight q l k) : ℂ) • numberBasis l := by
99 ext n
100 rw [idlerKraus_adjoint_numberBasis_apply]
101 simp only [numberBasis_eq_single, lp.coeFn_smul, Pi.smul_apply,
102 lp.single_apply, Pi.single_apply, Nat.add_right_cancel_iff, smul_eq_mul]
103 by_cases h : n = l
104 · subst n; simp
105 · have h' : l ≠ n := Ne.symm h
106 simp [h, h']
107
108theorem idlerKraus_adjoint_numberBasis_zero
109 (q : ℝ) (hq0 : 0 ≤ q) (hq1 : q < 1) {m k : ℕ} (hmk : m < k) :
110 star (idlerKraus q hq0 hq1 m) (numberBasis k) = 0 := by
111 ext n
112 rw [idlerKraus_adjoint_numberBasis_apply]
113 have h : m ≠ n + k := by omega
114 simp [h]
115
116/-- A fixed output number selects exactly one input diagonal coefficient in each
117Kraus summand. No positivity or diagonality of the input is assumed. -/
118theorem idlerKraus_diagonal_shift
119 (q : ℝ) (hq0 : 0 ≤ q) (hq1 : q < 1) (A : TraceClass Fock) (l k : ℕ) :
120 ⟪numberBasis k, (krausTerm (idlerKraus q hq0 hq1 (l + k)) A).1
121 (numberBasis k)⟫_ℂ =
122 (weight q l k : ℂ) * ⟪numberBasis l, A.1 (numberBasis l)⟫_ℂ := by
123 rw [krausTerm, inner_sandwichCLM, idlerKraus_adjoint_numberBasis_shift,
124 map_smul, inner_smul_left, inner_smul_right, Complex.conj_ofReal]
125 have hs : (Real.sqrt (weight q l k) : ℂ) * (Real.sqrt (weight q l k) : ℂ) =
126 (weight q l k : ℂ) := by
127 exact_mod_cast Real.mul_self_sqrt (weight_nonneg hq0 hq1 l k)
128 rw [← mul_assoc, hs]
129
130theorem idlerKraus_diagonal_zero
131 (q : ℝ) (hq0 : 0 ≤ q) (hq1 : q < 1) (A : TraceClass Fock)
132 {m k : ℕ} (hmk : m < k) :
133 ⟪numberBasis k, (krausTerm (idlerKraus q hq0 hq1 m) A).1
134 (numberBasis k)⟫_ℂ = 0 := by
135 rw [krausTerm, inner_sandwichCLM,
136 idlerKraus_adjoint_numberBasis_zero q hq0 hq1 hmk, inner_zero_left]
137
138/-- Exact output number law for an arbitrary trace-class idler, including all
139coherences. The law is derived from the norm-convergent Kraus series. -/
140theorem idlerChannel_diagonal_hasSum
141 (q : ℝ) (hq0 : 0 ≤ q) (hq1 : q < 1) (A : TraceClass Fock) (k : ℕ) :
142 HasSum (fun l => (weight q l k : ℂ) *
143 ⟪numberBasis l, A.1 (numberBasis l)⟫_ℂ)
144 ⟪numberBasis k, ((idlerChannel q hq0 hq1).toLinearMap A).1
145 (numberBasis k)⟫_ℂ := by
146 let f : ℕ → ℂ := fun m => ⟪numberBasis k,
147 (krausTerm (idlerKraus q hq0 hq1 m) A).1 (numberBasis k)⟫_ℂ
148 have hsum : HasSum f ⟪numberBasis k,
149 ((idlerChannel q hq0 hq1).toLinearMap A).1 (numberBasis k)⟫_ℂ :=
150 (idlerChannel_hasSum q hq0 hq1 A).mapL
151 (traceClassMatrixCoefficient (numberBasis k) (numberBasis k))
152 have he : Function.Injective (fun l : ℕ => l + k) := by
153 intro i j hij
154 exact Nat.add_right_cancel hij
155 have hzero : ∀ m ∉ Set.range (fun l : ℕ => l + k), f m = 0 := by
156 intro m hm
157 have hmk : m < k := by
158 by_contra hn
159 exact hm ⟨m - k, Nat.sub_add_cancel (by omega)⟩
160 exact idlerKraus_diagonal_zero q hq0 hq1 A hmk
161 have h := (he.hasSum_iff hzero).mpr hsum
162 simpa only [Function.comp_def, f, idlerKraus_diagonal_shift] using h
163
164/-- Real output number law; the summands are the idler diagonal times the
165negative-binomial transition probability. -/
166theorem idlerChannel_diagonal_re_hasSum
167 (q : ℝ) (hq0 : 0 ≤ q) (hq1 : q < 1) (A : TraceClass Fock) (k : ℕ) :
168 HasSum (fun l => (⟪numberBasis l, A.1 (numberBasis l)⟫_ℂ).re * weight q l k)
169 (⟪numberBasis k, ((idlerChannel q hq0 hq1).toLinearMap A).1
170 (numberBasis k)⟫_ℂ).re := by
171 simpa only [Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im,
172 zero_mul, sub_zero, mul_comm] using
173 Complex.hasSum_re (idlerChannel_diagonal_hasSum q hq0 hq1 A k)
174
175theorem idlerChannel_diagonal_re
176 (q : ℝ) (hq0 : 0 ≤ q) (hq1 : q < 1) (A : TraceClass Fock) (k : ℕ) :
177 (⟪numberBasis k, ((idlerChannel q hq0 hq1).toLinearMap A).1
178 (numberBasis k)⟫_ℂ).re =
179 ∑' l, (⟪numberBasis l, A.1 (numberBasis l)⟫_ℂ).re * weight q l k :=
180 (idlerChannel_diagonal_re_hasSum q hq0 hq1 A k).tsum_eq.symm
181
182end Cloning.BosonicAmplifier