Exact Lean source
PCTPurificationChannelPhysical
formalization/Cloning/PCTPurificationChannelPhysical.lean
Source hash: 0eea1e3979b3325d57471d53a6f173d5180b7ceac4bf1ff192d32e9f14a6c96c
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
definition
Cloning.PCTPurificationChannel.unitaryColumntheorem Cloning.PCTPurificationChannel.unitaryColumn_orthonormaldefinition Cloning.PCTPurificationChannel.unitaryRegistertheorem Cloning.PCTPurificationChannel.unitaryRegister_applydefinition Cloning.PCTPurificationChannel.purificationEnvironmentdefinition Cloning.PCTPurificationChannel.canonicalPurificationdefinition Cloning.PCTPurificationChannel.physicalPurificationtheorem Cloning.PCTPurificationChannel.physicalPurification_eq_environmentRotatetheorem Cloning.PCTPurificationChannel.canonicalPurification_reducedtheorem Cloning.PCTPurificationChannel.trace_reducedDensityMatrixtheorem Cloning.PCTPurificationChannel.canonicalPurification_normtheorem Cloning.PCTPurificationChannel.physicalPurification_normdefinition Cloning.PCTPurificationChannel.registerLiftCLMtheorem Cloning.PCTPurificationChannel.registerLiftCLM_coefficienttheorem Cloning.PCTPurificationChannel.registerLiftCLM_rankOnetheorem Cloning.PCTPurificationChannel.registerLiftCLM_entangledMomenttheorem Cloning.PCTPurificationChannel.haarPurificationChannel_physicaltheorem Cloning.PCTPurificationChannel.haarPurification_physical_integrabledefinition Cloning.PCTPurificationChannel.slotInsertiondefinition Cloning.PCTPurificationChannel.slotInsertionCLMtheorem Cloning.PCTPurificationChannel.slotInsertion_entangledMomentdefinition Cloning.PCTPurificationChannel.physicalCloneTraceCLMtheorem Cloning.PCTPurificationChannel.physicalCloneTraceCLM_purificationtheorem Cloning.PCTPurificationChannel.physical_pct_eq_reducedWernertheorem Cloning.PCTPurificationChannel.physical_pct_gaussian_product_mixture1import Cloning.PCTPurificationChannelAction
2import Cloning.PCTReducedGaussian
3import Mathlib.Analysis.Normed.Lp.LpEquiv
4
5/-!
6# Register realization of the random-purification channel
7
8This identifies the finite-matrix Haar output with the trace-class mixture of
9literal purification tensor powers. The environment action is explicitly the
10transpose unitary, so the matrix and register conventions agree pointwise.
11-/
12
13noncomputable section
14open scoped BigOperators Matrix MatrixOrder ComplexOrder InnerProductSpace Matrix.Norms.L2Operator Topology
15open Matrix MeasureTheory Filter Cloning.InfiniteTraceClass
16
17namespace Cloning.PCTPurificationChannel
18
19open Cloning.PCT Cloning.PCTReducedGaussian
20
21set_option maxHeartbeats 200000
22set_option backward.isDefEq.respectTransparency false
23set_option linter.unusedSectionVars false
24
25variable {A : Type*} [Fintype A] [DecidableEq A] [Nonempty A]
26
27local instance physicalRegisterFiniteDimensional (I : Type*) [Fintype I] [DecidableEq I] :
28 FiniteDimensional ℂ (Register I) :=
29 (registerBasis I).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
30
31def unitaryColumn (U : unitary (Matrix A A ℂ)) (b : A) : Register A :=
32 ⟨fun a => (U : Matrix A A ℂ) a b, memℓp_gen (by
33 simp only [ENNReal.toReal_ofNat]; exact (hasSum_fintype _).summable)⟩
34
35theorem unitaryColumn_orthonormal (U : unitary (Matrix A A ℂ)) :
36 Orthonormal ℂ (unitaryColumn U) := by
37 rw [orthonormal_iff_ite]
38 intro a b
39 have hU : (U : Matrix A A ℂ)ᴴ * U = 1 := Unitary.star_mul_self_of_mem U.property
40 have h := congrArg (fun M => M a b) hU
41 simpa only [lp.inner_eq_tsum, tsum_fintype, RCLike.inner_apply, unitaryColumn,
42 Matrix.mul_apply, Matrix.conjTranspose_apply, Matrix.one_apply, starRingEnd_apply, mul_comm] using h
43
44/-- Actual matrix action on the finite physical Hilbert register. -/
45def unitaryRegister (U : unitary (Matrix A A ℂ)) : Register A →ₗᵢ[ℂ] Register A :=
46 (unitaryColumn_orthonormal U).orthogonalFamily.linearIsometry
47
48theorem unitaryRegister_apply (U : unitary (Matrix A A ℂ)) (x : Register A) (a : A) :
49 unitaryRegister U x a = ∑ b, (U : Matrix A A ℂ) a b * x b := by
50 rw [unitaryRegister, OrthogonalFamily.linearIsometry_apply, tsum_fintype]
51 simp [unitaryColumn, mul_comm]
52
53/-- The transpose is the environment action associated with right matrix
54multiplication of a bipartite coefficient matrix. -/
55def purificationEnvironment (U : unitary (Matrix A A ℂ)) : Register A →ₗᵢ[ℂ] Register A :=
56 unitaryRegister (Matrix.UnitaryGroup.transpose U)
57
58def canonicalPurification (ρ : Matrix A A ℂ) : Register (A × A) :=
59 coefficientVector (CFC.sqrt ρ)
60
61def physicalPurification (ρ : Matrix A A ℂ) (U : unitary (Matrix A A ℂ)) : Register (A × A) :=
62 coefficientVector (purificationCoefficients ρ U)
63
64theorem physicalPurification_eq_environmentRotate (ρ : Matrix A A ℂ)
65 (U : unitary (Matrix A A ℂ)) :
66 physicalPurification ρ U = environmentRotate (purificationEnvironment U)
67 (canonicalPurification ρ) := by
68 ext ⟨a, b⟩
69 simp only [physicalPurification, coefficientVector_apply, purificationCoefficients,
70 Matrix.mul_apply, environmentRotate_apply, purificationEnvironment,
71 unitaryRegister_apply,
72 environmentRow_apply, canonicalPurification, Matrix.UnitaryGroup.transpose, Matrix.transpose_apply]
73 apply Finset.sum_congr rfl
74 intro c _
75 exact mul_comm _ _
76
77theorem canonicalPurification_reduced (ρ : Matrix A A ℂ) (hρ : ρ.PosSemidef) :
78 reducedDensityMatrix (canonicalPurification ρ) = ρ := by
79 rw [canonicalPurification, reducedDensityMatrix_coefficientVector,
80 Cloning.MatrixFidelity.sqrt_conjTranspose, Cloning.MatrixFidelity.sqrt_mul_self hρ]
81
82theorem trace_reducedDensityMatrix (ψ : Register (A × A)) :
83 (Matrix.trace (reducedDensityMatrix ψ)).re = ‖ψ‖ ^ 2 := by
84 have h := lp.norm_rpow_eq_tsum (by norm_num : 0 < (2 : ENNReal).toReal) ψ
85 simp only [ENNReal.toReal_ofNat, Real.rpow_two, tsum_fintype] at h
86 rw [h]
87 simp only [Matrix.trace, Matrix.diag, reducedDensityMatrix, Complex.re_sum,
88 Fintype.sum_prod_type, Complex.star_def, Complex.mul_conj, Complex.ofReal_re,
89 Complex.normSq_eq_norm_sq]
90
91theorem canonicalPurification_norm (ρ : Cloning.MatrixFidelity.State A) :
92 ‖canonicalPurification ρ.matrix‖ = 1 := by
93 have h := trace_reducedDensityMatrix (canonicalPurification ρ.matrix)
94 rw [canonicalPurification_reduced _ ρ.positive, ρ.trace_one] at h
95 norm_num at h
96 nlinarith [norm_nonneg (canonicalPurification ρ.matrix)]
97
98theorem physicalPurification_norm (ρ : Cloning.MatrixFidelity.State A)
99 (U : unitary (Matrix A A ℂ)) : ‖physicalPurification ρ.matrix U‖ = 1 := by
100 rw [physicalPurification_eq_environmentRotate, environmentRotate_norm,
101 canonicalPurification_norm]
102
103/-- Computational matrices embedded into the actual trace-class Banach space. -/
104def registerLiftCLM {I : Type*} [Fintype I] [DecidableEq I] :
105 Matrix I I ℂ →L[ℂ] TraceClass (Register I) :=
106 LinearMap.toContinuousLinearMap
107 { toFun := InfiniteFiniteCorner.matrixLift (registerBasis I)
108 map_add' := by intros; simp [InfiniteFiniteCorner.matrixLift, add_smul, Finset.sum_add_distrib]
109 map_smul' := by intros; simp [InfiniteFiniteCorner.matrixLift, Finset.smul_sum, smul_smul] }
110
111theorem registerLiftCLM_coefficient {I : Type*} [Fintype I] [DecidableEq I]
112 (M : Matrix I I ℂ) (a c : I) :
113 (registerLiftCLM M).1 (lp.single 2 c 1) a = M a c := by
114 have he := InfiniteFiniteCorner.matrixOf_ofMatrix (registerBasis I).orthonormal M
115 have h := congrArg (fun N => N a c) he
116 simpa only [InfiniteFiniteCorner.matrixOf, registerBasis_apply, register_inner_single,
117 registerLiftCLM, LinearMap.coe_toContinuousLinearMap', InfiniteFiniteCorner.ofMatrix] using h
118
119theorem registerLiftCLM_rankOne {I : Type*} [Fintype I] [DecidableEq I]
120 (x : Register I) :
121 registerLiftCLM (fun a c => x a * star (x c)) = vectorProjector x := by
122 apply Subtype.ext
123 apply register_operator_ext
124 intro a c
125 rw [registerLiftCLM_coefficient]
126 simp only [vectorProjector, TraceClass.ofOperator_coe, InnerProductSpace.rankOne_apply,
127 lp.inner_single_right, RCLike.inner_apply, one_mul, lp.coeFn_smul,
128 Pi.smul_apply, smul_eq_mul]
129 exact mul_comm _ _
130
131theorem registerLiftCLM_entangledMoment (n : ℕ) (ρ : Matrix A A ℂ)
132 (U : unitary (Matrix A A ℂ)) :
133 registerLiftCLM (entangledMoment n (purificationCoefficients ρ U)) =
134 vectorProjector (regroup n (tensorVector (fun _ : Fin n => physicalPurification ρ U))) := by
135 rw [← registerLiftCLM_rankOne]
136 congr 1
137 ext ⟨a, b⟩ ⟨c, d⟩
138 simp only [entangledMoment, entangledTensor, tensorPower, regroup_apply, tensorVector,
139 physicalPurification, coefficientVector_apply]
140
141/-- The matrix channel's output is exactly the physical trace-class Haar
142mixture used by PCT, with the transpose convention made explicit. -/
143theorem haarPurificationChannel_physical (n : ℕ) (ρ : Matrix A A ℂ)
144 (hρ : ρ.PosSemidef) :
145 registerLiftCLM ((haarPurificationChannel (A := A) n).toFun (tensorPower n ρ)) =
146 ∫ U : unitary (Matrix A A ℂ), vectorProjector
147 (regroup n (tensorVector (fun _ : Fin n =>
148 environmentRotate (purificationEnvironment U) (canonicalPurification ρ))))
149 ∂unitaryHaar := by
150 rw [haarPurificationChannel_tensorPower n ρ hρ,
151 ← ContinuousLinearMap.integral_comp_comm _ (integrable_purification_tensor n ρ)]
152 apply integral_congr_ae
153 apply Filter.Eventually.of_forall
154 intro U
155 change registerLiftCLM (entangledMoment n (purificationCoefficients ρ U)) = _
156 rw [registerLiftCLM_entangledMoment, physicalPurification_eq_environmentRotate]
157
158theorem haarPurification_physical_integrable (n : ℕ) (ρ : Matrix A A ℂ) :
159 Integrable (fun U : unitary (Matrix A A ℂ) => vectorProjector
160 (regroup n (tensorVector (fun _ : Fin n => physicalPurification ρ U)))) unitaryHaar := by
161 have h := registerLiftCLM.integrable_comp (integrable_purification_tensor n ρ)
162 simpa only [registerLiftCLM_entangledMoment] using h
163
164/-- Identity-ancilla insertion from the grouped purification input into the
165first `n` physical slots. -/
166def slotInsertion (n r : ℕ)
167 (X : Matrix ((Fin n → A) × (Fin n → A)) ((Fin n → A) × (Fin n → A)) ℂ) :
168 Matrix (Fin (n + r) → A × A) (Fin (n + r) → A × A) ℂ :=
169 fun a c => X
170 ((fun i => (a (Fin.castAdd r i)).1), (fun i => (a (Fin.castAdd r i)).2))
171 ((fun i => (c (Fin.castAdd r i)).1), (fun i => (c (Fin.castAdd r i)).2)) *
172 ∏ j : Fin r, if a (Fin.natAdd n j) = c (Fin.natAdd n j) then 1 else 0
173
174def slotInsertionCLM (n r : ℕ) :
175 Matrix ((Fin n → A) × (Fin n → A)) ((Fin n → A) × (Fin n → A)) ℂ →L[ℂ]
176 Matrix (Fin (n + r) → A × A) (Fin (n + r) → A × A) ℂ :=
177 LinearMap.toContinuousLinearMap
178 { toFun := slotInsertion n r
179 map_add' := by intros; ext a c; simp [slotInsertion, add_mul]
180 map_smul' := by intros; ext a c; simp [slotInsertion, mul_assoc] }
181
182theorem slotInsertion_entangledMoment (n r : ℕ) (M : Matrix A A ℂ) :
183 slotInsertion n r (entangledMoment n M) =
184 pureSlotsMatrix (coefficientVector M)
185 (GeneralSymmetricOccupation.inputSlots n (n + r) (Nat.le_add_right n r)) := by
186 ext a c
187 rw [pureSlotsMatrix, Fin.prod_univ_add]
188 simp only [GeneralSymmetricOccupation.mem_inputSlots, Fin.val_castAdd, Fin.isLt,
189 if_true, coefficientVector, Fin.val_natAdd, not_lt_of_ge (Nat.le_add_right n _),
190 if_false, slotInsertion, entangledMoment, entangledTensor, tensorPower,
191 star_prod, Finset.prod_mul_distrib]
192
193/-- Werner's literal symmetric sandwich followed by the physical partial
194trace, as a continuous linear map of the finite input matrix. -/
195def physicalCloneTraceCLM (n r s : ℕ) :
196 Matrix ((Fin n → A) × (Fin n → A)) ((Fin n → A) × (Fin n → A)) ℂ →L[ℂ]
197 TraceClass (Register (Fin (n + r) → A)) :=
198 LinearMap.toContinuousLinearMap
199 (partialTraceChannel.toLinearMap.comp
200 ((QuantumChannel.ofIsometry (regroup (n + r))).toLinearMap.comp
201 (((((n + s).choose s : ℝ) / ((n + r + s).choose s : ℝ) : ℝ) : ℂ) •
202 (conjugationLinearMap (physicalProjector (C := A × A) (n + r))).comp
203 (registerLiftCLM.toLinearMap.comp (slotInsertionCLM n r).toLinearMap))))
204
205theorem physicalCloneTraceCLM_purification (n r s : ℕ)
206 (hcard : Fintype.card (A × A) = s + 1) (ρ : Cloning.MatrixFidelity.State A)
207 (U : unitary (Matrix A A ℂ)) :
208 physicalCloneTraceCLM n r s (entangledMoment n (purificationCoefficients ρ.matrix U)) =
209 reducedWernerOutput hcard (physicalPurification ρ.matrix U) (physicalPurification_norm ρ U)
210 (GeneralSymmetricOccupation.inputSlots n (n + r) (Nat.le_add_right n r)) := by
211 have hP : (physicalProjector (C := A × A) (n + r)).adjoint =
212 physicalProjector (C := A × A) (n + r) :=
213 (isStarProjection_starProjection (U := physicalSymmetric (C := A × A) (n + r))).isSelfAdjoint.adjoint_eq
214 simp only [physicalCloneTraceCLM, LinearMap.coe_toContinuousLinearMap',
215 LinearMap.comp_apply, LinearMap.smul_apply, ContinuousLinearMap.coe_coe,
216 slotInsertionCLM, LinearMap.coe_mk, AddHom.coe_mk]
217 rw [slotInsertion_entangledMoment]
218 unfold reducedWernerOutput
219 congr 2
220 apply Subtype.ext
221 simp only [pureWernerOutput,
222 TraceClass.ofOperator_coe, pureWernerOperator, GeneralSymmetricOccupation.inputSlots_card]
223 change _ • operatorConjugation (physicalProjector (C := A × A) (n + r))
224 (pureSlotsOperator (physicalPurification ρ.matrix U) _) = _
225 congr 1
226 apply ContinuousLinearMap.ext
227 intro x
228 simp only [operatorConjugation_apply, hP, ContinuousLinearMap.mul_apply]
229
230/-- Actual finite random purification followed by the literal Werner/trace
231map equals the frame-independent pure-purification output. -/
232theorem physical_pct_eq_reducedWerner (n r s : ℕ)
233 (hcard : Fintype.card (A × A) = s + 1) (ρ : Cloning.MatrixFidelity.State A) :
234 physicalCloneTraceCLM n r s
235 ((haarPurificationChannel (A := A) n).toFun (tensorPower n ρ.matrix)) =
236 reducedWernerOutput hcard (canonicalPurification ρ.matrix) (canonicalPurification_norm ρ)
237 (GeneralSymmetricOccupation.inputSlots n (n + r) (Nat.le_add_right n r)) := by
238 rw [haarPurificationChannel_tensorPower n _ ρ.positive,
239 ← ContinuousLinearMap.integral_comp_comm _ (integrable_purification_tensor n ρ.matrix)]
240 have he (U : unitary (Matrix A A ℂ)) :
241 physicalCloneTraceCLM n r s (entangledMoment n (purificationCoefficients ρ.matrix U)) =
242 reducedWernerOutput hcard (canonicalPurification ρ.matrix) (canonicalPurification_norm ρ)
243 (GeneralSymmetricOccupation.inputSlots n (n + r) (Nat.le_add_right n r)) := by
244 rw [physicalCloneTraceCLM_purification n r s hcard ρ U]
245 simpa only [← physicalPurification_eq_environmentRotate] using
246 reducedWernerOutput_environment_invariant hcard _ (canonicalPurification_norm ρ)
247 (purificationEnvironment U)
248 (GeneralSymmetricOccupation.inputSlots n (n + r) (Nat.le_add_right n r))
249 simp_rw [he]
250 simp
251
252
253set_option maxHeartbeats 400000
254set_option backward.isDefEq.respectTransparency true
255
256/-- The actual finite Haar purification channel, followed by the literal
257Werner sandwich and physical partial trace, has the Gaussian product-mixture
258limit. The purification frame is constructed, and Haar randomization is
259removed by environment invariance. The downstream sandwich here is a
260continuous linear map; its global CPTP extension is a separate statement. -/
261theorem physical_pct_gaussian_product_mixture {s : ℕ} (hs : 1 ≤ s)
262 (hcard : Fintype.card (A × A) = s + 1) (ρ : Cloning.MatrixFidelity.State A)
263 (r : ℕ → ℕ) {γ : ℝ} (hγ : 1 < γ)
264 (h : Filter.Tendsto (fun n ↦ ((n + r n : ℕ) : ℝ) / n) Filter.atTop (𝓝 γ)) :
265 ∃ u : OrthonormalBasis (Fin (s + 1)) ℂ (Register (A × A)),
266 u 0 = canonicalPurification ρ.matrix ∧
267 Filter.Tendsto (fun n => ‖physicalCloneTraceCLM n (r n) s
268 ((haarPurificationChannel (A := A) n).toFun (tensorPower n ρ.matrix)) -
269 ∫ z, matrixTensorPower
270 (reducedDensityMatrix (frameParticle u z (n + r n))) (n + r n)
271 ∂MultimodeCoherentGaussianMixture.gaussianProductMeasure
272 (fun _ : Fin s => γ - 1)‖) Filter.atTop (𝓝 0) := by
273 obtain ⟨u, hu, ht⟩ := exists_pct_product_mixture (A := A) (B := A) (s := s) hs hcard
274 (canonicalPurification ρ.matrix) (canonicalPurification_norm ρ)
275 (unitaryHaar (A := A)) (purificationEnvironment (A := A)) (fun n => n + r n)
276 (fun n => Nat.le_add_right n (r n)) hγ h
277 refine ⟨u, hu, ?_⟩
278 have he (n : ℕ) := physical_pct_eq_reducedWerner n (r n) s hcard ρ
279 simpa only [he, randomizedPurificationOutput_eq] using ht
280
281end Cloning.PCTPurificationChannel