Offline · exact source
Exact Lean source

AmplifierWeylThermal

formalization/Cloning/AmplifierWeylThermal.lean

Source hash: eeee0e083b71ae3155a11fc033a5cd888fcac86911f4ed7cfe97ab77fce4760b

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.AmplifierWeylMultimodeCovariance
2import Cloning.WeylThermalFourierChannel
3import Cloning.UniversalLeastNoiseThermalTest
4 
5/-! The constructed covariant amplifier has the quantum-limited Gaussian
6Weyl multiplier and sends genuine product thermal densities to their amplified
7thermal densities. Equality follows from characteristic-function injectivity. -/
8noncomputable section
9open scoped ComplexOrder InnerProductSpace Topology BigOperators
10namespace Cloning.MultimodeAmplifier
11open Cloning.InfiniteTraceClass Cloning.MultimodeCoherent
12open Cloning.MultimodeCoherentGaussianMixture Cloning.ThermalWitness
13set_option backward.isDefEq.respectTransparency false
14set_option maxHeartbeats 1200000
15variable {d : ℕ}
16 
17/-- The actual common-gain amplifier, independent of the input spectrum. -/
18def gainChannel (g : ℝ) (hg : 1 < g) : QuantumChannel (Fock d) (Fock d) :=
19  channel (fun _ => 1 - 1 / g) (fun _ => Cloning.BosonicAmplifier.gainNoise_nonneg hg)
20    (fun _ => Cloning.BosonicAmplifier.gainNoise_lt_one hg)
21 
22lemma gainChannel_covariant (g : ℝ) (hg : 1 < g) (a : Fin d → ℂ) (A : TraceClass (Fock d)) :
23    (gainChannel g hg).toLinearMap (displacementTraceMap a A) =
24      displacementTraceMap (Real.sqrt g • a) ((gainChannel g hg).toLinearMap A) :=
25  channel_weyl_covariant_gain g hg a A
26 
27lemma gainNoise_pos {g : ℝ} (hg : 1 < g) : 0 < 1 - 1 / g := by
28  have h := (div_lt_one (by linarith : 0 < g)).mpr hg
29  linarith
30 
31lemma gainChannel_vacuum (g : ℝ) (hg : 1 < g) :
32    (gainChannel g hg).toLinearMap (coherentProjector (0 : Fin d → ℂ)) =
33      vectorMixture (numberBasis d) (productGeometric (fun _ => 1 - 1 / g)) :=
34  channel_vacuum _ _ _
35 
36lemma vacuumProjector_characteristic (a : Fin d → ℂ) :
37    tracePairing (coherentProjector (0 : Fin d → ℂ)) (displacement a) =
38      ∏ i, (Real.exp (-‖a i‖ ^ 2 / 2) : ℂ) := by
39  change tracePairing (rankOneOperator (coherentVector 0) (coherentVector 0)) (displacement a) = _
40  rw [tracePairing_rankOneOperator, vacuum_characteristic]
41 
42lemma gainNoise_width {g : ℝ} (hg : g ≠ 0) :
43    geometricFourierWidth (1 - 1 / g) = g - 1 / 2 := by
44  unfold geometricFourierWidth
45  field_simp
46  ring
47 
48/-- Exact quantum-limited Weyl multiplier of the physical amplifier. -/
49theorem gainChannel_weylMultiplier (g : ℝ) (hg : 1 < g) (a : Fin d → ℂ) :
50    weylMultiplier (gainChannel g hg).heisenberg (Real.sqrt g) a =
51      ∏ i, Complex.exp (-((((g - 1) / 2) * ‖a i‖ ^ 2 : ℝ) : ℂ)) := by
52  let Φ := gainChannel (d := d) g hg
53  have hcov := gainChannel_covariant (d := d) g hg
54  have hm := (quantumChannel_weyl_multiplier Φ (Real.sqrt g) hcov).1 a
55  have hv := heisenbergDual_pairing Φ.toPositiveTracePreservingMap.toContinuousLinearMap
56    (coherentProjector (0 : Fin d → ℂ)) (displacement a)
57  change tracePairing (coherentProjector (0 : Fin d → ℂ)) (Φ.heisenberg (displacement a)) =
58    tracePairing (Φ.toLinearMap (coherentProjector 0)) (displacement a) at hv
59  rw [hm, map_smul, smul_eq_mul, vacuumProjector_characteristic,
60    show Φ.toLinearMap (coherentProjector 0) =
61      vectorMixture (numberBasis d) (productGeometric (fun _ => 1 - 1 / g))
62      from gainChannel_vacuum g hg,
63    productThermal_characteristic (fun _ => gainNoise_pos hg)
64      (fun _ => Cloning.BosonicAmplifier.gainNoise_lt_one hg)] at hv
65  have hsq : Real.sqrt g ^ 2 = g := Real.sq_sqrt (by linarith)
66  have hvscale : (∏ i : Fin d, (Real.exp (-‖(Real.sqrt g • a) i‖ ^ 2 / 2) : ℂ)) =
67      ∏ i, Complex.exp (-(((g / 2) * ‖a i‖ ^ 2 : ℝ) : ℂ)) := by
68    apply Finset.prod_congr rfl
69    intro i _
70    simp only [Pi.smul_apply, norm_real_smul_sq, hsq, Complex.ofReal_exp]
71    congr 1
72    push_cast
73    ring
74  rw [hvscale] at hv
75  have hn : (∏ i : Fin d, Complex.exp (-(((g / 2) * ‖a i‖ ^ 2 : ℝ) : ℂ))) ≠ 0 :=
76    Finset.prod_ne_zero_iff.mpr (fun i _ => Complex.exp_ne_zero _)
77  apply mul_right_cancel₀ hn
78  change weylMultiplier Φ.heisenberg (Real.sqrt g) a * _ = _
79  rw [hv, ← Finset.prod_mul_distrib]
80  apply Finset.prod_congr rfl
81  intro i _
82  change Complex.exp (-((geometricFourierWidth (1 - 1 / g) * ‖a i‖ ^ 2 : ℝ) : ℂ)) = _
83  rw [gainNoise_width (by linarith : g ≠ 0), ← Complex.exp_add]
84  congr 1
85  push_cast
86  ring
87 
88/-- Actual thermal amplification on the full multimode Fock space. -/
89theorem gainChannel_productThermal (g : ℝ) (hg : 1 < g) {q : Fin d → ℝ}
90    (hq0 : ∀ i, 0 < q i) (hq1 : ∀ i, q i < 1) :
91    (gainChannel g hg).toLinearMap (vectorMixture (numberBasis d) (productGeometric q)) =
92      vectorMixture (numberBasis d) (productGeometric (fun i => Cloning.Thermal.amplified g (q i))) := by
93  apply characteristic_injective
94  funext a
95  dsimp only
96  have hx0 (i : Fin d) : 0 < Cloning.Thermal.amplified g (q i) :=
97    (hq0 i).trans (Cloning.Thermal.lt_amplified hg (hq1 i))
98  have hx1 (i : Fin d) : Cloning.Thermal.amplified g (q i) < 1 :=
99    Cloning.Thermal.amplified_lt_one (by linarith) (hq1 i)
100  rw [productThermal_characteristic hx0 hx1]
101  have h := covariant_thermal_output_characteristic
102    (gainChannel (d := d) g hg).toPositiveTracePreservingMap.toContinuousLinearMap
103    (Real.sqrt g) (gainChannel_covariant g hg) hq0 hq1 a
104  change tracePairing ((gainChannel g hg).toLinearMap
105      (vectorMixture (numberBasis d) (productGeometric q))) (displacement a) =
106    weylMultiplier (gainChannel g hg).heisenberg (Real.sqrt g) a * _ at h
107  rw [h, gainChannel_weylMultiplier, ← Finset.prod_mul_distrib]
108  apply Finset.prod_congr rfl
109  intro i _
110  rw [Real.sq_sqrt (by linarith : 0 ≤ g), ← Complex.exp_add]
111  change Complex.exp _ = Complex.exp (-((geometricFourierWidth (Cloning.Thermal.amplified g (q i)) * ‖a i‖ ^ 2 : ℝ) : ℂ))
112  rw [geometricFourierWidth_amplified (by linarith : g ≠ 0) (hq1 i).ne]
113  congr 1
114  push_cast
115  ring
116 
117end Cloning.MultimodeAmplifier