Offline · exact source
Exact Lean source

AmplifierWeylCoherent

formalization/Cloning/AmplifierWeylCoherent.lean

Source hash: 5dd8d9eb859863e2c4ada0593a79ac7110a074ac253509b034fc1b50e127f05a

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.BosonicAmplifierThermal
2import Cloning.WeylDisplacement
3import Cloning.InfiniteTraceClassPairing
4 
5/-! Exact coherent-vector action of adjoint quantum-limited-amplifier
6Kraus operators, retaining the full complex phase. -/
7noncomputable section
8open scoped ComplexOrder InnerProductSpace Topology BigOperators
9namespace Cloning.BosonicAmplifier
10open Cloning.InfiniteTraceClass
11set_option backward.isDefEq.respectTransparency false
12set_option maxHeartbeats 1200000
13 
14lemma sqrt_weight_div_factorial {q : ℝ} (hq0 : 0 ≤ q) (hq1 : q < 1) (n k : ℕ) :
15    Real.sqrt (weight q n k) / Real.sqrt ((n + k).factorial : ℝ) =
16      Real.sqrt (1 - q) ^ (n + 1) * Real.sqrt q ^ k /
17        (Real.sqrt (n.factorial : ℝ) * Real.sqrt (k.factorial : ℝ)) := by
18  have hf : ((n + k).choose n : ℝ) * (n.factorial : ℝ) * (k.factorial : ℝ) =
19      ((n + k).factorial : ℝ) := by
20    exact_mod_cast (show (n + k).choose n * n.factorial * k.factorial = (n + k).factorial by
21      simpa using Nat.choose_mul_factorial_mul_factorial (Nat.le_add_right n k))
22  have hnf : (n.factorial : ℝ) ≠ 0 := by positivity
23  have hkf : (k.factorial : ℝ) ≠ 0 := by positivity
24  have hnkf : ((n + k).factorial : ℝ) ≠ 0 := by positivity
25  have he : weight q n k / ((n + k).factorial : ℝ) =
26      ((1 - q) ^ (n + 1) * q ^ k) / ((n.factorial : ℝ) * (k.factorial : ℝ)) := by
27    unfold weight
28    apply (div_eq_div_iff hnkf (mul_ne_zero hnf hkf)).mpr
29    calc
30      _ = (((n + k).choose n : ℝ) * (n.factorial : ℝ) * (k.factorial : ℝ)) *
31          ((1 - q) ^ (n + 1) * q ^ k) := by ring
32      _ = _ := by rw [hf]; ring
33  rw [← Real.sqrt_div (weight_nonneg hq0 hq1 _ _), he,
34    Real.sqrt_div (mul_nonneg (pow_nonneg (sub_nonneg.mpr hq1.le) _) (pow_nonneg hq0 _)),
35    Real.sqrt_mul (pow_nonneg (sub_nonneg.mpr hq1.le) _),
36    Cloning.Thermal.sqrt_nat_pow (sub_nonneg.mpr hq1.le), Cloning.Thermal.sqrt_nat_pow hq0,
37    Real.sqrt_mul (Nat.cast_nonneg _)]
38 
39/-- The coherent coefficient extracted by the environment-number Kraus label. -/
40def coherentKrausAmplitude (q : ℝ) (k : ℕ) (z : ℂ) : ℂ :=
41  (Real.sqrt (1 - q) : ℂ) * ((Real.sqrt q : ℂ) * z) ^ k /
42    (Real.sqrt (k.factorial : ℝ) : ℂ) *
43      (Real.exp (-q * ‖z‖ ^ 2 / 2) : ℂ)
44 
45lemma coherent_kraus_coefficient {q : ℝ} (hq0 : 0 ≤ q) (hq1 : q < 1)
46    (k n : ℕ) (z : ℂ) :
47    (Real.sqrt (weight q n k) : ℂ) * Cloning.ComplexCoherent.coherentVector z (n + k) =
48      coherentKrausAmplitude q k z *
49        Cloning.ComplexCoherent.coherentVector ((Real.sqrt (1 - q) : ℂ) * z) n := by
50  rw [Cloning.ComplexCoherent.coherentVector_apply, Cloning.ComplexCoherent.coherentVector_apply]
51  have hn : ‖(Real.sqrt (1 - q) : ℂ) * z‖ ^ 2 = (1 - q) * ‖z‖ ^ 2 := by
52    rw [norm_mul, mul_pow, Complex.norm_real, Real.norm_of_nonneg (Real.sqrt_nonneg _),
53      Real.sq_sqrt (sub_nonneg.mpr hq1.le)]
54  have he : (Real.exp (-q * ‖z‖ ^ 2 / 2) : ℂ) *
55      (Real.exp (-((1 - q) * ‖z‖ ^ 2) / 2) : ℂ) =
56      (Real.exp (-‖z‖ ^ 2 / 2) : ℂ) := by
57    rw [← Complex.ofReal_mul, ← Real.exp_add]
58    congr 2
59    ring
60  have hw := sqrt_weight_div_factorial hq0 hq1 n k
61  have hwC : (Real.sqrt (weight q n k) : ℂ) / (Real.sqrt ((n + k).factorial : ℝ) : ℂ) =
62      (Real.sqrt (1 - q) : ℂ) ^ (n + 1) * (Real.sqrt q : ℂ) ^ k /
63        ((Real.sqrt (n.factorial : ℝ) : ℂ) * (Real.sqrt (k.factorial : ℝ) : ℂ)) := by
64    exact_mod_cast hw
65  rw [hn]
66  unfold coherentKrausAmplitude
67  rw [show (Real.sqrt (weight q n k) : ℂ) *
68      ((Real.exp (-‖z‖ ^ 2 / 2) : ℂ) * z ^ (n + k) /
69        (Real.sqrt ((n + k).factorial : ℝ) : ℂ)) =
70      ((Real.sqrt (weight q n k) : ℂ) / (Real.sqrt ((n + k).factorial : ℝ) : ℂ)) *
71        ((Real.exp (-‖z‖ ^ 2 / 2) : ℂ) * z ^ (n + k)) by ring, hwC]
72  simp only [mul_pow, pow_add, pow_one]
73  rw [← he]
74  ring
75 
76lemma inner_numberBasis (n : ℕ) (v : Fock) : ⟪numberBasis n, v⟫_ℂ = v n := by
77  rw [numberBasis_eq_single, lp.inner_single_left]
78  simp only [RCLike.inner_apply, map_one, mul_one]
79 
80/-- The adjoint Kraus action on every actual complex coherent vector. -/
81theorem kraus_adjoint_coherentVector (q : ℝ) (hq0 : 0 ≤ q) (hq1 : q < 1)
82    (k : ℕ) (z : ℂ) :
83    (kraus q hq0 hq1 k).adjoint (Cloning.ComplexCoherent.coherentVector z) =
84      coherentKrausAmplitude q k z •
85        Cloning.ComplexCoherent.coherentVector ((Real.sqrt (1 - q) : ℂ) * z) := by
86  ext n
87  rw [← inner_numberBasis, ContinuousLinearMap.adjoint_inner_right, kraus_numberBasis,
88    inner_smul_left, inner_numberBasis]
89  simp only [Complex.conj_ofReal, lp.coeFn_smul, Pi.smul_apply, smul_eq_mul]
90  exact coherent_kraus_coefficient hq0 hq1 k n z
91 
92/-- The Kraus amplitudes are one coherent vector, up to the exact common
93normalization. This also proves their cross-series summability. -/
94lemma coherentKrausAmplitude_eq (q : ℝ) (hq0 : 0 ≤ q) (k : ℕ) (z : ℂ) :
95    coherentKrausAmplitude q k z =
96      (Real.sqrt (1 - q) : ℂ) *
97        Cloning.ComplexCoherent.coherentVector ((Real.sqrt q : ℂ) * z) k := by
98  have hn : ‖(Real.sqrt q : ℂ) * z‖ ^ 2 = q * ‖z‖ ^ 2 := by
99    rw [norm_mul, mul_pow, Complex.norm_real, Real.norm_of_nonneg (Real.sqrt_nonneg _),
100      Real.sq_sqrt hq0]
101  rw [Cloning.ComplexCoherent.coherentVector_apply, hn]
102  unfold coherentKrausAmplitude
103  have he : -q * ‖z‖ ^ 2 / 2 = -(q * ‖z‖ ^ 2) / 2 := by ring
104  rw [he]
105  ring
106 
107lemma coherentKrausAmplitude_inner_hasSum {q : ℝ} (hq0 : 0 ≤ q) (hq1 : q < 1)
108    (v w : ℂ) :
109    HasSum (fun k => star (coherentKrausAmplitude q k v) * coherentKrausAmplitude q k w)
110      ((1 - q : ℂ) *
111        ⟪Cloning.ComplexCoherent.coherentVector ((Real.sqrt q : ℂ) * v),
112          Cloning.ComplexCoherent.coherentVector ((Real.sqrt q : ℂ) * w)⟫_ℂ) := by
113  have hs := (lp.hasSum_inner
114    (Cloning.ComplexCoherent.coherentVector ((Real.sqrt q : ℂ) * v))
115    (Cloning.ComplexCoherent.coherentVector ((Real.sqrt q : ℂ) * w))).mul_left (1 - q : ℂ)
116  convert hs using 1
117  funext k
118  simp only [coherentKrausAmplitude_eq q hq0, Complex.star_def, map_mul,
119    Complex.conj_ofReal, RCLike.inner_apply]
120  have hsq : (Real.sqrt (1 - q) : ℂ) * (Real.sqrt (1 - q) : ℂ) = (1 - q : ℂ) := by
121    exact_mod_cast Real.mul_self_sqrt (sub_nonneg.mpr hq1.le)
122  rw [← hsq]
123  ring
124 
125/-- Exact coherent matrix kernel of the physical amplifier on every complex
126trace-class input, including all input coherences. -/
127theorem channel_coherent_matrixCoefficient (q : ℝ) (hq0 : 0 ≤ q) (hq1 : q < 1)
128    (A : TraceClass Fock) (v w : ℂ) :
129    ⟪Cloning.ComplexCoherent.coherentVector v,
130      ((channel q hq0 hq1).toLinearMap A).1 (Cloning.ComplexCoherent.coherentVector w)⟫_ℂ =
131      ((1 - q : ℂ) *
132        ⟪Cloning.ComplexCoherent.coherentVector ((Real.sqrt q : ℂ) * v),
133          Cloning.ComplexCoherent.coherentVector ((Real.sqrt q : ℂ) * w)⟫_ℂ) *
134      ⟪Cloning.ComplexCoherent.coherentVector ((Real.sqrt (1 - q) : ℂ) * v),
135        A.1 (Cloning.ComplexCoherent.coherentVector ((Real.sqrt (1 - q) : ℂ) * w))⟫_ℂ := by
136  have hs := (channel_hasSum q hq0 hq1 A).mapL
137    (traceClassMatrixCoefficient (Cloning.ComplexCoherent.coherentVector v)
138      (Cloning.ComplexCoherent.coherentVector w))
139  have ht := (coherentKrausAmplitude_inner_hasSum hq0 hq1 v w).mul_right
140    ⟪Cloning.ComplexCoherent.coherentVector ((Real.sqrt (1 - q) : ℂ) * v),
141      A.1 (Cloning.ComplexCoherent.coherentVector ((Real.sqrt (1 - q) : ℂ) * w))⟫_ℂ
142  apply hs.unique
143  convert ht using 1
144  funext k
145  simp only [traceClassMatrixCoefficient_apply, krausTerm, inner_sandwichCLM,
146    ContinuousLinearMap.star_eq_adjoint, kraus_adjoint_coherentVector,
147    map_smul, inner_smul_left, inner_smul_right, Complex.star_def]
148  ring
149 
150end Cloning.BosonicAmplifier