Offline · exact source
Exact Lean source

PCTRankPurificationGeneralHaar

formalization/Cloning/PCTRankPurificationGeneralHaar.lean

Source hash: 3e4f7d4281636d7fd8fa1d881d41e4921c3ebdadaab0303e002e16dd18145f0f

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.PCTRankPurificationGeneralPurification
2import Cloning.PCTRankPurificationGeneralEmbedding
3 
4/-! The actual rectangular purifier is the Haar mixture associated with
5any chosen purification of the input. The Haar mixture is independent of
6that choice even for singular reduced states. -/
7noncomputable section
8open scoped BigOperators Matrix Kronecker ComplexOrder InnerProductSpace
9open MeasureTheory
10namespace Cloning.PCTRankPurification
11open Cloning.PCT Cloning.PCTPhysicalState Cloning.PCTRankAdapted Cloning.InfiniteTraceClass
12open Cloning.PCTPurificationChannel Cloning.FiniteKrausLift Cloning.PCTReducedGaussian
13open Cloning.PCTRankGlobal
14set_option backward.isDefEq.respectTransparency false
15set_option maxHeartbeats 1200000
16variable {A E : Type*} [Fintype A] [Fintype E] [DecidableEq A] [DecidableEq E] [Nonempty E]
17 
18theorem environmentRotate_purificationEnvironment_mul
19    (U V : unitary (Matrix E E ℂ)) (ψ : Register (A×E)) :
20    environmentRotate (purificationEnvironment U) (environmentRotate (purificationEnvironment V) ψ)=
21      environmentRotate (purificationEnvironment (V*U)) ψ := by
22  ext ⟨a,b⟩
23  simp only [environmentRotate_apply,purificationEnvironment,unitaryRegister_apply,
24    Matrix.UnitaryGroup.transpose,Matrix.transpose_apply,environmentRow_apply,
25    Submonoid.coe_mul,Matrix.mul_apply,Finset.mul_sum,Finset.sum_mul]
26  rw [Finset.sum_comm]
27  apply Finset.sum_congr rfl
28  intro c _
29  apply Finset.sum_congr rfl
30  intro d _
31  ring
32 
33def purificationHaar (n : ℕ) (ψ : Register (A×E)) :
34    TraceClass (Register ((Fin n→A)×(Fin n→E))) :=
35  ∫U : unitary (Matrix E E ℂ),tensorProjector n
36    (environmentRotate (purificationEnvironment U) ψ) ∂unitaryHaar
37 
38theorem purificationHaar_rotate (n : ℕ) (V : unitary (Matrix E E ℂ))
39    (ψ : Register (A×E)) :
40    purificationHaar n (environmentRotate (purificationEnvironment V) ψ)=purificationHaar n ψ := by
41  unfold purificationHaar
42  simp_rw [environmentRotate_purificationEnvironment_mul]
43  exact integral_mul_left_eq_self (μ:=unitaryHaar)
44    (fun U : unitary (Matrix E E ℂ)=>tensorProjector n
45      (environmentRotate (purificationEnvironment U) ψ)) V
46 
47/-- The Haar average depends only on the literal reduced density matrix. -/
48theorem purificationHaar_eq_of_reduced_eq (n : ℕ) (ψ φ : Register (A×E))
49    (h : reducedDensityMatrix ψ=reducedDensityMatrix φ) :
50    purificationHaar n ψ=purificationHaar n φ := by
51  obtain ⟨V,hV⟩ := exists_environment_unitary_of_reduced_eq ψ φ h
52  rw [← hV,purificationHaar_rotate]
53 
54variable {r : ℕ} [NeZero r]
55local instance generalHaarAmbientNeZero (k : ℕ) : NeZero (r+k) := ⟨by have := NeZero.ne r; omega⟩
56 
57/-- Exact random-purification action for any purification in the prescribed
58r-dimensional environment. The one channel always uses the coordinate J0. -/
59theorem purificationChannel_of_purification (k n : ℕ)
60    (b0 : (Fin n→Fin (r+k))×(Fin n→Fin r))
61    (ρ : Cloning.MatrixFidelity.State (Fin (r+k)))
62    (ψ : Register (Fin (r+k)×Fin r)) (hψ : reducedDensityMatrix ψ=ρ.matrix) :
63    (PCTRankGlobal.purificationChannel n (Cloning.TensorLie.coordinateInclusionMatrix r k) b0).toLinearMap
64      (tensorState ρ n).1=purificationHaar n ψ := by
65  have hrank : ρ.matrix.rank≤r := by
66    rw [← hψ]
67    change ((show Matrix (Fin (r+k)) (Fin r) ℂ from fun a b=>ψ (a,b)) * (Matrix.conjTranspose (fun a b=>ψ (a,b)))).rank≤r
68    exact (Matrix.rank_mul_le_left _ _).trans (Matrix.rank_le_width _)
69  obtain ⟨J,hJ,σ,hρ⟩ := exists_embedded_density r k ρ hrank
70  subst ρ
71  let φ := matrixRegister (J⊗ₖ(1 : Matrix (Fin r) (Fin r) ℂ)) (canonicalPurification σ.matrix)
72  have hφ : reducedDensityMatrix φ=reducedDensityMatrix ψ := by
73    rw [reducedDensityMatrix_system,canonicalPurification_reduced _ σ.positive,hψ]
74    rfl
75  rw [← purificationHaar_eq_of_reduced_eq n φ ψ hφ]
76  change (PCTRankGlobal.purificationChannel n (Cloning.TensorLie.coordinateInclusionMatrix r k) b0).toLinearMap
77    (registerLiftCLM (tensorPower n (J*σ.matrix*Jᴴ)))=_
78  rw [PCTRankGlobal.purificationChannel_matrix,rankPurificationChannel_embedded_positive n k b0 J hJ σ.matrix σ.positive,
79    ← PCTRankGlobal.embeddedHaarCLM_apply,PCTRankGlobal.embeddedHaar_physical]
80  rfl
81 
82/-- The randomizing Haar integral disappears after the fixed Werner and
83partial-trace stages, for every chosen purification of every rank-bound state. -/
84theorem channel_of_purification {s : ℕ} (k n t : ℕ)
85    (hcard : Fintype.card (Fin (r+k)×Fin r)=s+1)
86    (b0 : (Fin n→Fin (r+k))×(Fin n→Fin r))
87    (ρ : Cloning.MatrixFidelity.State (Fin (r+k)))
88    (ψ : Register (Fin (r+k)×Fin r)) (hψnorm : ‖ψ‖=1)
89    (hψ : reducedDensityMatrix ψ=ρ.matrix) :
90    (PCTRankGlobal.channel hcard n t (Cloning.TensorLie.coordinateInclusionMatrix r k) b0).toLinearMap
91      (tensorState ρ n).1=
92      reducedWernerOutput hcard ψ hψnorm
93        (Cloning.GeneralSymmetricOccupation.inputSlots n (n+t) (Nat.le_add_right n t)) := by
94  have hrank : ρ.matrix.rank≤r := by
95    rw [← hψ]
96    change ((show Matrix (Fin (r+k)) (Fin r) ℂ from fun a b=>ψ (a,b)) * (Matrix.conjTranspose (fun a b=>ψ (a,b)))).rank≤r
97    exact (Matrix.rank_mul_le_left _ _).trans (Matrix.rank_le_width _)
98  obtain ⟨J,hJ,σ,hρ⟩ := exists_embedded_density r k ρ hrank
99  subst ρ
100  rw [channel_embeddedState]
101  let φ := matrixRegister (J⊗ₖ(1 : Matrix (Fin r) (Fin r) ℂ)) (canonicalPurification σ.matrix)
102  have hφ : reducedDensityMatrix φ=reducedDensityMatrix ψ := by
103    rw [reducedDensityMatrix_system,canonicalPurification_reduced _ σ.positive,hψ]
104    rfl
105  obtain ⟨W,hW⟩ := exists_environment_isometry_of_reduced_eq φ ψ hφ
106  subst ψ
107  exact (reducedWernerOutput_environment_invariant hcard φ
108    ((matrixRegister_norm _ (systemEmbedding_isometry J hJ) _).trans (canonicalPurification_norm σ)) W _).symm
109 
110end Cloning.PCTRankPurification