Exact Lean source
PCTPurificationChannelHaar
formalization/Cloning/PCTPurificationChannelHaar.lean
Source hash: e73208746903a21e62eaf2e0c8fa96f7e9ed503e6a22562826c51702450c8b5f
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.isCompact_unitary_matricesdefinition Cloning.PCTPurificationChannel.unitaryHaartheorem Cloning.PCTPurificationChannel.continuous_entangledMomenttheorem Cloning.PCTPurificationChannel.integrable_haar_entangledMomentdefinition Cloning.PCTPurificationChannel.haarMomenttheorem Cloning.PCTPurificationChannel.haarMoment_posSemideftheorem Cloning.PCTPurificationChannel.partialTrace_haarMomentdefinition Cloning.PCTPurificationChannel.haarPurificationChanneltheorem Cloning.PCTPurificationChannel.haarPurificationChannel_applydefinition Cloning.PCTPurificationChannel.leftTensortheorem Cloning.PCTPurificationChannel.leftTensor_multheorem Cloning.PCTPurificationChannel.leftTensor_startheorem Cloning.PCTPurificationChannel.leftTensor_onetheorem Cloning.PCTPurificationChannel.entangledTensor_multheorem Cloning.PCTPurificationChannel.entangledMoment_muldefinition Cloning.PCTPurificationChannel.matrixSandwichCLMtheorem Cloning.PCTPurificationChannel.haarMoment_unitary_invarianttheorem Cloning.PCTPurificationChannel.haarMoment_commute_unitary1import Cloning.PCTPurificationChannel
2import Mathlib.MeasureTheory.Measure.Haar.Unique
3import Mathlib.MeasureTheory.Group.Integral
4import Mathlib.MeasureTheory.Function.LocallyIntegrable
5import Mathlib.Topology.Algebra.Star.Unitary
6import Mathlib.Tactic.FunProp
7
8/-!
9# A canonical Haar square-root purification channel
10
11The compact unitary group, normalized Haar probability, entangled tensor
12moment and resulting finite-sample CPTP map are all constructed here. No
13integrability or normalization premises remain in `haarPurificationChannel`.
14The separate identification with the Haar mixture of purifications requires
15the commutation of the moment with tensor-power inputs.
16-/
17
18noncomputable section
19open scoped BigOperators Matrix Kronecker MatrixOrder ComplexOrder Matrix.Norms.L2Operator
20open Matrix MeasureTheory
21
22namespace Cloning.PCTPurificationChannel
23
24set_option maxHeartbeats 1000000
25set_option backward.isDefEq.respectTransparency false
26set_option linter.unusedSectionVars false
27
28variable {A : Type*} [Fintype A] [DecidableEq A] [Nonempty A]
29
30local instance matrixCStarHaar (I : Type*) [Fintype I] [DecidableEq I] :
31 CStarAlgebra (Matrix I I ℂ) where
32
33theorem isCompact_unitary_matrices :
34 IsCompact (unitary (Matrix A A ℂ) : Set (Matrix A A ℂ)) := by
35 apply Metric.isCompact_iff_isClosed_bounded.mpr
36 refine ⟨isClosed_unitary, isBounded_iff_forall_norm_le.mpr ⟨1, ?_⟩⟩
37 intro U hU
38 exact (CStarRing.norm_coe_unitary (⟨U, hU⟩ : unitary (Matrix A A ℂ))).le
39
40instance unitaryMatricesCompact : CompactSpace (unitary (Matrix A A ℂ)) :=
41 isCompact_iff_compactSpace.mp isCompact_unitary_matrices
42
43instance unitaryMatricesMeasurableSpace : MeasurableSpace (unitary (Matrix A A ℂ)) :=
44 borel _
45
46instance unitaryMatricesBorelSpace : BorelSpace (unitary (Matrix A A ℂ)) := ⟨rfl⟩
47
48/-- Normalized Haar measure on the actual finite-dimensional unitary group. -/
49def unitaryHaar : Measure (unitary (Matrix A A ℂ)) :=
50 Measure.haarMeasure ⊤
51deriving Measure.IsHaarMeasure
52
53instance unitaryHaar_probability : IsProbabilityMeasure (unitaryHaar (A := A)) :=
54 ⟨Measure.haarMeasure_self⟩
55
56theorem continuous_entangledMoment (n : ℕ) :
57 Continuous (fun U : unitary (Matrix A A ℂ) => entangledMoment n (U : Matrix A A ℂ)) := by
58 apply continuous_pi
59 intro ab
60 apply continuous_pi
61 intro cd
62 simp only [entangledMoment, entangledTensor, tensorPower]
63 have he (a b : A) : Continuous (fun U : unitary (Matrix A A ℂ) => U.val a b) :=
64 (continuous_apply b).comp ((continuous_apply a).comp continuous_subtype_val)
65 exact (continuous_finset_prod _ (fun i _ => he _ _)).mul
66 (continuous_finset_prod _ (fun i _ => he _ _)).star
67
68theorem integrable_haar_entangledMoment (n : ℕ) :
69 Integrable (fun U : unitary (Matrix A A ℂ) => entangledMoment n (U : Matrix A A ℂ))
70 unitaryHaar :=
71 (continuous_entangledMoment n).integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _)
72
73/-- Canonical maximally entangled Haar moment, on the two word registers. -/
74def haarMoment (n : ℕ) :=
75 integralMoment n (unitaryHaar (A := A)) (fun U => (U : Matrix A A ℂ))
76
77theorem haarMoment_posSemidef (n : ℕ) : (haarMoment (A := A) n).PosSemidef :=
78 integralMoment_posSemidef _ _ _
79
80theorem partialTrace_haarMoment (n : ℕ) :
81 Cloning.Compression.partialTrace (haarMoment (A := A) n) = 1 :=
82 partialTrace_integralMoment n _ _ (fun U => Unitary.star_mul_self_of_mem U.property)
83 (integrable_haar_entangledMoment n)
84
85/-- The canonical Haar square-root map is CPTP for every finite sample size. -/
86def haarPurificationChannel (n : ℕ) :
87 Cloning.Channels.MatrixChannel (Fin n → A) ((Fin n → A) × (Fin n → A)) :=
88 purificationChannel (haarMoment n) (haarMoment_posSemidef n) (partialTrace_haarMoment n)
89
90theorem haarPurificationChannel_apply (n : ℕ) (X : Matrix (Fin n → A) (Fin n → A) ℂ) :
91 (haarPurificationChannel (A := A) n).toFun X = purificationMap (haarMoment n) X :=
92 purificationChannel_apply _ _ _ _
93
94/-- Action of a one-particle matrix on the first of the two tensor registers. -/
95def leftTensor (n : ℕ) (X : Matrix A A ℂ) :=
96 tensorPower n X ⊗ₖ (1 : Matrix (Fin n → A) (Fin n → A) ℂ)
97
98theorem leftTensor_mul (n : ℕ) (X Y : Matrix A A ℂ) :
99 leftTensor n (X * Y) = leftTensor n X * leftTensor n Y := by
100 simp only [leftTensor, tensorPower_mul, ← Matrix.mul_kronecker_mul, Matrix.one_mul]
101
102theorem leftTensor_star (n : ℕ) (X : Matrix A A ℂ) :
103 leftTensor n Xᴴ = (leftTensor n X)ᴴ := by
104 simp [leftTensor, tensorPower_star, Matrix.conjTranspose_kronecker]
105
106@[simp] theorem leftTensor_one (n : ℕ) : leftTensor n (1 : Matrix A A ℂ) = 1 := by
107 simp [leftTensor, Matrix.one_kronecker_one]
108
109theorem entangledTensor_mul (n : ℕ) (V U : Matrix A A ℂ) :
110 entangledTensor n (V * U) = leftTensor n V *ᵥ entangledTensor n U := by
111 funext ⟨a, b⟩
112 rw [entangledTensor, tensorPower_mul]
113 simp only [Matrix.mul_apply, Matrix.mulVec, dotProduct, leftTensor,
114 Matrix.kronecker_apply, Matrix.one_apply, entangledTensor, Fintype.sum_prod_type,
115 mul_ite, mul_one, mul_zero, ite_mul, zero_mul, Finset.sum_ite_eq,
116 Finset.mem_univ, if_true]
117
118theorem entangledMoment_mul (n : ℕ) (V U : Matrix A A ℂ) :
119 entangledMoment n (V * U) =
120 leftTensor n V * entangledMoment n U * (leftTensor n V)ᴴ := by
121 change Matrix.vecMulVec (entangledTensor n (V * U)) (star (entangledTensor n (V * U))) =
122 leftTensor n V * Matrix.vecMulVec (entangledTensor n U) (star (entangledTensor n U)) *
123 (leftTensor n V)ᴴ
124 rw [entangledTensor_mul, Matrix.mul_vecMulVec, Matrix.vecMulVec_mul,
125 Matrix.vecMul_conjTranspose, star_star]
126
127/-- A fixed matrix sandwich, bundled for commuting with Bochner integration. -/
128def matrixSandwichCLM {I : Type*} [Fintype I] [DecidableEq I] (V : Matrix I I ℂ) :
129 Matrix I I ℂ →L[ℂ] Matrix I I ℂ :=
130 LinearMap.toContinuousLinearMap
131 { toFun := fun X => V * X * Vᴴ
132 map_add' := by intros; simp [Matrix.mul_add, Matrix.add_mul]
133 map_smul' := by intros; simp [Matrix.mul_smul, Matrix.smul_mul] }
134
135/-- Left Haar invariance gives exact invariance of the entangled moment under
136all tensor powers of one-particle unitaries on the input register. -/
137theorem haarMoment_unitary_invariant (n : ℕ) (V : unitary (Matrix A A ℂ)) :
138 leftTensor n (V : Matrix A A ℂ) * haarMoment n *
139 (leftTensor n (V : Matrix A A ℂ))ᴴ = haarMoment n := by
140 have h := (matrixSandwichCLM (leftTensor n (V : Matrix A A ℂ))).integral_comp_comm
141 (integrable_haar_entangledMoment (A := A) n)
142 change (∫ U : unitary (Matrix A A ℂ), leftTensor n (V : Matrix A A ℂ) *
143 entangledMoment n (U : Matrix A A ℂ) * (leftTensor n (V : Matrix A A ℂ))ᴴ
144 ∂unitaryHaar) =
145 leftTensor n (V : Matrix A A ℂ) * haarMoment n *
146 (leftTensor n (V : Matrix A A ℂ))ᴴ at h
147 rw [← h]
148 simp_rw [← entangledMoment_mul]
149 exact integral_mul_left_eq_self
150 (μ := unitaryHaar) (fun U : unitary (Matrix A A ℂ) => entangledMoment n (U : Matrix A A ℂ)) V
151
152theorem haarMoment_commute_unitary (n : ℕ) (V : unitary (Matrix A A ℂ)) :
153 Commute (haarMoment (A := A) n) (leftTensor n (V : Matrix A A ℂ)) := by
154 have hn : (leftTensor n (V : Matrix A A ℂ))ᴴ * leftTensor n (V : Matrix A A ℂ) = 1 := by
155 have hV : (V : Matrix A A ℂ)ᴴ * V = 1 := Unitary.star_mul_self_of_mem V.property
156 rw [← leftTensor_star, ← leftTensor_mul, hV, leftTensor_one]
157 have h := congrArg (fun X => X * leftTensor n (V : Matrix A A ℂ))
158 (haarMoment_unitary_invariant n V)
159 simp only [Matrix.mul_assoc, hn, Matrix.mul_one] at h
160 exact h.symm
161
162end Cloning.PCTPurificationChannel