Exact Lean source
ChannelAveraging
formalization/Cloning/ChannelAveraging.lean
Source hash: 773de2d911b36cebc08285976c5402c3270a8434be477ccb18fc49145a9bcf02
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.integral_complex_nonnegtheorem Cloning.InfiniteTraceClass.quantumChannel_family_integrabledefinition Cloning.InfiniteTraceClass.averagedChannelLineartheorem Cloning.InfiniteTraceClass.averagedChannelLinear_applytheorem Cloning.InfiniteTraceClass.averagedChannel_tracetheorem Cloning.InfiniteTraceClass.averagedChannel_completelyPositivedefinition Cloning.InfiniteTraceClass.QuantumChannel.average1import Cloning.InfiniteCompletelyPositive
2import Cloning.InfiniteChannelTraceRepair
3import Cloning.InfiniteChannelCovariance
4import Mathlib.MeasureTheory.Integral.Bochner.ContinuousLinearMap
5
6/-! Probability averages of actual trace-class quantum channels are CPTP.
7Measurability is the only family regularity premise; integrability is derived
8from the proved trace-norm bounds. -/
9
10noncomputable section
11open scoped ComplexOrder InnerProductSpace Topology BigOperators
12open MeasureTheory
13namespace Cloning.InfiniteTraceClass
14set_option backward.isDefEq.respectTransparency false
15set_option maxHeartbeats 1000000
16
17variable {H K Ω : Type*}
18 [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
19 [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K]
20 [MeasurableSpace Ω]
21
22theorem integral_complex_nonneg {μ : Measure Ω} {f : Ω → ℂ}
23 (hf : Integrable f μ) (hpos : ∀ x, 0 ≤ f x) : 0 ≤ ∫ x, f x ∂μ := by
24 apply Complex.nonneg_iff.mpr
25 constructor
26 · change 0 ≤ Complex.reCLM (∫ x, f x ∂μ)
27 rw [← Complex.reCLM.integral_comp_comm hf]
28 exact integral_nonneg fun x => (Complex.nonneg_iff.mp (hpos x)).1
29 · change 0 = Complex.imCLM (∫ x, f x ∂μ)
30 rw [← Complex.imCLM.integral_comp_comm hf]
31 have he : (fun x => (f x).im) = fun _ => (0 : ℝ) :=
32 funext fun x => (Complex.nonneg_iff.mp (hpos x)).2.symm
33 change 0 = (∫ x, (f x).im ∂μ)
34 rw [he, integral_zero]
35
36variable (μ : Measure Ω) [IsProbabilityMeasure μ]
37 (Φ : Ω → QuantumChannel H K)
38 (hmeas : ∀ A : TraceClass H, AEStronglyMeasurable (fun x => (Φ x).toLinearMap A) μ)
39
40include hmeas
41
42theorem quantumChannel_family_integrable (A : TraceClass H) :
43 Integrable (fun x => (Φ x).toLinearMap A) μ := by
44 apply (integrable_const (2 * ‖A‖)).mono' (hmeas A)
45 exact Filter.Eventually.of_forall fun x => (Φ x).toPositiveTracePreservingMap.norm_map_le_two_mul A
46
47def averagedChannelLinear : TraceClass H →ₗ[ℂ] TraceClass K where
48 toFun A := ∫ x, (Φ x).toLinearMap A ∂μ
49 map_add' A B := by
50 simp only [map_add]
51 exact integral_add (quantumChannel_family_integrable μ Φ hmeas A)
52 (quantumChannel_family_integrable μ Φ hmeas B)
53 map_smul' c A := by simp only [map_smul, integral_smul, RingHom.id_apply]
54
55@[simp] theorem averagedChannelLinear_apply (A : TraceClass H) :
56 averagedChannelLinear μ Φ hmeas A = ∫ x, (Φ x).toLinearMap A ∂μ := rfl
57
58theorem averagedChannel_trace (A : TraceClass H) :
59 traceCLM (averagedChannelLinear μ Φ hmeas A) = traceCLM A := by
60 rw [averagedChannelLinear_apply,
61 ← traceCLM.integral_comp_comm (quantumChannel_family_integrable μ Φ hmeas A)]
62 have ht (x : Ω) : traceCLM ((Φ x).toLinearMap A) = traceCLM A :=
63 (Φ x).trace_preserving A
64 simp only [ht, integral_const, probReal_univ, one_smul]
65
66theorem averagedChannel_completelyPositive :
67 IsCompletelyPositive (averagedChannelLinear μ Φ hmeas) := by
68 intro n A hA v
69 let f : Ω → ℂ := fun x => ∑ i : Fin n, ∑ j : Fin n,
70 ⟪v i, ((Φ x).toLinearMap (A i j)).1 (v j)⟫_ℂ
71 have hi (i j : Fin n) : Integrable
72 (fun x => ⟪v i, ((Φ x).toLinearMap (A i j)).1 (v j)⟫_ℂ) μ :=
73 (traceClassMatrixCoefficient (v i) (v j)).integrable_comp
74 (quantumChannel_family_integrable μ Φ hmeas (A i j))
75 have hf : Integrable f μ := by
76 apply integrable_finset_sum
77 intro i hi'
78 exact integrable_finset_sum _ (fun j hj => hi i j)
79 have hp : 0 ≤ ∫ x, f x ∂μ :=
80 integral_complex_nonneg hf (fun x => (Φ x).completelyPositive n A hA v)
81 have he (i j : Fin n) :
82 ⟪v i, (averagedChannelLinear μ Φ hmeas (A i j)).1 (v j)⟫_ℂ =
83 ∫ x, ⟪v i, ((Φ x).toLinearMap (A i j)).1 (v j)⟫_ℂ ∂μ := by
84 exact ((traceClassMatrixCoefficient (v i) (v j)).integral_comp_comm
85 (quantumChannel_family_integrable μ Φ hmeas (A i j))).symm
86 simp_rw [he]
87 have hi' (i : Fin n) : Integrable
88 (fun x => ∑ j : Fin n, ⟪v i, ((Φ x).toLinearMap (A i j)).1 (v j)⟫_ℂ) μ :=
89 integrable_finset_sum _ (fun j hj => hi i j)
90 simpa only [f, integral_finset_sum _ (fun i hi => hi' i),
91 integral_finset_sum _ (fun j hj => hi _ j)] using hp
92
93/-- The Bochner probability average, as an actual completely positive,
94trace-preserving map on every trace-class input. -/
95def QuantumChannel.average : QuantumChannel H K where
96 toLinearMap := averagedChannelLinear μ Φ hmeas
97 map_nonneg := (averagedChannel_completelyPositive μ Φ hmeas).map_nonneg
98 trace_preserving := averagedChannel_trace μ Φ hmeas
99 completelyPositive := averagedChannel_completelyPositive μ Φ hmeas
100
101end Cloning.InfiniteTraceClass