Offline · exact source
Exact Lean source

MixedChannels

formalization/Cloning/MixedChannels.lean

Source hash: a0dc08b880c6988279f84889e614310455c4cb594d7527cd5af5e92f74405927

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.HybridChannelAveraging
2import Cloning.HybridL1Fidelity
3import Cloning.InfiniteChannelFidelity
4 
5/-! Genuine channels between quantum trace class and classical–quantum L¹.
6The finite-ancilla positivity and trace laws concern every input. -/
7 
8noncomputable section
9open scoped ComplexOrder InnerProductSpace Topology BigOperators
10open MeasureTheory Filter Cloning.InfiniteTraceClass
11namespace Cloning.Hybrid
12set_option backward.isDefEq.respectTransparency false
13 
14variable {Ω H K J : Type*} [MeasurableSpace Ω] {μ : Measure Ω}
15  [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
16  [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K]
17  [NormedAddCommGroup J] [InnerProductSpace ℂ J] [CompleteSpace J]
18 
19/-- A channel from quantum trace class into the actual operator-valued L¹ space. -/
20structure QuantumToHybrid (H K : Type*) [NormedAddCommGroup H] [InnerProductSpace ℂ H]
21    [CompleteSpace H] [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K]
22    (μ : Measure Ω) where
23  map : TraceClass H →L[ℂ] Lp (TraceClass K) 1 μ
24  completelyPositive : ∀ n (A : Fin n → Fin n → TraceClass H),
25    BlockPositive A → L1BlockPositive (fun i j => map (A i j))
26  tracePreserving : ∀ A, integratedTrace (map A) = traceCLM A
27 
28/-- A channel from classical–quantum L¹ into quantum trace class. -/
29structure HybridToQuantum (H K : Type*) [NormedAddCommGroup H] [InnerProductSpace ℂ H]
30    [CompleteSpace H] [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K]
31    (μ : Measure Ω) where
32  map : Lp (TraceClass H) 1 μ →L[ℂ] TraceClass K
33  completelyPositive : ∀ n (A : Fin n → Fin n → Lp (TraceClass H) 1 μ),
34    L1BlockPositive A → BlockPositive (fun i j => map (A i j))
35  tracePreserving : ∀ A, traceCLM (map A) = integratedTrace A
36 
37theorem QuantumToHybrid.map_nonneg (T : QuantumToHybrid H K μ)
38    (A : TraceClass H) (hA : 0 ≤ A.1) : ∀ᵐ y ∂μ, 0 ≤ (T.map A y).1 := by
39  have hi : BlockPositive (fun _ _ : Fin 1 => A) := by
40    intro v
41    simpa only [Fin.sum_univ_one] using
42      (A.1.nonneg_iff_isPositive.mp hA).inner_nonneg_right (v 0)
43  filter_upwards [T.completelyPositive 1 (fun _ _ => A) hi] with y hy
44  apply nonneg_of_inner_nonneg
45  intro v
46  simpa only [Fin.sum_univ_one] using hy (fun _ => v)
47 
48theorem HybridToQuantum.map_nonneg (S : HybridToQuantum H K μ)
49    (A : Lp (TraceClass H) 1 μ) (hA : ∀ᵐ y ∂μ, 0 ≤ (A y).1) :
50    0 ≤ (S.map A).1 := by
51  have hi : L1BlockPositive (fun _ _ : Fin 1 => A) := by
52    filter_upwards [hA] with y hy
53    intro v
54    simpa only [Fin.sum_univ_one] using
55      ((A y).1.nonneg_iff_isPositive.mp hy).inner_nonneg_right (v 0)
56  apply nonneg_of_inner_nonneg
57  intro v
58  simpa only [Fin.sum_univ_one] using
59    S.completelyPositive 1 (fun _ _ => A) hi (fun _ => v)
60 
61def QuantumToHybrid.mapPositive (T : QuantumToHybrid H K μ)
62    (A : PositiveTraceClass H) : PositiveL1 K μ :=
63  ⟨T.map A.1, T.map_nonneg A.1 A.2⟩
64 
65def HybridToQuantum.mapPositive (S : HybridToQuantum H K μ)
66    (A : PositiveL1 H μ) : PositiveTraceClass K :=
67  ⟨S.map A.1, S.map_nonneg A.1 A.2⟩
68 
69theorem QuantumToHybrid.norm_map_of_nonneg (T : QuantumToHybrid H K μ)
70    (A : TraceClass H) (hA : 0 ≤ A.1) : ‖T.map A‖ = ‖A‖ := by
71  rw [norm_L1_eq_trace_re _ (T.map_nonneg A hA), ← integratedTrace_apply,
72    T.tracePreserving, TraceClass.norm_eq_trace_re_of_nonneg A hA]
73  rfl
74 
75theorem HybridToQuantum.norm_map_of_nonneg (S : HybridToQuantum H K μ)
76    (A : Lp (TraceClass H) 1 μ) (hA : ∀ᵐ y ∂μ, 0 ≤ (A y).1) :
77    ‖S.map A‖ = ‖A‖ := by
78  rw [TraceClass.norm_eq_trace_re_of_nonneg _ (S.map_nonneg A hA),
79    norm_L1_eq_trace_re A hA]
80  exact congrArg Complex.re ((S.tracePreserving A).trans (integratedTrace_apply A))
81 
82/-- Exact trace-norm contraction on the self-adjoint quantum part. -/
83theorem QuantumToHybrid.norm_map_le_of_isSelfAdjoint (T : QuantumToHybrid H K μ)
84    (A : TraceClass H) (hA : IsSelfAdjoint A.1) : ‖T.map A‖ ≤ ‖A‖ := by
85  calc
86    ‖T.map A‖ = ‖T.map (TraceClass.positivePart A hA) -
87        T.map (TraceClass.negativePart A hA)‖ := by
88      rw [← map_sub, TraceClass.positivePart_sub_negativePart A hA]
89    _ ≤ ‖T.map (TraceClass.positivePart A hA)‖ +
90        ‖T.map (TraceClass.negativePart A hA)‖ := norm_sub_le _ _
91    _ = ‖TraceClass.positivePart A hA‖ + ‖TraceClass.negativePart A hA‖ := by
92      rw [T.norm_map_of_nonneg _ (TraceClass.positivePart_nonneg A hA),
93        T.norm_map_of_nonneg _ (TraceClass.negativePart_nonneg A hA)]
94    _ = ‖A‖ := TraceClass.norm_positivePart_add_norm_negativePart A hA
95 
96theorem QuantumToHybrid.norm_map_sub_le (T : QuantumToHybrid H K μ)
97    (A B : TraceClass H) (hA : 0 ≤ A.1) (hB : 0 ≤ B.1) :
98    ‖T.map A - T.map B‖ ≤ ‖A - B‖ := by
99  rw [← map_sub]
100  exact T.norm_map_le_of_isSelfAdjoint _
101    ((IsSelfAdjoint.of_nonneg hA).sub (IsSelfAdjoint.of_nonneg hB))
102 
103theorem QuantumToHybrid.norm_le_two (T : QuantumToHybrid H K μ) (A : TraceClass H) :
104    ‖T.map A‖ ≤ 2 * ‖A‖ := by
105  simpa only [mul_one] using norm_map_two_mul_of_positive_bound T.map.toLinearMap
106    (by norm_num : (0 : ℝ) ≤ 1)
107    (fun B hB => le_of_eq ((T.norm_map_of_nonneg B hB).trans (one_mul ‖B‖).symm)) A
108 
109/-- Precomposition with an arbitrary physical quantum competitor. -/
110def QuantumToHybrid.compQuantum (T : QuantumToHybrid K J μ) (M : QuantumChannel H K) :
111    QuantumToHybrid H J μ where
112  map := T.map.comp M.toPositiveTracePreservingMap.toContinuousLinearMap
113  completelyPositive := fun n A hA =>
114    T.completelyPositive n _ (M.completelyPositive n A hA)
115  tracePreserving := fun A => (T.tracePreserving (M.toLinearMap A)).trans
116    (M.toPositiveTracePreservingMap.trace_preserving A)
117 
118/-- The mixed composition acts on all hybrid inputs and is an actual hybrid channel. -/
119def QuantumToHybrid.compHybridToQuantum (T : QuantumToHybrid K J μ)
120    (S : HybridToQuantum H K μ) : Channel H J μ where
121  map := T.map.comp S.map
122  completelyPositive := fun n A hA => T.completelyPositive n _ (S.completelyPositive n A hA)
123  tracePreserving := fun A => by
124    rw [← integratedTrace_apply, ← integratedTrace_apply]
125    exact (T.tracePreserving (S.map A)).trans (S.tracePreserving A)
126 
127/-- Composition in the other direction is a genuine quantum CPTP map. -/
128def HybridToQuantum.compQuantumToHybrid (S : HybridToQuantum K J μ)
129    (T : QuantumToHybrid H K μ) : QuantumChannel H J where
130  toLinearMap := (S.map.comp T.map).toLinearMap
131  map_nonneg := fun A hA => S.map_nonneg _ (T.map_nonneg A hA)
132  trace_preserving := fun A => (S.tracePreserving (T.map A)).trans (T.tracePreserving A)
133  completelyPositive := fun n A hA => S.completelyPositive n _ (T.completelyPositive n A hA)
134 
135@[simp] theorem QuantumToHybrid.compQuantum_apply (T : QuantumToHybrid K J μ)
136    (M : QuantumChannel H K) (A : TraceClass H) :
137    (T.compQuantum M).map A = T.map (M.toLinearMap A) := rfl
138 
139@[simp] theorem QuantumToHybrid.compHybridToQuantum_apply (T : QuantumToHybrid K J μ)
140    (S : HybridToQuantum H K μ) (A : Lp (TraceClass H) 1 μ) :
141    (T.compHybridToQuantum S).map A = T.map (S.map A) := rfl
142 
143@[simp] theorem HybridToQuantum.compQuantumToHybrid_apply (S : HybridToQuantum K J μ)
144    (T : QuantumToHybrid H K μ) (A : TraceClass H) :
145    (S.compQuantumToHybrid T).toLinearMap A = S.map (T.map A) := rfl
146 
147end Cloning.Hybrid