Offline · exact source
Exact Lean source

InfiniteRectangularKraus

formalization/Cloning/InfiniteRectangularKraus.lean

Source hash: 917ced9b460e4e7195a4a7119683a759ff6afe8bfd3c6e95d9f551d78314ab95

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.InfiniteIsometricChannel
2import Cloning.InfiniteChannelWeakLimit
3import Cloning.InfiniteChannelCovariance
4import Mathlib.Topology.Algebra.InfiniteSum.Real
5 
6/-! Kraus channels between different Hilbert spaces, from actual vector
7normalization. Rectangular conjugation and trace-norm convergence are derived. -/
8 
9namespace Cloning.InfiniteTraceClass
10noncomputable section
11set_option backward.isDefEq.respectTransparency false
12set_option maxHeartbeats 800000
13open scoped ComplexOrder InnerProductSpace Topology BigOperators
14open Filter
15 
16variable {H J : Type*}
17  [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
18  [NormedAddCommGroup J] [InnerProductSpace ℂ J] [CompleteSpace J]
19variable {ι : Type*}
20 
21/-- Strong normalization of the Kraus family, tested on actual Hilbert vectors. -/
22def RectangularKrausComplete (K : ι → H →L[ℂ] J) : Prop :=
23  ∀ x : H, HasSum (fun k => ‖K k x‖ ^ 2) (‖x‖ ^ 2)
24 
25/-- Positive inputs have an absolutely convergent Kraus series, with total
26trace-norm mass exactly their input trace. The proof uses the actual rank-one
27trace-norm decomposition and nonnegative Fubini. -/
28theorem rectangularKraus_norm_hasSum_of_nonneg (K : ι → H →L[ℂ] J) (hK : RectangularKrausComplete K)
29    (A : TraceClass H) (hA : 0 ≤ A.1) :
30    HasSum (fun k => ‖conjugationLinearMap (K k) A‖) ‖A‖ := by
31  obtain ⟨w, b, _⟩ := exists_hilbertBasis ℂ H
32  let v : w → H := fun i => CFC.sqrt A.1 (b i)
33  have hmass : HasSum (fun i : w => ‖v i‖ ^ 2) ‖A‖ := by
34    simpa only [norm_vectorProjector, TraceClass.norm_eq_trace_re_of_nonneg A hA]
35      using positive_rankOne_mass hA A.2 b
36  have hd : Summable (fun p : w × ι => ‖K p.2 (v p.1)‖ ^ 2) := by
37    apply (summable_prod_of_nonneg (fun p => sq_nonneg ‖K p.2 (v p.1)‖)).mpr
38    refine ⟨fun i => (hK (v i)).summable, ?_⟩
39    simpa only [(hK _).tsum_eq] using hmass.summable
40  have hrow (k : ι) : HasSum (fun i : w => ‖K k (v i)‖ ^ 2)
41      (traceCLM (conjugationLinearMap (K k) A)).re := by
42    have h := (conjugationLinearMap_positive_hasSum (K k) A hA b).mapL traceCLM
43    have hr := Complex.hasSum_re h
44    simpa only [conjugationLinearMap_vectorProjector, traceCLM_vectorProjector, Complex.ofReal_re] using hr
45  have heq (k : ι) : ‖conjugationLinearMap (K k) A‖ = ∑' i : w, ‖K k (v i)‖ ^ 2 := by
46    rw [TraceClass.norm_eq_trace_re_of_nonneg _ (conjugationLinearMap_nonneg (K k) A hA)]
47    exact (hrow k).tsum_eq.symm
48  have hs : Summable (fun k => ‖conjugationLinearMap (K k) A‖) := by
49    simpa only [heq] using hd.prod_symm.prod
50  have ht : (∑' k, ‖conjugationLinearMap (K k) A‖) = ‖A‖ := by
51    simp_rw [heq]
52    rw [hd.tsum_comm]
53    simpa only [(hK _).tsum_eq] using hmass.tsum_eq
54  exact ht ▸ hs.hasSum
55 
56/-- Every trace-class input has a convergent Kraus series. Positivity is
57removed by the actual Jordan and real/imaginary decompositions. -/
58theorem rectangularKraus_summable (K : ι → H →L[ℂ] J) (hK : RectangularKrausComplete K)
59    (A : TraceClass H) : Summable (fun k => conjugationLinearMap (K k) A) := by
60  have hpos (B : TraceClass H) (hB : 0 ≤ B.1) :
61      Summable (fun k => conjugationLinearMap (K k) B) :=
62    (rectangularKraus_norm_hasSum_of_nonneg K hK B hB).summable.of_norm
63  have hself (B : TraceClass H) (hB : IsSelfAdjoint B.1) :
64      Summable (fun k => conjugationLinearMap (K k) B) := by
65    have hp := hpos (TraceClass.positivePart B hB) (TraceClass.positivePart_nonneg B hB)
66    have hn := hpos (TraceClass.negativePart B hB) (TraceClass.negativePart_nonneg B hB)
67    convert hp.sub hn using 1
68    ext k
69    rw [← map_sub, TraceClass.positivePart_sub_negativePart]
70  have hr := hself (TraceClass.realComponent A) (TraceClass.realComponent_isSelfAdjoint A)
71  have hi := hself (TraceClass.imaginaryComponent A) (TraceClass.imaginaryComponent_isSelfAdjoint A)
72  convert hr.add (hi.const_smul Complex.I) using 1
73  ext k
74  rw [← map_smul, ← map_add, TraceClass.realComponent_add_I_smul_imaginaryComponent]
75 
76/-- The Kraus series is complex linear on the whole trace-class space. -/
77def rectangularKrausLinearMap (K : ι → H →L[ℂ] J) (hK : RectangularKrausComplete K) :
78    TraceClass H →ₗ[ℂ] TraceClass J where
79  toFun A := ∑' k, conjugationLinearMap (K k) A
80  map_add' A B := by
81    simp only [map_add]
82    exact (rectangularKraus_summable K hK A).tsum_add (rectangularKraus_summable K hK B)
83  map_smul' c A := by
84    simp only [map_smul]
85    exact (rectangularKraus_summable K hK A).tsum_const_smul c
86 
87@[simp] lemma rectangularKrausLinearMap_apply (K : ι → H →L[ℂ] J) (hK : RectangularKrausComplete K)
88    (A : TraceClass H) : rectangularKrausLinearMap K hK A = ∑' k, conjugationLinearMap (K k) A := rfl
89 
90lemma rectangularKrausLinearMap_hasSum (K : ι → H →L[ℂ] J) (hK : RectangularKrausComplete K)
91    (A : TraceClass H) : HasSum (fun k => conjugationLinearMap (K k) A) (rectangularKrausLinearMap K hK A) :=
92  (rectangularKraus_summable K hK A).hasSum
93 
94lemma rectangularKrausLinearMap_nonneg (K : ι → H →L[ℂ] J) (hK : RectangularKrausComplete K)
95    (A : TraceClass H) (hA : 0 ≤ A.1) : 0 ≤ (rectangularKrausLinearMap K hK A).1 := by
96  change 0 ≤ inclusionCLM (rectangularKrausLinearMap K hK A)
97  rw [rectangularKrausLinearMap_apply, ContinuousLinearMap.map_tsum _ (rectangularKraus_summable K hK A)]
98  exact tsum_nonneg (fun k => conjugationLinearMap_nonneg (K k) A hA)
99 
100private lemma traceCLM_eq_norm_of_nonneg (A : TraceClass H) (hA : 0 ≤ A.1) :
101    traceCLM A = (‖A‖ : ℂ) := trace_eq_traceNorm_of_nonneg hA A.2
102 
103lemma rectangularKrausLinearMap_trace_of_nonneg (K : ι → H →L[ℂ] J) (hK : RectangularKrausComplete K)
104    (A : TraceClass H) (hA : 0 ≤ A.1) : traceCLM (rectangularKrausLinearMap K hK A) = traceCLM A := by
105  have hsource := (rectangularKrausLinearMap_hasSum K hK A).mapL traceCLM
106  have htarget : HasSum (fun k => traceCLM (conjugationLinearMap (K k) A)) (traceCLM A) := by
107    simp only [traceCLM_eq_norm_of_nonneg A hA,
108      traceCLM_eq_norm_of_nonneg _ (conjugationLinearMap_nonneg _ A hA)]
109    exact Complex.hasSum_ofReal.mpr (rectangularKraus_norm_hasSum_of_nonneg K hK A hA)
110  exact hsource.unique htarget
111 
112/-- Trace preservation holds for all trace-class operators, including
113non-self-adjoint inputs. -/
114lemma rectangularKrausLinearMap_trace (K : ι → H →L[ℂ] J) (hK : RectangularKrausComplete K)
115    (A : TraceClass H) : traceCLM (rectangularKrausLinearMap K hK A) = traceCLM A := by
116  let D : TraceClass H →ₗ[ℂ] ℂ :=
117    traceCLM.toLinearMap.comp (rectangularKrausLinearMap K hK) - traceCLM.toLinearMap
118  have hpos (B : TraceClass H) (hB : 0 ≤ B.1) : D B = 0 :=
119    sub_eq_zero.mpr (rectangularKrausLinearMap_trace_of_nonneg K hK B hB)
120  have hself (B : TraceClass H) (hB : IsSelfAdjoint B.1) : D B = 0 := by
121    rw [← TraceClass.positivePart_sub_negativePart B hB, map_sub,
122      hpos _ (TraceClass.positivePart_nonneg B hB),
123      hpos _ (TraceClass.negativePart_nonneg B hB), sub_self]
124  have hzero : D A = 0 := by
125    rw [← TraceClass.realComponent_add_I_smul_imaginaryComponent A, map_add, map_smul,
126      hself _ (TraceClass.realComponent_isSelfAdjoint A),
127      hself _ (TraceClass.imaginaryComponent_isSelfAdjoint A)]
128    simp
129  exact sub_eq_zero.mp hzero
130 
131/-- Complete positivity follows from finite Kraus sums and their actual
132trace-norm (hence weak-operator) convergence, at every finite ancilla size. -/
133lemma rectangularKrausLinearMap_completelyPositive (K : ι → H →L[ℂ] J) (hK : RectangularKrausComplete K) :
134    IsCompletelyPositive (rectangularKrausLinearMap K hK) := by
135  classical
136  let F : Finset ι → TraceClass H →ₗ[ℂ] TraceClass J := fun s =>
137    ∑ k ∈ s, conjugationLinearMap (K k)
138  have hF (s : Finset ι) : IsCompletelyPositive (F s) := by
139    induction s using Finset.induction_on with
140    | empty =>
141      intro n A hA x
142      simp [F]
143    | @insert k s hk ih =>
144      simpa only [F, Finset.sum_insert hk] using (conjugationLinearMap_completelyPositive (K k)).add ih
145  intro n A hA
146  apply BlockPositive.of_weakOperator_tendsto (l := (atTop : Filter (Finset ι)))
147    (fun s i j => F s (A i j)) (fun i j => rectangularKrausLinearMap K hK (A i j))
148    (fun s => hF s n A hA)
149  intro i j x y
150  have h := (traceClassMatrixCoefficient x y).continuous.tendsto
151    (rectangularKrausLinearMap K hK (A i j)) |>.comp (rectangularKrausLinearMap_hasSum K hK (A i j))
152  simpa only [F, LinearMap.sum_apply, traceClassMatrixCoefficient_apply] using h
153 
154/-- A genuine infinite-dimensional quantum channel produced from Kraus
155normalization alone. -/
156def QuantumChannel.ofRectangularKraus (K : ι → H →L[ℂ] J) (hK : RectangularKrausComplete K) :
157    QuantumChannel H J where
158  toLinearMap := rectangularKrausLinearMap K hK
159  map_nonneg := rectangularKrausLinearMap_nonneg K hK
160  trace_preserving := rectangularKrausLinearMap_trace K hK
161  completelyPositive := rectangularKrausLinearMap_completelyPositive K hK
162 
163/-- The defining series converges in the trace-class Banach norm. -/
164lemma QuantumChannel.ofRectangularKraus_hasSum (K : ι → H →L[ℂ] J) (hK : RectangularKrausComplete K)
165    (A : TraceClass H) : HasSum (fun k => conjugationLinearMap (K k) A)
166      ((QuantumChannel.ofRectangularKraus K hK).toLinearMap A) :=
167  rectangularKrausLinearMap_hasSum K hK A
168 
169/-- On a pure input, the output is the actual trace-norm convergent mixture
170of the Kraus image vectors. No normalization of the individual vectors is required. -/
171lemma QuantumChannel.ofRectangularKraus_vectorProjector_hasSum
172    (K : ι → H →L[ℂ] J) (hK : RectangularKrausComplete K) (x : H) :
173    HasSum (fun k => vectorProjector (K k x))
174      ((QuantumChannel.ofRectangularKraus K hK).toLinearMap (vectorProjector x)) := by
175  simpa only [conjugationLinearMap_vectorProjector] using
176    QuantumChannel.ofRectangularKraus_hasSum K hK (vectorProjector x)
177 
178lemma QuantumChannel.ofRectangularKraus_vectorProjector
179    (K : ι → H →L[ℂ] J) (hK : RectangularKrausComplete K) (x : H) :
180    (QuantumChannel.ofRectangularKraus K hK).toLinearMap (vectorProjector x) =
181      ∑' k, vectorProjector (K k x) :=
182  (QuantumChannel.ofRectangularKraus_vectorProjector_hasSum K hK x).tsum_eq.symm
183 
184end
185end Cloning.InfiniteTraceClass