Exact Lean source
PCTPurificationChannelAction
formalization/Cloning/PCTPurificationChannelAction.lean
Source hash: e7d292fbbc96e43c30def621deffcbdb3dec22b742d8fa733507812f5d583ea6
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
theorem
Cloning.PCTPurificationChannel.infinite_complex_unit_circletheorem Cloning.PCTPurificationChannel.tensorPower_diagonaltheorem Cloning.PCTPurificationChannel.leftTensor_diagonaldefinition Cloning.PCTPurificationChannel.diagonalUnitarytheorem Cloning.PCTPurificationChannel.commute_diagonal_of_commute_unitarytheorem Cloning.PCTPurificationChannel.haarMoment_commute_diagonaltheorem Cloning.PCTPurificationChannel.commute_hermitian_of_commute_unitarytheorem Cloning.PCTPurificationChannel.haarMoment_commute_hermitiandefinition Cloning.PCTPurificationChannel.purificationCoefficientstheorem Cloning.PCTPurificationChannel.purificationCoefficients_reducestheorem Cloning.PCTPurificationChannel.partialTrace_entangledMoment_eqtheorem Cloning.PCTPurificationChannel.partialTrace_purification_tensortheorem Cloning.PCTPurificationChannel.integrable_purification_tensortheorem Cloning.PCTPurificationChannel.trace_tensorPowertheorem Cloning.PCTPurificationChannel.trace_entangledMomenttheorem Cloning.PCTPurificationChannel.trace_purification_tensordefinition Cloning.PCTPurificationChannel.purificationTensorStatetheorem Cloning.PCTPurificationChannel.purificationTensorState_coefficienttheorem Cloning.PCTPurificationChannel.haarPurificationChannel_tensorPower1import Cloning.PCTPurificationChannelHaar
2import Mathlib.Algebra.MvPolynomial.Funext
3import Mathlib.Order.Interval.Set.Infinite
4import Mathlib.Tactic.Positivity
5import Mathlib.Tactic.Linarith
6
7/-!
8# The Haar channel acts as random purification on tensor-power inputs
9
10The commutation argument is finite dimensional and uses no Schur--Weyl
11decomposition: polynomial uniqueness on the unit circle extends commutation
12with diagonal unitaries to all diagonal matrices, then the Hermitian spectral
13theorem handles square roots of arbitrary positive inputs.
14-/
15
16noncomputable section
17open scoped BigOperators Matrix Kronecker MatrixOrder ComplexOrder Matrix.Norms.L2Operator
18open Matrix MeasureTheory
19
20namespace Cloning.PCTPurificationChannel
21
22set_option maxHeartbeats 1000000
23set_option backward.isDefEq.respectTransparency false
24set_option linter.unusedSectionVars false
25
26variable {A : Type*} [Fintype A] [DecidableEq A] [Nonempty A]
27
28theorem infinite_complex_unit_circle : Set.Infinite {z : ℂ | ‖z‖ = 1} := by
29 let f : ℝ → ℂ := fun t => ⟨t, Real.sqrt (1 - t ^ 2)⟩
30 have hi : Set.InjOn f (Set.Ioo (-1 : ℝ) 1) := by
31 intro x _ y _ h
32 exact congrArg Complex.re h
33 apply ((Set.Ioo_infinite (by norm_num : (-1 : ℝ) < 1)).image hi).mono
34 rintro z ⟨t, ht, rfl⟩
35 change ‖f t‖ = 1
36 have ht2 : 0 ≤ 1 - t ^ 2 := by nlinarith [ht.1, ht.2]
37 have hn : ‖f t‖ ^ 2 = 1 := by
38 rw [← Complex.normSq_eq_norm_sq]
39 change t * t + Real.sqrt (1 - t ^ 2) * Real.sqrt (1 - t ^ 2) = 1
40 rw [Real.mul_self_sqrt ht2]
41 ring
42 nlinarith [norm_nonneg (f t)]
43
44theorem tensorPower_diagonal (n : ℕ) (z : A → ℂ) :
45 tensorPower n (Matrix.diagonal z) = Matrix.diagonal (fun a => ∏ i, z (a i)) := by
46 ext a c
47 by_cases h : a = c
48 · subst c
49 simp [tensorPower]
50 · obtain ⟨i, hi⟩ := Function.ne_iff.mp h
51 rw [Matrix.diagonal_apply_ne _ h]
52 apply Finset.prod_eq_zero (Finset.mem_univ i)
53 exact Matrix.diagonal_apply_ne _ hi
54
55theorem leftTensor_diagonal (n : ℕ) (z : A → ℂ) :
56 leftTensor n (Matrix.diagonal z) =
57 Matrix.diagonal (fun ab : (Fin n → A) × (Fin n → A) => ∏ i, z (ab.1 i)) := by
58 rw [leftTensor, tensorPower_diagonal, ← Matrix.diagonal_one,
59 Matrix.diagonal_kronecker_diagonal]
60 simp
61
62def diagonalUnitary (z : A → ℂ) (hz : ∀ a, ‖z a‖ = 1) : unitary (Matrix A A ℂ) :=
63 ⟨Matrix.diagonal z, by
64 apply Matrix.mem_unitaryGroup_iff'.mpr
65 change (Matrix.diagonal z)ᴴ * Matrix.diagonal z = 1
66 rw [Matrix.diagonal_conjTranspose, Matrix.diagonal_mul_diagonal]
67 ext a c
68 by_cases h : a = c
69 · subst c
70 simp only [Matrix.diagonal_apply_eq, Pi.star_apply, Matrix.one_apply_eq]
71 rw [Complex.star_def, mul_comm, Complex.mul_conj, Complex.normSq_eq_norm_sq, hz, one_pow,
72 Complex.ofReal_one]
73 · simp [Matrix.diagonal_apply_ne _ h, Matrix.one_apply, h]⟩
74
75/-- Polynomial extension of the diagonal unitary commutation identities. -/
76theorem commute_diagonal_of_commute_unitary (n : ℕ)
77 (R : Matrix ((Fin n → A) × (Fin n → A)) ((Fin n → A) × (Fin n → A)) ℂ)
78 (hR : ∀ V : unitary (Matrix A A ℂ), Commute R (leftTensor n (V : Matrix A A ℂ)))
79 (z : A → ℂ) : Commute R (leftTensor n (Matrix.diagonal z)) := by
80 rw [leftTensor_diagonal]
81 show R * Matrix.diagonal _ = Matrix.diagonal _ * R
82 ext ab cd
83 rw [Matrix.mul_diagonal, Matrix.diagonal_mul]
84 let p : MvPolynomial A ℂ := MvPolynomial.C (R ab cd) *
85 ∏ i : Fin n, MvPolynomial.X (cd.1 i)
86 let q : MvPolynomial A ℂ := (∏ i : Fin n, MvPolynomial.X (ab.1 i)) *
87 MvPolynomial.C (R ab cd)
88 have hpq : p = q := by
89 apply MvPolynomial.funext_set (fun _ => {w : ℂ | ‖w‖ = 1})
90 (fun _ => infinite_complex_unit_circle)
91 intro w hw
92 have hw' : ∀ a, ‖w a‖ = 1 := fun a => hw a (Set.mem_univ a)
93 have hc := (hR (diagonalUnitary w hw')).eq
94 change R * leftTensor n (Matrix.diagonal w) = leftTensor n (Matrix.diagonal w) * R at hc
95 rw [leftTensor_diagonal] at hc
96 have he := congrArg (fun M => M ab cd) hc
97 simpa [p, q, MvPolynomial.eval_prod, Matrix.mul_diagonal, Matrix.diagonal_mul] using he
98 have he := congrArg (MvPolynomial.eval z) hpq
99 simpa [p, q, MvPolynomial.eval_prod] using he
100
101theorem haarMoment_commute_diagonal (n : ℕ) (z : A → ℂ) :
102 Commute (haarMoment (A := A) n) (leftTensor n (Matrix.diagonal z)) :=
103 commute_diagonal_of_commute_unitary n _ (haarMoment_commute_unitary n) z
104
105/-- Unitary commutation extends to every Hermitian tensor-power input. -/
106theorem commute_hermitian_of_commute_unitary (n : ℕ)
107 (R : Matrix ((Fin n → A) × (Fin n → A)) ((Fin n → A) × (Fin n → A)) ℂ)
108 (hR : ∀ V : unitary (Matrix A A ℂ), Commute R (leftTensor n (V : Matrix A A ℂ)))
109 (X : Matrix A A ℂ) (hX : X.IsHermitian) : Commute R (leftTensor n X) := by
110 have hx : X = (hX.eigenvectorUnitary : Matrix A A ℂ) *
111 Matrix.diagonal (fun a => (hX.eigenvalues a : ℂ)) *
112 (hX.eigenvectorUnitary : Matrix A A ℂ)ᴴ := hX.spectral_theorem
113 rw [hx, leftTensor_mul, leftTensor_mul]
114 exact ((hR hX.eigenvectorUnitary).mul_right
115 (commute_diagonal_of_commute_unitary n R hR _)).mul_right (hR (star hX.eigenvectorUnitary))
116
117theorem haarMoment_commute_hermitian (n : ℕ) (X : Matrix A A ℂ)
118 (hX : X.IsHermitian) : Commute (haarMoment (A := A) n) (leftTensor n X) :=
119 commute_hermitian_of_commute_unitary n _ (haarMoment_commute_unitary n) X hX
120
121/-- The pointwise purification coefficient matrix. Vectorizing this matrix
122produces a purification of `ρ`, rotated only on its environment. -/
123def purificationCoefficients (ρ : Matrix A A ℂ) (U : unitary (Matrix A A ℂ)) :
124 Matrix A A ℂ := CFC.sqrt ρ * (U : Matrix A A ℂ)
125
126theorem purificationCoefficients_reduces (ρ : Matrix A A ℂ) (hρ : ρ.PosSemidef)
127 (U : unitary (Matrix A A ℂ)) :
128 purificationCoefficients ρ U * (purificationCoefficients ρ U)ᴴ = ρ := by
129 have hU : (U : Matrix A A ℂ) * (U : Matrix A A ℂ)ᴴ = 1 :=
130 Unitary.mul_star_self_of_mem U.property
131 simp only [purificationCoefficients, Matrix.conjTranspose_mul,
132 Cloning.MatrixFidelity.sqrt_conjTranspose]
133 rw [Matrix.mul_assoc, ← Matrix.mul_assoc (U : Matrix A A ℂ), hU, Matrix.one_mul,
134 Cloning.MatrixFidelity.sqrt_mul_self hρ]
135
136theorem partialTrace_entangledMoment_eq (n : ℕ) (X : Matrix A A ℂ) :
137 Cloning.Compression.partialTrace (entangledMoment n X) = tensorPower n (X * Xᴴ) := by
138 rw [tensorPower_mul, tensorPower_star]
139 rfl
140
141theorem partialTrace_purification_tensor (n : ℕ) (ρ : Matrix A A ℂ)
142 (hρ : ρ.PosSemidef) (U : unitary (Matrix A A ℂ)) :
143 Cloning.Compression.partialTrace (entangledMoment n (purificationCoefficients ρ U)) =
144 tensorPower n ρ := by
145 rw [partialTrace_entangledMoment_eq, purificationCoefficients_reduces ρ hρ]
146
147theorem integrable_purification_tensor (n : ℕ) (ρ : Matrix A A ℂ) :
148 Integrable (fun U : unitary (Matrix A A ℂ) =>
149 entangledMoment n (purificationCoefficients ρ U)) unitaryHaar := by
150 have hi := (matrixSandwichCLM (leftTensor n (CFC.sqrt ρ))).integrable_comp
151 (integrable_haar_entangledMoment (A := A) n)
152 apply hi.congr
153 apply Filter.Eventually.of_forall
154 intro U
155 exact (entangledMoment_mul n (CFC.sqrt ρ) (U : Matrix A A ℂ)).symm
156
157theorem trace_tensorPower (n : ℕ) (X : Matrix A A ℂ) :
158 Matrix.trace (tensorPower n X) = (Matrix.trace X) ^ n := by
159 simp only [Matrix.trace, Matrix.diag, tensorPower]
160 rw [← Fintype.prod_sum (fun (_ : Fin n) a => X a a)]
161 simp
162
163theorem trace_entangledMoment (n : ℕ) (X : Matrix A A ℂ) :
164 Matrix.trace (entangledMoment n X) = (Matrix.trace (X * Xᴴ)) ^ n := by
165 have ht : Matrix.trace (entangledMoment n X) =
166 Matrix.trace (Cloning.Compression.partialTrace (entangledMoment n X)) := by
167 simp [Matrix.trace, Matrix.diag, Cloning.Compression.partialTrace, Fintype.sum_prod_type]
168 rw [ht, partialTrace_entangledMoment_eq, trace_tensorPower]
169
170theorem trace_purification_tensor (n : ℕ) (ρ : Cloning.MatrixFidelity.State A)
171 (U : unitary (Matrix A A ℂ)) :
172 Matrix.trace (entangledMoment n (purificationCoefficients ρ.matrix U)) = 1 := by
173 rw [trace_entangledMoment, purificationCoefficients_reduces _ ρ.positive, ρ.trace_one,
174 one_pow]
175
176/-- Each integrand is a normalized pure tensor density matrix. -/
177def purificationTensorState (n : ℕ) (ρ : Cloning.MatrixFidelity.State A)
178 (U : unitary (Matrix A A ℂ)) :
179 Cloning.MatrixFidelity.State ((Fin n → A) × (Fin n → A)) where
180 matrix := entangledMoment n (purificationCoefficients ρ.matrix U)
181 positive := entangledMoment_posSemidef n _
182 trace_one := trace_purification_tensor n ρ U
183
184/-- Literal tensor-product coefficients of the rank-one purification
185integrands, with the system and environment words grouped separately. -/
186theorem purificationTensorState_coefficient (n : ℕ) (ρ : Cloning.MatrixFidelity.State A)
187 (U : unitary (Matrix A A ℂ)) (a b c d : Fin n → A) :
188 (purificationTensorState n ρ U).matrix (a, b) (c, d) =
189 ∏ i, purificationCoefficients ρ.matrix U (a i) (b i) *
190 star (purificationCoefficients ρ.matrix U (c i) (d i)) := by
191 simp only [purificationTensorState, entangledMoment, entangledTensor, tensorPower,
192 star_prod, Finset.prod_mul_distrib]
193
194/-- Exact finite-sample random-purification identity for all positive input
195matrices. Both the CPTP map and its Haar moment are explicit constructions. -/
196theorem haarPurificationChannel_tensorPower (n : ℕ) (ρ : Matrix A A ℂ)
197 (hρ : ρ.PosSemidef) :
198 (haarPurificationChannel (A := A) n).toFun (tensorPower n ρ) =
199 ∫ U : unitary (Matrix A A ℂ),
200 entangledMoment n (purificationCoefficients ρ U) ∂unitaryHaar := by
201 rw [haarPurificationChannel_apply]
202 have hsquare : tensorPower n ρ = tensorPower n (CFC.sqrt ρ) * tensorPower n (CFC.sqrt ρ) := by
203 rw [← tensorPower_mul, Cloning.MatrixFidelity.sqrt_mul_self hρ]
204 rw [hsquare, purificationMap_square (haarMoment_posSemidef n) _
205 (haarMoment_commute_hermitian n _ (Cloning.MatrixFidelity.sqrt_posSemidef ρ).isHermitian)]
206 have hs : (leftTensor n (CFC.sqrt ρ))ᴴ = leftTensor n (CFC.sqrt ρ) := by
207 rw [← leftTensor_star, Cloning.MatrixFidelity.sqrt_conjTranspose]
208 have h := (matrixSandwichCLM (leftTensor n (CFC.sqrt ρ))).integral_comp_comm
209 (integrable_haar_entangledMoment (A := A) n)
210 change (∫ U : unitary (Matrix A A ℂ), leftTensor n (CFC.sqrt ρ) *
211 entangledMoment n (U : Matrix A A ℂ) * (leftTensor n (CFC.sqrt ρ))ᴴ ∂unitaryHaar) =
212 leftTensor n (CFC.sqrt ρ) * haarMoment n * (leftTensor n (CFC.sqrt ρ))ᴴ at h
213 change leftTensor n (CFC.sqrt ρ) * haarMoment n * leftTensor n (CFC.sqrt ρ) = _
214 rw [hs] at h
215 rw [← h]
216 apply integral_congr_ae
217 apply Filter.Eventually.of_forall
218 intro U
219 simpa only [hs] using (entangledMoment_mul n (CFC.sqrt ρ) (U : Matrix A A ℂ)).symm
220
221end Cloning.PCTPurificationChannel