Offline · exact source
Exact Lean source

PCTGlobalRecovery

formalization/Cloning/PCTGlobalRecovery.lean

Source hash: b4e5c16577b9bf0b0764595e9bfdab4c0ddd5394ac04aaba7b5a155cd2dfdbc9

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.PCTGlobalChannels
2 
3/-! Symmetric occupation recovery is exact on every Haar purification output,
4including nonpositive inputs. -/
5noncomputable section
6open scoped BigOperators Matrix InnerProductSpace ComplexOrder
7open Cloning.InfiniteTraceClass Cloning.PCT Cloning.PCTPurificationChannel
8open Cloning.GeneralSymmetricOccupation Cloning.InfiniteFiniteCorner
9 
10namespace Cloning.PCTGlobal
11set_option maxHeartbeats 700000
12set_option backward.isDefEq.respectTransparency false
13set_option linter.unusedSectionVars false
14variable {A : Type*} [Fintype A] [DecidableEq A] [Nonempty A]
15local instance registerFiniteDimensionalRecovery (I : Type*) [Fintype I] [DecidableEq I] :
16    FiniteDimensional ℂ (Register I) :=
17  (registerBasis I).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
18 
19theorem registerLiftCLM_matrixOf {I : Type*} [Fintype I] [DecidableEq I]
20    (T : TraceClass (Register I)) :
21    registerLiftCLM (matrixOf (registerBasis I) T.1) = T :=
22  Subtype.ext (PurificationSupport.ofMatrix_matrixOf_register T.1)
23 
24theorem purification_projection_support (n : ℕ)
25    (X : Matrix (Fin n → A) (Fin n → A) ℂ) :
26    conjugationLinearMap (PurificationSupport.groupedSymmetric (A := A) n).starProjection
27      (registerLiftCLM ((haarPurificationChannel n).toFun X)) =
28        registerLiftCLM ((haarPurificationChannel n).toFun X) := by
29  have hP : FiniteKrausLift.matrixRegister (PurificationSupport.symmetricMatrix (A := A) n) =
30      (PurificationSupport.groupedSymmetric (A := A) n).starProjection := by
31    rw [← FiniteKrausLift.registerLiftCLM_operator]
32    exact PurificationSupport.ofMatrix_symmetricMatrix n
33  rw [← hP, FiniteKrausLift.conjugation_matrixRegister,
34    PurificationSupport.symmetricMatrix_conjTranspose,
35    PurificationSupport.haarPurificationChannel_supported]
36 
37theorem conjugation_comp {H K L : Type*}
38    [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
39    [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K]
40    [NormedAddCommGroup L] [InnerProductSpace ℂ L] [CompleteSpace L]
41    (V : K →L[ℂ] L) (W : H →L[ℂ] K) (T : TraceClass H) :
42    conjugationLinearMap V (conjugationLinearMap W T) = conjugationLinearMap (V.comp W) T := by
43  apply Subtype.ext
44  ext x
45  simp only [conjugationLinearMap_coe, operatorConjugation_apply,
46    ContinuousLinearMap.adjoint_comp, ContinuousLinearMap.comp_apply]
47 
48/-- Adjoint compression followed by embedding exactly preserves every
49purification output; the arbitrary complex input is unrestricted. -/
50theorem purification_compression_embedding {s : ℕ}
51    (u : OrthonormalBasis (Fin (s + 1)) ℂ (Register (A × A))) (n : ℕ)
52    (X : Matrix (Fin n → A) (Fin n → A) ℂ) :
53    conjugationLinearMap (groupedEmbedding u n).toContinuousLinearMap
54      (conjugationLinearMap (groupedEmbedding u n).toContinuousLinearMap.adjoint
55        (registerLiftCLM ((haarPurificationChannel n).toFun X))) =
56      registerLiftCLM ((haarPurificationChannel n).toFun X) := by
57  rw [conjugation_comp, groupedEmbedding_projection, purification_projection_support]
58 
59/-- The replacement term in the global recovery channel is exactly zero
60on every output of the fixed Haar purification channel. -/
61theorem sectorRecovery_purification {s : ℕ}
62    (u : OrthonormalBasis (Fin (s + 1)) ℂ (Register (A × A))) (n : ℕ)
63    (X : Matrix (Fin n → A) (Fin n → A) ℂ) :
64    (sectorRecovery u n).toLinearMap
65      (registerLiftCLM ((haarPurificationChannel n).toFun X)) =
66      conjugationLinearMap (groupedEmbedding u n).toContinuousLinearMap.adjoint
67        (registerLiftCLM ((haarPurificationChannel n).toFun X)) := by
68  have ht := congrArg traceCLM (purification_compression_embedding u n X)
69  rw [conjugationLinearMap_isometry_trace] at ht
70  rw [sectorRecovery, QuantumChannel.isometricRecovery_apply, ht, sub_self,
71    zero_smul, add_zero]
72 
73theorem sectorRecovery_purification_embedding {s : ℕ}
74    (u : OrthonormalBasis (Fin (s + 1)) ℂ (Register (A × A))) (n : ℕ)
75    (X : Matrix (Fin n → A) (Fin n → A) ℂ) :
76    conjugationLinearMap (groupedEmbedding u n).toContinuousLinearMap
77      ((sectorRecovery u n).toLinearMap
78        (registerLiftCLM ((haarPurificationChannel n).toFun X))) =
79      registerLiftCLM ((haarPurificationChannel n).toFun X) := by
80  rw [sectorRecovery_purification, purification_compression_embedding]
81 
82/-- Every trace-class input is covered, since the finite register matrix
83coordinates reconstruct its operator exactly. -/
84theorem sectorRecovery_purification_all {s : ℕ}
85    (u : OrthonormalBasis (Fin (s + 1)) ℂ (Register (A × A))) (n : ℕ)
86    (T : TraceClass (Register (Fin n → A))) :
87    (QuantumChannel.ofIsometry (groupedEmbedding u n)).toLinearMap
88      ((sectorRecovery u n).toLinearMap ((purificationChannel n).toLinearMap T)) =
89        (purificationChannel n).toLinearMap T := by
90  obtain ⟨X, rfl⟩ : ∃ X : Matrix (Fin n → A) (Fin n → A) ℂ,
91      registerLiftCLM X = T := ⟨matrixOf (registerBasis _) T.1, registerLiftCLM_matrixOf T⟩
92  rw [purificationChannel_apply]
93  exact sectorRecovery_purification_embedding u n X
94 
95/-- A completely positive trace-preserving full PCT protocol, independent
96of the unknown density input. -/
97def channelInFrame {s : ℕ}
98    (u : OrthonormalBasis (Fin (s + 1)) ℂ (Register (A × A))) (n r : ℕ) :
99    QuantumChannel (Register (Fin n → A)) (Register (Fin (n + r) → A)) :=
100  partialTraceChannel.comp ((QuantumChannel.ofIsometry (regroup (n + r))).comp
101    ((QuantumChannel.ofIsometry (physicalEmbedding u (n + r))).comp
102      ((sectorChannel n r s).comp ((sectorRecovery u n).comp (purificationChannel n)))))
103 
104end Cloning.PCTGlobal