Exact Lean source
TensorCartanStateOperator
formalization/Cloning/TensorCartanStateOperator.lean
Source hash: 3ae1e4805c1a3809235778d3abc8d7a650d6c58b543cb15e94e70d49be870def
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.TensorLie.basis_projection_eq_onetheorem Cloning.TensorLie.basis_ofMatrix_matrixOftheorem Cloning.TensorLie.basis_toMatrix_ofMatrixtheorem Cloning.TensorLie.basis_ofMatrix_smultheorem Cloning.TensorLie.basis_ofMatrix_compressiontheorem Cloning.TensorLie.partitionRegisterEquiv_symm_basistheorem Cloning.TensorLie.partitionMatrixOperator_eq_matrixLifttheorem Cloning.TensorLie.partitionMatrixOperator_matrixOfdefinition Cloning.TensorLie.cartanProductOperatortheorem Cloning.TensorLie.physicalCartanChannel_operator1import Cloning.TensorCartanStateCutoff
2
3/-! Basis-free operator action of the constructed physical Cartan channel. -/
4noncomputable section
5open scoped BigOperators InnerProductSpace Matrix Kronecker
6namespace Cloning.TensorLie
7open Cloning.PCT Cloning.InfiniteTraceClass Cloning.InfiniteFiniteCorner
8open Cloning.PCTPurificationChannel
9set_option maxHeartbeats 1200000
10set_option synthInstance.maxHeartbeats 200000
11set_option backward.isDefEq.respectTransparency false
12
13section Basis
14variable {H K : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
15 [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K]
16 {I J : Type*} [Fintype I] [DecidableEq I] [Fintype J] [DecidableEq J]
17
18theorem basis_projection_eq_one (b : OrthonormalBasis I ℂ H) : projection b = 1 := by
19 ext x
20 rw [projection_apply]
21 simpa only [OrthonormalBasis.repr_apply_apply, ContinuousLinearMap.one_apply] using b.sum_repr x
22
23theorem basis_ofMatrix_matrixOf (b : OrthonormalBasis I ℂ H) (A : H →L[ℂ] H) :
24 ofMatrix b (matrixOf b A) = A := by
25 rw [ofMatrix_matrixOf, basis_projection_eq_one, one_mul, mul_one]
26
27theorem basis_toMatrix_ofMatrix (b : OrthonormalBasis I ℂ H) (M : Matrix I I ℂ) :
28 LinearMap.toMatrix b.toBasis b.toBasis (ofMatrix b M).toLinearMap = M := by
29 ext i j
30 simpa only [LinearMap.toMatrix_apply, OrthonormalBasis.coe_toBasis,
31 OrthonormalBasis.coe_toBasis_repr_apply, OrthonormalBasis.repr_apply_apply,
32 matrixOf] using congrArg (fun X => X i j) (matrixOf_ofMatrix b.orthonormal M)
33
34theorem basis_ofMatrix_smul (b : OrthonormalBasis I ℂ H) (c : ℂ) (M : Matrix I I ℂ) :
35 ofMatrix b (c • M) = c • ofMatrix b M := by
36 simp [ofMatrix_eq_sum, Matrix.smul_apply, Finset.smul_sum, smul_smul]
37
38theorem basis_ofMatrix_compression (bH : OrthonormalBasis I ℂ H)
39 (bK : OrthonormalBasis J ℂ K) (V : H →L[ℂ] K) (M : Matrix J J ℂ) :
40 let W := LinearMap.toMatrix bH.toBasis bK.toBasis V.toLinearMap
41 ofMatrix bH (Wᴴ * M * W) = V.adjoint.comp ((ofMatrix bK M).comp V) := by
42 intro W
43 have ha : LinearMap.toMatrix bK.toBasis bH.toBasis V.adjoint.toLinearMap = Wᴴ := by
44 ext i j
45 simp only [LinearMap.toMatrix_apply, OrthonormalBasis.coe_toBasis,
46 OrthonormalBasis.coe_toBasis_repr_apply, OrthonormalBasis.repr_apply_apply,
47 ContinuousLinearMap.coe_coe, ContinuousLinearMap.adjoint_inner_right,
48 W, Matrix.conjTranspose_apply]
49 exact (inner_conj_symm _ _).symm
50 suffices he : (ofMatrix bH (Wᴴ * M * W)).toLinearMap =
51 (V.adjoint.comp ((ofMatrix bK M).comp V)).toLinearMap by
52 ext x
53 exact congrArg (fun f : H →ₗ[ℂ] H => f x) he
54 apply (LinearMap.toMatrix bH.toBasis bH.toBasis).injective
55 rw [basis_toMatrix_ofMatrix]
56 change Wᴴ * M * W = LinearMap.toMatrix bH.toBasis bH.toBasis
57 (V.adjoint.toLinearMap.comp ((ofMatrix bK M).toLinearMap.comp V.toLinearMap))
58 rw [LinearMap.toMatrix_comp bH.toBasis bK.toBasis bH.toBasis,
59 LinearMap.toMatrix_comp bH.toBasis bK.toBasis bK.toBasis,
60 ha, basis_toMatrix_ofMatrix, ← Matrix.mul_assoc]
61
62end Basis
63
64variable {d : ℕ}
65local instance (n d : ℕ) : FiniteDimensional ℂ (TensorRegister n (Fin d)) :=
66 (registerBasis (Fin n → Fin d)).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
67
68theorem partitionRegisterEquiv_symm_basis (mu : Fin d → ℕ) (hmu : Antitone mu)
69 (i : PartitionIndex mu hmu) :
70 (partitionRegisterEquiv mu hmu).symm (registerBasis _ i) = partitionBasis mu hmu i := by
71 change (partitionBasis mu hmu).repr.symm
72 ((registerBasis _).toOrthonormalBasis.repr (registerBasis _ i)) = _
73 rw [← HilbertBasis.coe_toOrthonormalBasis]
74 rw [OrthonormalBasis.repr_self, OrthonormalBasis.repr_symm_single]
75
76theorem partitionMatrixOperator_eq_matrixLift (mu : Fin d → ℕ) (hmu : Antitone mu)
77 (M : Matrix (PartitionIndex mu hmu) (PartitionIndex mu hmu) ℂ) :
78 partitionMatrixOperator mu hmu M = matrixLift (partitionBasis mu hmu) M := by
79 change conjugationLinearMap (partitionRegisterEquiv mu hmu).symm.toLinearIsometry.toContinuousLinearMap
80 (matrixLift (registerBasis _) M) = _
81 simp only [matrixLift, map_sum, map_smul, conjugationLinearMap_rankOneOperator,
82 LinearIsometry.coe_toContinuousLinearMap, LinearIsometryEquiv.coe_toLinearIsometry,
83 partitionRegisterEquiv_symm_basis]
84
85theorem partitionMatrixOperator_matrixOf (mu : Fin d → ℕ) (hmu : Antitone mu)
86 (A : TraceClass (cyclicSector (partitionHighestTensor mu hmu))) :
87 partitionMatrixOperator mu hmu (matrixOf (partitionBasis mu hmu) A.1) = A := by
88 rw [partitionMatrixOperator_eq_matrixLift]
89 apply Subtype.ext
90 exact basis_ofMatrix_matrixOf _ _
91
92def cartanProductOperator (mu nu : Fin d → ℕ) (hmu : Antitone mu) (hnu : Antitone nu)
93 (A : cyclicSector (partitionHighestTensor mu hmu) →L[ℂ]
94 cyclicSector (partitionHighestTensor mu hmu)) :=
95 ofMatrix (cartanProductBasis mu nu hmu hnu)
96 (matrixOf (partitionBasis mu hmu) A ⊗ₖ (1 : Matrix (PartitionIndex nu hnu) _ ℂ))
97
98/-- The already constructed all-input CPTP channel has the literal
99dimension-ratio times adjoint-compression formula on arbitrary trace-class inputs. -/
100theorem physicalCartanChannel_operator
101 (mu nu : Fin d → ℕ) (hmu : Antitone mu) (hnu : Antitone nu)
102 (A : TraceClass (cyclicSector (partitionHighestTensor mu hmu))) :
103 ((physicalCartanChannel mu nu hmu hnu).toLinearMap A).1 =
104 (((partitionDimension mu hmu : ℝ) /
105 (partitionDimension _ (sumPartition_antitone mu nu hmu hnu) : ℝ)) : ℂ) •
106 (cartanInclusion mu nu hmu hnu).toContinuousLinearMap.adjoint.comp
107 ((cartanProductOperator mu nu hmu hnu A.1).comp
108 (cartanInclusion mu nu hmu hnu).toContinuousLinearMap) := by
109 let M := matrixOf (partitionBasis mu hmu) A.1
110 have hA : partitionMatrixOperator mu hmu M = A := partitionMatrixOperator_matrixOf _ _ A
111 have hc := congrArg Subtype.val
112 (physicalCartanChannel_partitionMatrixOperator mu nu hmu hnu M)
113 rw [hA, partitionMatrixOperator_eq_matrixLift] at hc
114 change ((physicalCartanChannel mu nu hmu hnu).toLinearMap A).1 =
115 ofMatrix (partitionBasis _ (sumPartition_antitone mu nu hmu hnu))
116 (Cloning.Compression.sectorMap _ _ (cartanMatrix mu nu hmu hnu) M) at hc
117 have hcomp := basis_ofMatrix_compression
118 (partitionBasis _ (sumPartition_antitone mu nu hmu hnu))
119 (cartanProductBasis mu nu hmu hnu)
120 (cartanInclusion mu nu hmu hnu).toContinuousLinearMap
121 (M ⊗ₖ (1 : Matrix (PartitionIndex nu hnu) _ ℂ))
122 have hs := basis_ofMatrix_smul
123 (partitionBasis _ (sumPartition_antitone mu nu hmu hnu))
124 ((((partitionDimension mu hmu : ℝ) /
125 (partitionDimension _ (sumPartition_antitone mu nu hmu hnu) : ℝ)) : ℂ))
126 ((cartanMatrix mu nu hmu hnu)ᴴ * (M ⊗ₖ (1 : Matrix (PartitionIndex nu hnu) _ ℂ)) *
127 cartanMatrix mu nu hmu hnu)
128 have hfinal := hs.trans (congrArg (fun
129 (T : cyclicSector (partitionHighestTensor _ (sumPartition_antitone mu nu hmu hnu)) →L[ℂ]
130 cyclicSector (partitionHighestTensor _ (sumPartition_antitone mu nu hmu hnu))) =>
131 ((((partitionDimension mu hmu : ℝ) /
132 (partitionDimension _ (sumPartition_antitone mu nu hmu hnu) : ℝ)) : ℂ)) • T) hcomp)
133 have hr : Cloning.Compression.sectorMap (partitionDimension mu hmu : ℝ)
134 (partitionDimension _ (sumPartition_antitone mu nu hmu hnu) : ℝ)
135 (cartanMatrix mu nu hmu hnu) M =
136 ((((partitionDimension mu hmu : ℝ) /
137 (partitionDimension _ (sumPartition_antitone mu nu hmu hnu) : ℝ)) : ℂ)) •
138 ((cartanMatrix mu nu hmu hnu)ᴴ * (M ⊗ₖ (1 : Matrix (PartitionIndex nu hnu) _ ℂ)) *
139 cartanMatrix mu nu hmu hnu) := by
140 simpa only [Cloning.Compression.sectorMap, Complex.ofReal_div, RCLike.ofReal_div] using
141 RCLike.real_smul_eq_coe_smul (K := ℂ)
142 ((partitionDimension mu hmu : ℝ) /
143 (partitionDimension _ (sumPartition_antitone mu nu hmu hnu) : ℝ))
144 ((cartanMatrix mu nu hmu hnu)ᴴ * (M ⊗ₖ (1 : Matrix (PartitionIndex nu hnu) _ ℂ)) *
145 cartanMatrix mu nu hmu hnu)
146 exact hc.trans ((congrArg (ofMatrix (partitionBasis _
147 (sumPartition_antitone mu nu hmu hnu))) hr).trans hfinal)
148
149end Cloning.TensorLie