Offline · exact source
Exact Lean source

InfiniteFiniteInstrument

formalization/Cloning/InfiniteFiniteInstrument.lean

Source hash: ba07c089994ee997978aa4444608006c0b15e683fa8b7a0eecc56cd8f641dee8

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.MixedChannelsSectorInstrument
2import Cloning.MixedChannelsFiniteSelector
3import Cloning.HeisenbergDualResidual
4 
5/-! Finite stochastic instruments on the actual trace-class spaces. -/
6noncomputable section
7open scoped BigOperators ComplexOrder InnerProductSpace Classical
8namespace Cloning.InfiniteTraceClass
9set_option backward.isDefEq.respectTransparency false
10variable {H K ι : Type*}
11  [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
12  [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K]
13  [Fintype ι]
14 
15theorem IsCompletelyPositive.fintype_sum
16    (I : ι → TraceClass H →ₗ[ℂ] TraceClass K) (hI : ∀ i, IsCompletelyPositive (I i)) :
17    IsCompletelyPositive (∑ i, I i) := by
18  intro n A hA
19  simpa only [LinearMap.sum_apply] using
20    Cloning.Hybrid.finite_blockPositive_sum (fun i a b ↦ I i (A a b)) (fun i ↦ hI i n A hA)
21 
22/-- A finite complete instrument is a genuine quantum channel on all complex
23trace-class inputs. -/
24def QuantumChannel.ofFiniteInstrument (I : ι → TraceClass H →ₗ[ℂ] TraceClass K)
25    (hI : ∀ i, IsCompletelyPositive (I i))
26    (htrace : ∀ A, ∑ i, traceCLM (I i A) = traceCLM A) : QuantumChannel H K where
27  toLinearMap := ∑ i, I i
28  map_nonneg := (IsCompletelyPositive.fintype_sum I hI).map_nonneg
29  trace_preserving A := by
30    change traceCLM ((∑ i, I i) A) = traceCLM A
31    simpa only [LinearMap.sum_apply, map_sum] using htrace A
32  completelyPositive := IsCompletelyPositive.fintype_sum I hI
33 
34@[simp] theorem QuantumChannel.ofFiniteInstrument_apply
35    (I : ι → TraceClass H →ₗ[ℂ] TraceClass K)
36    (hI : ∀ i, IsCompletelyPositive (I i))
37    (htrace : ∀ A, ∑ i, traceCLM (I i A) = traceCLM A) (A : TraceClass H) :
38    (QuantumChannel.ofFiniteInstrument I hI htrace).toLinearMap A = ∑ i, I i A :=
39  LinearMap.sum_apply _ _ _
40 
41/-- A finite classical probability mixture of genuine channels. -/
42def QuantumChannel.finiteMixture (q : ι → ℝ) (hq : ∀ i, 0 ≤ q i)
43    (hs : ∑ i, q i = 1) (Φ : ι → QuantumChannel H K) : QuantumChannel H K :=
44  QuantumChannel.ofFiniteInstrument (fun i ↦ (q i : ℂ) • (Φ i).toLinearMap)
45    (fun i ↦ (Φ i).completelyPositive.real_smul (hq i)) (by
46      intro A
47      simp only [LinearMap.smul_apply, map_smul, smul_eq_mul]
48      have ht (i : ι) : traceCLM ((Φ i).toLinearMap A) = traceCLM A :=
49        (Φ i).toPositiveTracePreservingMap.trace_preserving A
50      simp_rw [ht]
51      rw [← Finset.sum_mul, ← Complex.ofReal_sum, hs, Complex.ofReal_one, one_mul])
52 
53@[simp] theorem QuantumChannel.finiteMixture_apply (q : ι → ℝ) (hq : ∀ i, 0 ≤ q i)
54    (hs : ∑ i, q i = 1) (Φ : ι → QuantumChannel H K) (A : TraceClass H) :
55    (QuantumChannel.finiteMixture q hq hs Φ).toLinearMap A =
56      ∑ i, (q i : ℂ) • (Φ i).toLinearMap A := by
57  simp [QuantumChannel.finiteMixture]
58 
59variable {E : ι → Type*}
60  [∀ i, NormedAddCommGroup (E i)] [∀ i, InnerProductSpace ℂ (E i)]
61  [∀ i, CompleteSpace (E i)]
62 
63/-- Measure the complete physical orthogonal sector decomposition and apply
64a genuine channel to each measured sector. -/
65def QuantumChannel.ofHilbertSum (V : ∀ i, E i →ₗᵢ[ℂ] H) (hV : IsHilbertSum ℂ E V)
66    (Φ : ∀ i, QuantumChannel (E i) K) : QuantumChannel H K :=
67  QuantumChannel.ofFiniteInstrument (Cloning.Hybrid.sectorInstrumentPart V Φ)
68    (Cloning.Hybrid.sectorInstrumentPart_completelyPositive V Φ)
69    (Cloning.Hybrid.sectorInstrumentPart_trace_sum V hV Φ)
70 
71@[simp] theorem QuantumChannel.ofHilbertSum_apply
72    (V : ∀ i, E i →ₗᵢ[ℂ] H) (hV : IsHilbertSum ℂ E V)
73    (Φ : ∀ i, QuantumChannel (E i) K) (A : TraceClass H) :
74    (QuantumChannel.ofHilbertSum V hV Φ).toLinearMap A =
75      ∑ i, (Φ i).toLinearMap (conjugationLinearMap (V i).toContinuousLinearMap.adjoint A) := by
76  simp [QuantumChannel.ofHilbertSum, Cloning.Hybrid.sectorInstrumentPart]
77 
78end Cloning.InfiniteTraceClass