Exact Lean source
InfiniteChannelTraceRepair
formalization/Cloning/InfiniteChannelTraceRepair.lean
Source hash: 94e36fed0f8ad99a26dd495ba84ac2f7e1e073cbca5500deba4fcea73feb29a8
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
theorem
Cloning.InfiniteTraceClass.BlockPositive.functionalMatrixtheorem Cloning.InfiniteTraceClass.BlockPositive.replacePure_functionaltheorem Cloning.InfiniteTraceClass.BlockPositive.replace_functionaltheorem Cloning.InfiniteTraceClass.functionalReplacement_completelyPositivetheorem Cloning.InfiniteTraceClass.IsCompletelyPositive.map_nonnegtheorem Cloning.InfiniteTraceClass.IsCompletelyPositive.adddefinition Cloning.InfiniteTraceClass.traceDefecttheorem Cloning.InfiniteTraceClass.traceDefect_applytheorem Cloning.InfiniteTraceClass.traceDefect_nonnegdefinition Cloning.InfiniteTraceClass.traceRepairLineartheorem Cloning.InfiniteTraceClass.traceRepairLinear_applytheorem Cloning.InfiniteTraceClass.traceRepair_completelyPositivetheorem Cloning.InfiniteTraceClass.traceRepair_trace_preservingdefinition Cloning.InfiniteTraceClass.QuantumChannel.traceRepairtheorem Cloning.InfiniteTraceClass.le_traceRepair_of_nonnegtheorem Cloning.InfiniteTraceClass.norm_traceRepair_sub1import Cloning.InfiniteCompletelyPositive
2
3/-!
4# Completely positive repair of trace loss
5
6A positive scalar functional gives a completely positive replacement map on
7the actual trace-class spaces. Applied to the trace deficit of a completely
8positive, trace-nonincreasing map, this constructs an actual quantum channel.
9No complete-positivity witness for the repair is assumed.
10-/
11
12namespace Cloning.InfiniteTraceClass
13
14noncomputable section
15set_option backward.isDefEq.respectTransparency false
16open scoped ComplexOrder InnerProductSpace BigOperators
17
18variable {H K : Type*}
19 [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
20 [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K]
21variable {ι : Type*} [Fintype ι]
22
23/-- Scalar compression shows that every positive linear functional is
24completely positive, at the level of its scalar-valued block matrices. -/
25theorem BlockPositive.functionalMatrix {A : ι → ι → TraceClass H}
26 (hA : BlockPositive A) (f : TraceClass H →ₗ[ℂ] ℂ)
27 (hf : ∀ T, 0 ≤ T.1 → 0 ≤ f T) (c : ι → ℂ) :
28 0 ≤ ∑ i, ∑ j, star (c i) * c j * f (A i j) := by
29 have h := hf (∑ i, ∑ j, (star (c i) * c j) • A i j) (hA.scalarCompression c)
30 simpa only [map_sum, map_smul, smul_eq_mul] using h
31
32theorem BlockPositive.replacePure_functional {A : ι → ι → TraceClass H}
33 (hA : BlockPositive A) (f : TraceClass H →ₗ[ℂ] ℂ)
34 (hf : ∀ T, 0 ≤ T.1 → 0 ≤ f T) (z : K) :
35 BlockPositive (fun i j => f (A i j) • vectorProjector z) := by
36 intro x
37 convert hA.functionalMatrix f hf (fun i => ⟪z, x i⟫_ℂ) using 1
38 apply Finset.sum_congr rfl
39 intro i hi
40 apply Finset.sum_congr rfl
41 intro j hj
42 change ⟪x i, (f (A i j) • InnerProductSpace.rankOne ℂ z z) (x j)⟫_ℂ = _
43 simp only [ContinuousLinearMap.smul_apply, InnerProductSpace.rankOne_apply,
44 inner_smul_right, ← inner_conj_symm (x i) z]
45 simp only [starRingEnd_apply]
46 ring
47
48/-- Infinite-rank replacement is obtained from the convergent rank-one
49expansion of the positive trace-class output operator. -/
50theorem BlockPositive.replace_functional {A : ι → ι → TraceClass H}
51 (hA : BlockPositive A) (f : TraceClass H →ₗ[ℂ] ℂ)
52 (hf : ∀ T, 0 ≤ T.1 → 0 ≤ f T) (σ : TraceClass K) (hσ : 0 ≤ σ.1) :
53 BlockPositive (fun i j => f (A i j) • σ) := by
54 intro x
55 obtain ⟨w, b, _⟩ := exists_hilbertBasis ℂ K
56 let E := replacementExpectation (fun i j => f (A i j)) x
57 have hs := (positive_rankOne_series hσ σ.2 b).mapL E
58 have hnonneg : ∀ k : w, 0 ≤ E (vectorProjector (CFC.sqrt σ.1 (b k))) := by
59 intro k
60 have h := hA.replacePure_functional f hf (CFC.sqrt σ.1 (b k)) x
61 change 0 ≤ replacementExpectation (fun i j => f (A i j)) x _
62 rw [replacementExpectation_apply]
63 convert h using 1
64 apply Finset.sum_congr rfl
65 intro i hi
66 apply Finset.sum_congr rfl
67 intro j hj
68 change _ = ⟪x i, (f (A i j) •
69 (vectorProjector (CFC.sqrt σ.1 (b k))).1) (x j)⟫_ℂ
70 simp only [ContinuousLinearMap.smul_apply, inner_smul_right]
71 have hsum : 0 ≤ E (TraceClass.ofOperator σ.1 σ.2) := by
72 rw [← hs.tsum_eq]
73 exact tsum_nonneg hnonneg
74 change 0 ≤ E σ at hsum
75 rw [replacementExpectation_apply] at hsum
76 convert hsum using 1
77 apply Finset.sum_congr rfl
78 intro i hi
79 apply Finset.sum_congr rfl
80 intro j hj
81 change ⟪x i, (f (A i j) • σ.1) (x j)⟫_ℂ = _
82 simp only [ContinuousLinearMap.smul_apply, inner_smul_right]
83
84theorem functionalReplacement_completelyPositive (f : TraceClass H →ₗ[ℂ] ℂ)
85 (hf : ∀ T, 0 ≤ T.1 → 0 ≤ f T) (σ : TraceClass K) (hσ : 0 ≤ σ.1) :
86 IsCompletelyPositive (f.smulRight σ) := by
87 intro n A hA
88 exact hA.replace_functional f hf σ hσ
89
90/-- Ordinary positivity follows from complete positivity at ancilla dimension one. -/
91theorem IsCompletelyPositive.map_nonneg {Φ : TraceClass H →ₗ[ℂ] TraceClass K}
92 (hΦ : IsCompletelyPositive Φ) (A : TraceClass H) (hA : 0 ≤ A.1) :
93 0 ≤ (Φ A).1 := by
94 have hblock : BlockPositive (fun _ _ : Fin 1 => A) := by
95 intro x
96 simpa only [Fin.sum_univ_one] using
97 (A.1.nonneg_iff_isPositive.mp hA).inner_nonneg_right (x 0)
98 apply nonneg_of_inner_nonneg
99 intro y
100 simpa only [Fin.sum_univ_one] using hΦ 1 _ hblock (fun _ => y)
101
102theorem IsCompletelyPositive.add {Φ Ψ : TraceClass H →ₗ[ℂ] TraceClass K}
103 (hΦ : IsCompletelyPositive Φ) (hΨ : IsCompletelyPositive Ψ) :
104 IsCompletelyPositive (Φ + Ψ) := by
105 intro n A hA x
106 have h := add_nonneg (hΦ n A hA x) (hΨ n A hA x)
107 convert h using 1
108 simp only [← Finset.sum_add_distrib]
109 apply Finset.sum_congr rfl
110 intro i hi
111 apply Finset.sum_congr rfl
112 intro j hj
113 change ⟪x i, ((Φ (A i j)).1 + (Ψ (A i j)).1) (x j)⟫_ℂ = _
114 simp only [ContinuousLinearMap.add_apply, inner_add_right]
115
116/-- The complex-linear trace deficit, defined on all inputs. -/
117def traceDefect (Φ : TraceClass H →ₗ[ℂ] TraceClass K) : TraceClass H →ₗ[ℂ] ℂ :=
118 traceCLM.toLinearMap - traceCLM.toLinearMap.comp Φ
119
120@[simp] theorem traceDefect_apply (Φ : TraceClass H →ₗ[ℂ] TraceClass K)
121 (A : TraceClass H) : traceDefect Φ A = traceCLM A - traceCLM (Φ A) := rfl
122
123theorem traceDefect_nonneg {Φ : TraceClass H →ₗ[ℂ] TraceClass K}
124 (hΦ : IsCompletelyPositive Φ)
125 (htrace : ∀ A, 0 ≤ A.1 → (traceCLM (Φ A)).re ≤ (traceCLM A).re)
126 (A : TraceClass H) (hA : 0 ≤ A.1) : 0 ≤ traceDefect Φ A := by
127 apply Complex.nonneg_iff.mpr
128 constructor
129 · simpa only [traceDefect_apply, Complex.sub_re] using sub_nonneg.mpr (htrace A hA)
130 · simp only [traceDefect_apply, Complex.sub_im, traceCLM_apply,
131 trace_im_eq_zero hA A.2, trace_im_eq_zero (hΦ.map_nonneg A hA) (Φ A).2,
132 sub_self]
133
134/-- Repair replaces precisely the missing trace in a fixed density state. -/
135def traceRepairLinear (Φ : TraceClass H →ₗ[ℂ] TraceClass K) (σ : DensityState K) :
136 TraceClass H →ₗ[ℂ] TraceClass K :=
137 Φ + (traceDefect Φ).smulRight (TraceClass.ofOperator σ.op σ.traceClass)
138
139@[simp] theorem traceRepairLinear_apply (Φ : TraceClass H →ₗ[ℂ] TraceClass K)
140 (σ : DensityState K) (A : TraceClass H) :
141 traceRepairLinear Φ σ A = Φ A + (traceCLM A - traceCLM (Φ A)) •
142 TraceClass.ofOperator σ.op σ.traceClass := rfl
143
144theorem traceRepair_completelyPositive {Φ : TraceClass H →ₗ[ℂ] TraceClass K}
145 (hΦ : IsCompletelyPositive Φ)
146 (htrace : ∀ A, 0 ≤ A.1 → (traceCLM (Φ A)).re ≤ (traceCLM A).re)
147 (σ : DensityState K) : IsCompletelyPositive (traceRepairLinear Φ σ) :=
148 hΦ.add (functionalReplacement_completelyPositive (traceDefect Φ)
149 (traceDefect_nonneg hΦ htrace) _ σ.positive)
150
151theorem traceRepair_trace_preserving (Φ : TraceClass H →ₗ[ℂ] TraceClass K)
152 (σ : DensityState K) (A : TraceClass H) :
153 traceCLM (traceRepairLinear Φ σ A) = traceCLM A := by
154 rw [traceRepairLinear_apply, map_add, map_smul]
155 have hσ : traceCLM (TraceClass.ofOperator σ.op σ.traceClass) = 1 := σ.trace_one
156 rw [hσ, smul_eq_mul, mul_one]
157 ring
158
159/-- A concrete CPTP completion of every CP trace-nonincreasing map. -/
160def QuantumChannel.traceRepair (Φ : TraceClass H →ₗ[ℂ] TraceClass K)
161 (hΦ : IsCompletelyPositive Φ)
162 (htrace : ∀ A, 0 ≤ A.1 → (traceCLM (Φ A)).re ≤ (traceCLM A).re)
163 (σ : DensityState K) : QuantumChannel H K where
164 toLinearMap := traceRepairLinear Φ σ
165 map_nonneg := (traceRepair_completelyPositive hΦ htrace σ).map_nonneg
166 trace_preserving := traceRepair_trace_preserving Φ σ
167 completelyPositive := traceRepair_completelyPositive hΦ htrace σ
168
169/-- Repair increases the image of every positive input in operator order. -/
170theorem le_traceRepair_of_nonneg {Φ : TraceClass H →ₗ[ℂ] TraceClass K}
171 (hΦ : IsCompletelyPositive Φ)
172 (htrace : ∀ A, 0 ≤ A.1 → (traceCLM (Φ A)).re ≤ (traceCLM A).re)
173 (σ : DensityState K) (A : TraceClass H) (hA : 0 ≤ A.1) :
174 (Φ A).1 ≤ (traceRepairLinear Φ σ A).1 := by
175 change (Φ A).1 ≤ (Φ A).1 + traceDefect Φ A • σ.op
176 exact le_add_of_nonneg_right (smul_nonneg (traceDefect_nonneg hΦ htrace A hA) σ.positive)
177
178/-- The exact trace-norm cost of repair is the lost trace. -/
179theorem norm_traceRepair_sub {Φ : TraceClass H →ₗ[ℂ] TraceClass K}
180 (hΦ : IsCompletelyPositive Φ)
181 (htrace : ∀ A, 0 ≤ A.1 → (traceCLM (Φ A)).re ≤ (traceCLM A).re)
182 (σ : DensityState K) (A : TraceClass H) (hA : 0 ≤ A.1) :
183 ‖traceRepairLinear Φ σ A - Φ A‖ = (traceCLM A).re - (traceCLM (Φ A)).re := by
184 have hσnorm : ‖TraceClass.ofOperator σ.op σ.traceClass‖ = 1 := by
185 rw [TraceClass.norm_eq_trace_re_of_nonneg _ σ.positive]
186 change (trace σ.op σ.traceClass).re = 1
187 rw [σ.trace_one]
188 rfl
189 have hdef : ‖traceDefect Φ A‖ = (traceDefect Φ A).re :=
190 (Complex.re_eq_norm.mpr (traceDefect_nonneg hΦ htrace A hA)).symm
191 change ‖(Φ A + traceDefect Φ A • TraceClass.ofOperator σ.op σ.traceClass) - Φ A‖ = _
192 rw [add_sub_cancel_left, norm_smul, hσnorm, mul_one, hdef, traceDefect_apply,
193 Complex.sub_re]
194
195end
196end Cloning.InfiniteTraceClass