Offline · exact source
Exact Lean source

MixedChannelsFidelity

formalization/Cloning/MixedChannelsFidelity.lean

Source hash: e25249bc4da7ab25ac24f970102e50f8a3eb53c61eb9f019b20efb75c0a4a38d

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.MixedChannels
2 
3/-! Quantum-to-hybrid fidelity data processing from a single attained
4quantum block witness. No pointwise optimizer or measurable selection is assumed. -/
5 
6noncomputable section
7open scoped ComplexOrder InnerProductSpace Topology BigOperators
8open MeasureTheory Filter Cloning.InfiniteTraceClass Cloning.InfiniteFidelity
9namespace Cloning.Hybrid
10set_option backward.isDefEq.respectTransparency false
11 
12variable {Ω H K : Type*} [MeasurableSpace Ω] {μ : Measure Ω}
13  [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
14  [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K]
15 
16theorem QuantumToHybrid.map_isSelfAdjoint (T : QuantumToHybrid H K μ)
17    (A : TraceClass H) (hA : IsSelfAdjoint A.1) :
18    ∀ᵐ y ∂μ, IsSelfAdjoint (T.map A y).1 := by
19  have hd : T.map A = T.map (TraceClass.positivePart A hA) -
20      T.map (TraceClass.negativePart A hA) := by
21    rw [← map_sub, TraceClass.positivePart_sub_negativePart]
22  rw [hd]
23  filter_upwards [T.map_nonneg _ (TraceClass.positivePart_nonneg A hA),
24    T.map_nonneg _ (TraceClass.negativePart_nonneg A hA),
25    Lp.coeFn_sub (T.map (TraceClass.positivePart A hA))
26      (T.map (TraceClass.negativePart A hA))] with y hp hn he
27  rw [he]
28  exact (IsSelfAdjoint.of_nonneg hp).sub (IsSelfAdjoint.of_nonneg hn)
29 
30/-- Positivity and complex linearity force pointwise adjoint preservation a.e. -/
31theorem QuantumToHybrid.map_adjoint (T : QuantumToHybrid H K μ) (A : TraceClass H) :
32    ∀ᵐ y ∂μ, T.map (TraceClass.adjoint A) y = TraceClass.adjoint (T.map A y) := by
33  let R := T.map (TraceClass.realComponent A)
34  let I := T.map (TraceClass.imaginaryComponent A)
35  have hsum : T.map A = R + Complex.I • I := by
36    dsimp only [R, I]
37    rw [← map_smul, ← map_add, TraceClass.realComponent_add_I_smul_imaginaryComponent]
38  have hsub : T.map (TraceClass.adjoint A) = R - Complex.I • I := by
39    dsimp only [R, I]
40    rw [← map_smul, ← map_sub, TraceClass.realComponent_sub_I_smul_imaginaryComponent]
41  rw [hsum, hsub]
42  filter_upwards [T.map_isSelfAdjoint _ (TraceClass.realComponent_isSelfAdjoint A),
43    T.map_isSelfAdjoint _ (TraceClass.imaginaryComponent_isSelfAdjoint A),
44    Lp.coeFn_add R (Complex.I • I), Lp.coeFn_sub R (Complex.I • I),
45    Lp.coeFn_smul Complex.I I] with y hr hi hadd hsub hsmul
46  simp only [hadd, hsub, hsmul, Pi.add_apply, Pi.sub_apply, Pi.smul_apply]
47  apply Subtype.ext
48  change (R y).1 - Complex.I • (I y).1 = star ((R y).1 + Complex.I • (I y).1)
49  rw [star_add, star_smul, hr, hi]
50  simp [sub_eq_add_neg, R, I]
51 
52theorem QuantumToHybrid.fidelityBlock (T : QuantumToHybrid H K μ) (A B X : TraceClass H)
53    (hblock : BlockPositive (InfiniteFidelity.fidelityBlock A B X)) :
54    ∀ᵐ y ∂μ, BlockPositive
55      (InfiniteFidelity.fidelityBlock (T.map A y) (T.map B y) (T.map X y)) := by
56  filter_upwards [T.completelyPositive 2 _ hblock, T.map_adjoint X] with y hp ha
57  have he : InfiniteFidelity.fidelityBlock (T.map A y) (T.map B y) (T.map X y) =
58      fun i j => T.map (InfiniteFidelity.fidelityBlock A B X i j) y := by
59    funext i j
60    dsimp only [InfiniteFidelity.fidelityBlock]
61    split_ifs <;> try rfl
62    exact ha.symm
63  rwa [he]
64 
65/-- Quantum root fidelity cannot decrease under a genuine quantum-to-hybrid channel. -/
66theorem QuantumToHybrid.fidelity_data_processing (T : QuantumToHybrid H K μ)
67    (A B : PositiveTraceClass H) :
68    A.rootFidelity B ≤ (T.mapPositive A).rootFidelity (T.mapPositive B) := by
69  obtain ⟨X, hblock, htrace⟩ := exists_fidelityBlock_witness A.1 B.1 A.2 B.2
70  have hTX : Integrable (fun y => (traceCLM (T.map X y)).re) μ :=
71    Complex.reCLM.integrable_comp (traceCLM.integrable_comp (L1.integrable_coeFn (T.map X)))
72  have ht : (traceCLM X).re = ∫ y, (traceCLM (T.map X y)).re ∂μ := by
73    calc
74      _ = (∫ y, traceCLM (T.map X y) ∂μ).re := by
75        rw [← integratedTrace_apply, T.tracePreserving]
76      _ = _ := (Complex.reCLM.integral_comp_comm
77        (traceCLM.integrable_comp (L1.integrable_coeFn (T.map X)))).symm
78  change InfiniteFidelity.fidelity A.1.1 B.1.1 A.2 B.2 A.1.2 B.1.2 ≤ _
79  rw [← htrace, ht, PositiveL1.rootFidelity_eq_integral]
80  apply integral_mono_ae hTX ((T.mapPositive A).integrable_rootFidelity (T.mapPositive B))
81  filter_upwards [T.map_nonneg A.1 A.2, T.map_nonneg B.1 B.2,
82    T.fidelityBlock A.1 B.1 X hblock] with y hA hB hp
83  change (traceCLM (T.map X y)).re ≤ extendedRootFidelity (T.map A.1 y, T.map B.1 y)
84  rw [extendedRootFidelity_eq _ _ hA hB]
85  exact trace_re_le_fidelity_of_block _ _ _ hA hB (fidelityBlock_quadratic _ _ _ hp)
86 
87end Cloning.Hybrid