Offline · exact source
Exact Lean source

PCTUnitaryTransport

formalization/Cloning/PCTUnitaryTransport.lean

Source hash: 4eb8115d4aa643debe7e89e06411958b021651c9991bb0f16aea0d15a908ceed

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.PCTPhysicalState
2import Cloning.FiniteKrausLift
3import Cloning.MatrixFidelityEmbedding
4 
5/-! Literal unitary transport of coefficient purifications, complete physical
6frames, reduced matrices and tensor-power trace-class operators. -/
7noncomputable section
8open scoped BigOperators Matrix MatrixOrder Matrix.Norms.L2Operator InnerProductSpace ComplexOrder Topology
9open Cloning.InfiniteTraceClass
10namespace Cloning.PCTUnitaryTransport
11open Cloning.PCT Cloning.PCTReducedGaussian Cloning.PCTPurificationChannel
12open Cloning.PCTPhysicalState Cloning.FiniteKrausLift
13set_option backward.isDefEq.respectTransparency false
14set_option maxHeartbeats 1000000
15variable {A : Type*} [Fintype A] [DecidableEq A] [Nonempty A]
16 
17def coefficients (ψ : Register (A × A)) : Matrix A A ℂ := fun a b => ψ (a,b)
18 
19@[simp] theorem coefficientVector_coefficients (ψ : Register (A × A)) :
20    coefficientVector (coefficients ψ) = ψ := by ext ⟨a,b⟩; rfl
21 
22@[simp] theorem coefficients_coefficientVector (M : Matrix A A ℂ) :
23    coefficients (coefficientVector M) = M := rfl
24 
25@[simp] theorem coefficients_add (ψ φ : Register (A × A)) :
26    coefficients (ψ+φ) = coefficients ψ + coefficients φ := rfl
27 
28@[simp] theorem coefficients_smul (c : ℂ) (ψ : Register (A × A)) :
29    coefficients (c • ψ) = c • coefficients ψ := rfl
30 
31theorem reduced_eq_coefficients (ψ : Register (A × A)) :
32    reducedDensityMatrix ψ = coefficients ψ * (coefficients ψ)ᴴ := rfl
33 
34def conjugatePurification (U : unitary (Matrix A A ℂ)) (ψ : Register (A × A)) :
35    Register (A × A) := coefficientVector ((U : Matrix A A ℂ) * coefficients ψ * (U : Matrix A A ℂ)ᴴ)
36 
37theorem reduced_conjugatePurification (U : unitary (Matrix A A ℂ)) (ψ : Register (A × A)) :
38    reducedDensityMatrix (conjugatePurification U ψ) =
39      (U : Matrix A A ℂ) * reducedDensityMatrix ψ * (U : Matrix A A ℂ)ᴴ := by
40  have hU : (U : Matrix A A ℂ)ᴴ * U = 1 := Unitary.star_mul_self_of_mem U.property
41  rw [conjugatePurification, reducedDensityMatrix_coefficientVector, reduced_eq_coefficients]
42  simp only [Matrix.conjTranspose_mul, Matrix.conjTranspose_conjTranspose, Matrix.mul_assoc]
43  rw [← Matrix.mul_assoc (U : Matrix A A ℂ)ᴴ, hU, Matrix.one_mul]
44 
45theorem conjugatePurification_norm (U : unitary (Matrix A A ℂ)) (ψ : Register (A × A)) :
46    ‖conjugatePurification U ψ‖ = ‖ψ‖ := by
47  have hU : (U : Matrix A A ℂ)ᴴ * U = 1 := Unitary.star_mul_self_of_mem U.property
48  have h : Matrix.trace (reducedDensityMatrix (conjugatePurification U ψ)) =
49      Matrix.trace (reducedDensityMatrix ψ) := by
50    rw [reduced_conjugatePurification, Matrix.trace_mul_comm,
51      ← Matrix.mul_assoc, hU, Matrix.one_mul]
52  rw [trace_reducedDensityMatrix_complex, trace_reducedDensityMatrix_complex] at h
53  have hr := congrArg Complex.re h
54  simp only [Complex.ofReal_re] at hr
55  nlinarith [norm_nonneg (conjugatePurification U ψ), norm_nonneg ψ]
56 
57theorem conjugatePurification_star (U : unitary (Matrix A A ℂ)) (ψ : Register (A × A)) :
58    conjugatePurification (star U) (conjugatePurification U ψ) = ψ := by
59  have hU : (U : Matrix A A ℂ)ᴴ * U = 1 := Unitary.star_mul_self_of_mem U.property
60  have hV : (U : Matrix A A ℂ) * (U : Matrix A A ℂ)ᴴ = 1 := Unitary.mul_star_self_of_mem U.property
61  simp only [conjugatePurification, coefficients_coefficientVector, Unitary.coe_star,
62    Matrix.star_eq_conjTranspose, Matrix.conjTranspose_conjTranspose]
63  change coefficientVector ((U : Matrix A A ℂ)ᴴ *
64    ((U : Matrix A A ℂ) * coefficients ψ * (U : Matrix A A ℂ)ᴴ) * (U : Matrix A A ℂ)) = ψ
65  simp only [← Matrix.mul_assoc]
66  rw [hU, Matrix.one_mul, Matrix.mul_assoc, hU, Matrix.mul_one, coefficientVector_coefficients]
67 
68def purificationEquiv (U : unitary (Matrix A A ℂ)) : Register (A × A) ≃ₗᵢ[ℂ] Register (A × A) where
69  toFun := conjugatePurification U
70  invFun := conjugatePurification (star U)
71  left_inv := conjugatePurification_star U
72  right_inv := by simpa only [star_star] using conjugatePurification_star (star U)
73  map_add' ψ φ := by
74    ext ⟨a,b⟩
75    simp only [conjugatePurification, coefficients_add, Matrix.mul_add, Matrix.add_mul,
76      coefficientVector_apply, Matrix.add_apply, lp.coeFn_add, Pi.add_apply]
77  map_smul' c ψ := by
78    ext ⟨a,b⟩
79    simp only [conjugatePurification, coefficients_smul, Matrix.mul_smul, Matrix.smul_mul,
80      coefficientVector_apply, Matrix.smul_apply, lp.coeFn_smul, Pi.smul_apply, RingHom.id_apply]
81  norm_map' := conjugatePurification_norm U
82 
83@[simp] theorem purificationEquiv_apply (U : unitary (Matrix A A ℂ)) (ψ : Register (A × A)) :
84    purificationEquiv U ψ = conjugatePurification U ψ := rfl
85 
86theorem canonicalPurification_conjugate (U : unitary (Matrix A A ℂ))
87    (ρ : Matrix A A ℂ) (hρ : ρ.PosSemidef) :
88    canonicalPurification ((U : Matrix A A ℂ) * ρ * (U : Matrix A A ℂ)ᴴ) =
89      purificationEquiv U (canonicalPurification ρ) := by
90  rw [canonicalPurification, Cloning.MatrixFidelity.sqrt_isometric_embedding
91    (U : Matrix A A ℂ) (Unitary.star_mul_self_of_mem U.property) hρ]
92  rfl
93 
94def transportFrame {s : ℕ}
95    (u : OrthonormalBasis (Fin (s+1)) ℂ (Register (A × A)))
96    (U : unitary (Matrix A A ℂ)) : OrthonormalBasis (Fin (s+1)) ℂ (Register (A × A)) :=
97  u.map (purificationEquiv U)
98 
99theorem frameParticle_transport {s : ℕ}
100    (u : OrthonormalBasis (Fin (s+1)) ℂ (Register (A × A)))
101    (U : unitary (Matrix A A ℂ)) (z : Fin s → ℂ) (L : ℕ) :
102    frameParticle (transportFrame u U) z L = purificationEquiv U (frameParticle u z L) := by
103  simp only [frameParticle, map_sum, map_smul, transportFrame, OrthonormalBasis.map_apply]
104 
105theorem reduced_frameParticle_transport {s : ℕ}
106    (u : OrthonormalBasis (Fin (s+1)) ℂ (Register (A × A)))
107    (U : unitary (Matrix A A ℂ)) (z : Fin s → ℂ) (L : ℕ) :
108    reducedDensityMatrix (frameParticle (transportFrame u U) z L) =
109      (U : Matrix A A ℂ) * reducedDensityMatrix (frameParticle u z L) * (U : Matrix A A ℂ)ᴴ := by
110  rw [frameParticle_transport, purificationEquiv_apply, reduced_conjugatePurification]
111 
112theorem unitaryRegister_eq_matrixRegister (U : unitary (Matrix A A ℂ)) :
113    (unitaryRegister U).toContinuousLinearMap = matrixRegister (U : Matrix A A ℂ) := by
114  ext x a
115  exact unitaryRegister_apply U x a
116 
117def unitaryChannel (U : unitary (Matrix A A ℂ)) : QuantumChannel (Register A) (Register A) :=
118  QuantumChannel.ofIsometry (unitaryRegister U)
119 
120theorem unitaryChannel_registerLift (U : unitary (Matrix A A ℂ)) (X : Matrix A A ℂ) :
121    (unitaryChannel U).toLinearMap (registerLiftCLM X) =
122      registerLiftCLM ((U : Matrix A A ℂ) * X * (U : Matrix A A ℂ)ᴴ) := by
123  change conjugationLinearMap (unitaryRegister U).toContinuousLinearMap (registerLiftCLM X) = _
124  rw [unitaryRegister_eq_matrixRegister, conjugation_matrixRegister]
125 
126def tensorUnitary (U : unitary (Matrix A A ℂ)) (L : ℕ) :
127    unitary (Matrix (Fin L → A) (Fin L → A) ℂ) :=
128  ⟨tensorPower L (U : Matrix A A ℂ), by
129    apply Matrix.mem_unitaryGroup_iff'.mpr
130    change (tensorPower L (U : Matrix A A ℂ))ᴴ * tensorPower L (U : Matrix A A ℂ) = 1
131    have hU : (U : Matrix A A ℂ)ᴴ * U = 1 := Unitary.star_mul_self_of_mem U.property
132    rw [← tensorPower_star, ← tensorPower_mul, hU, tensorPower_one]⟩
133 
134theorem tensor_unitaryChannel_matrixTensorPower (U : unitary (Matrix A A ℂ))
135    (X : Matrix A A ℂ) (L : ℕ) :
136    (unitaryChannel (tensorUnitary U L)).toLinearMap (matrixTensorPower X L) =
137      matrixTensorPower ((U : Matrix A A ℂ) * X * (U : Matrix A A ℂ)ᴴ) L := by
138  simp only [matrixTensorPower_eq_registerLift, unitaryChannel_registerLift, tensorUnitary,
139    tensorPower_mul, tensorPower_star]
140 
141end Cloning.PCTUnitaryTransport