Offline · exact source
Exact Lean source

PCTRankGlobalChannel

formalization/Cloning/PCTRankGlobalChannel.lean

Source hash: 10f5132cb53360a1ab9a5e8b1cf773af89cc8760d835caef9ed93e5bd45e1298

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.PCTRankGlobalPhysical
2import Cloning.PCTRankPurificationNormalization
3import Cloning.MatrixLiftedCPTPKraus
4 
5/-! The rank-adapted purify--clone--trace protocol as one state-independent CPTP map. -/
6noncomputable section
7open scoped BigOperators Matrix InnerProductSpace ComplexOrder Topology
8open Cloning.InfiniteTraceClass Cloning.PCT Cloning.PCTPurificationChannel
9open Cloning.GeneralSymmetricOccupation Cloning.InfiniteFiniteCorner MeasureTheory
10namespace Cloning.PCTRankGlobal
11set_option maxHeartbeats 1000000
12set_option backward.isDefEq.respectTransparency false
13set_option linter.unusedSectionVars false
14variable {A B : Type*} [Fintype A] [DecidableEq A] [Nonempty A]
15  [Fintype B] [DecidableEq B] [Nonempty B]
16 
17/-- The actual Haar-moment purifier, lifted to all trace-class inputs. -/
18def purificationChannel (n : ℕ) (J : Matrix A B ℂ)
19    (b0 : (Fin n → A) × (Fin n → B)) :
20    QuantumChannel (Register (Fin n → A)) (Register ((Fin n → A) × (Fin n → B))) :=
21  MatrixLiftedCPTP.registerChannel (PCTRankPurification.rankPurificationChannel n J b0)
22 
23theorem purificationChannel_matrix (n : ℕ) (J : Matrix A B ℂ)
24    (b0 : (Fin n → A) × (Fin n → B)) (X : Matrix (Fin n → A) (Fin n → A) ℂ) :
25    (purificationChannel n J b0).toLinearMap (registerLiftCLM X) =
26      registerLiftCLM ((PCTRankPurification.rankPurificationChannel n J b0).toFun X) :=
27  MatrixLiftedCPTP.registerChannel_matrix _ _
28 
29/-- The environment dimension and all three stages are fixed before an input is supplied. -/
30def channel {s : ℕ} (hcard : Fintype.card (A × B) = s+1)
31    (n r : ℕ) (J : Matrix A B ℂ) (b0 : (Fin n → A) × (Fin n → B)) :
32    QuantumChannel (Register (Fin n → A)) (Register (Fin (n+r) → A)) :=
33  (downstream hcard n r).comp (purificationChannel n J b0)
34 
35theorem channel_matrix {s : ℕ} (hcard : Fintype.card (A × B) = s+1)
36    (n r : ℕ) (J : Matrix A B ℂ) (b0 : (Fin n → A) × (Fin n → B))
37    (X : Matrix (Fin n → A) (Fin n → A) ℂ) :
38    (channel hcard n r J b0).toLinearMap (registerLiftCLM X) =
39      (downstream hcard n r).toLinearMap
40        (registerLiftCLM ((PCTRankPurification.rankPurificationChannel n J b0).toFun X)) := by
41  change (downstream hcard n r).toLinearMap
42    ((purificationChannel n J b0).toLinearMap (registerLiftCLM X)) = _
43  rw [purificationChannel_matrix]
44 
45/-- Environment randomization disappears after the actual downstream channel. -/
46theorem downstream_randomized {s : ℕ} (hcard : Fintype.card (A × B) = s+1)
47    (n r : ℕ) (ψ : Register (A × B)) (hψ : ‖ψ‖=1)
48    {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ]
49    (W : Ω → Register B →ₗᵢ[ℂ] Register B)
50    (hint : Integrable (fun t => tensorProjector n (environmentRotate (W t) ψ)) μ) :
51    (downstream hcard n r).toLinearMap
52      (∫ t, tensorProjector n (environmentRotate (W t) ψ) ∂μ) =
53      reducedWernerOutput hcard ψ hψ (inputSlots n (n+r) (Nat.le_add_right n r)) := by
54  let Φ := (downstream hcard n r).toPositiveTracePreservingMap.toContinuousLinearMap
55  change Φ (∫ t, tensorProjector n (environmentRotate (W t) ψ) ∂μ) = _
56  rw [← Φ.integral_comp_comm hint]
57  have he (t : Ω) : Φ (tensorProjector n (environmentRotate (W t) ψ)) =
58      reducedWernerOutput hcard ψ hψ (inputSlots n (n+r) (Nat.le_add_right n r)) := by
59    change (downstream hcard n r).toLinearMap (tensorProjector n (environmentRotate (W t) ψ)) = _
60    rw [downstream_tensorProjector hcard n r _ ((environmentRotate_norm (W t) ψ).trans hψ)]
61    exact reducedWernerOutput_environment_invariant hcard ψ hψ (W t) _
62  simp_rw [he]
63  simp
64 
65end Cloning.PCTRankGlobal