Offline · exact source
Exact Lean source

PCTRankGlobalWerner

formalization/Cloning/PCTRankGlobalWerner.lean

Source hash: 8017add998d854a21a4684f3b6d7124a4be8a5f8d6f00749d2ed1ad55f1dadb8

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.PCTGlobalWerner
2import Cloning.PCTRankGlobalMatrixBridge
3 
4/-! The literal physical Werner sandwich for rectangular purifications.
5The particle space is A × B; neither equal dimensions nor full Schmidt rank
6in the physical A register is required. -/
7noncomputable section
8open scoped BigOperators InnerProductSpace Matrix Kronecker ComplexOrder
9open Cloning.InfiniteTraceClass Cloning.PCT Cloning.InfiniteFiniteCorner
10open Cloning.GeneralSymmetricOccupation Cloning.PCTPurificationChannel
11namespace Cloning.PCTRankGlobal
12open Cloning.PCTGlobal
13set_option maxHeartbeats 1200000
14set_option backward.isDefEq.respectTransparency false
15set_option linter.unusedSectionVars false
16local instance registerFiniteDimensionalRankWerner (I : Type*) [Fintype I] [DecidableEq I] :
17    FiniteDimensional ℂ (Register I) :=
18  (registerBasis I).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
19 
20variable {A B : Type*} [Fintype A] [DecidableEq A] [Nonempty A]
21  [Fintype B] [DecidableEq B] [Nonempty B]
22 
23theorem physicalEmbedding_conjugation_matrix {s : ℕ}
24    (u : OrthonormalBasis (Fin (s+1)) ℂ (Register (A×B))) (L : ℕ)
25    (X : Matrix (Occupation L (s+1)) (Occupation L (s+1)) ℂ) :
26    operatorConjugation (physicalEmbedding u L).toContinuousLinearMap (registerLiftCLM X).1 =
27      operatorConjugation (tensorFrame u.orthonormal L).toContinuousLinearMap
28        (ofMatrix (@column L (s+1)) X) := by
29  have he : conjugationLinearMap (isometry L (s+1)).toContinuousLinearMap (registerLiftCLM X) =
30      matrixLift (@column L (s+1)) X := by
31    rw [conjugation_registerLiftCLM]
32    congr 1
33    funext q
34    exact isometry_single L (s+1) q
35  change operatorConjugation ((tensorFrame u.orthonormal L).toContinuousLinearMap.comp
36    (isometry L (s+1)).toContinuousLinearMap) (registerLiftCLM X).1 = _
37  rw [← operatorConjugation_comp]
38  exact congrArg (operatorConjugation (tensorFrame u.orthonormal L).toContinuousLinearMap)
39    (congrArg Subtype.val he)
40 
41/-- Full-identity slot insertion in the fixed physical coordinates agrees with
42computational tensor insertion on every occupation matrix. -/
43theorem physicalPairMatrix_slotInsertion {s : ℕ} (e : Fin (s+1) ≃ A×B) (n r : ℕ)
44    (X : Matrix (Occupation n (s+1)) (Occupation n (s+1)) ℂ) :
45    physicalPairMatrix e n r (registerLiftCLM (slotInsertion n r
46      (matrixOf (registerBasis _) (operatorConjugation
47        (groupedEmbedding (coordinateFrame e) n).toContinuousLinearMap (registerLiftCLM X).1)))).1 =
48      (columnMatrix n (s+1) * X * (columnMatrix n (s+1)).conjTranspose) ⊗ₖ
49        (1 : Matrix (Word r (s+1)) (Word r (s+1)) ℂ) := by
50  ext a b
51  rw [physicalPairMatrix, registerLiftCLM_coefficient]
52  simp only [slotInsertion, coordinatePairWords, coordinateWords, Equiv.trans_apply,
53    Equiv.coe_fn_mk, wordPairEquiv, Fin.append_left, Fin.append_right]
54  change matrixOf (registerBasis _) (operatorConjugation
55      (groupedEmbedding (coordinateFrame e) n).toContinuousLinearMap (registerLiftCLM X).1)
56      (pairWordsEquiv n (fun i => e (a.1 i))) (pairWordsEquiv n (fun i => e (b.1 i))) *
57      (∏ j : Fin r, if e (a.2 j) = e (b.2 j) then (1:ℂ) else 0) = _
58  rw [matrixOf_groupedEmbedding, physicalEmbedding_conjugation_matrix]
59  simp only [matrixOf, registerBasis_apply, register_inner_single,
60    coordinate_operator_coefficient, Equiv.symm_apply_apply, column_operator_coefficient,
61    e.injective.eq_iff]
62  congr 1
63  rw [Fintype.prod_ite_zero]
64  simp only [Finset.prod_const_one]
65  congr 1
66  exact propext ⟨fun h => funext h, fun h i => congrFun h i⟩
67 
68/-- The actual sector CPTP channel has the literal physical symmetric
69sandwich on every complex occupation input, in one fixed computational frame. -/
70theorem sectorChannel_physical_sandwich {s : ℕ} (e : Fin (s+1) ≃ A×B) (n r : ℕ)
71    (X : Matrix (Occupation n (s+1)) (Occupation n (s+1)) ℂ) :
72    conjugationLinearMap (physicalEmbedding (coordinateFrame e) (n+r)).toContinuousLinearMap
73      ((sectorChannel n r s).toLinearMap (registerLiftCLM X)) =
74    ((((n+s).choose s : ℝ) / ((n+r+s).choose s : ℝ) : ℝ) : ℂ) •
75      conjugationLinearMap (physicalProjector (C:=A×B) (n+r))
76        (registerLiftCLM (slotInsertion n r (matrixOf (registerBasis _)
77          (operatorConjugation (groupedEmbedding (coordinateFrame e) n).toContinuousLinearMap
78            (registerLiftCLM X).1)))) := by
79  rw [sectorChannel_apply]
80  apply Subtype.ext
81  change operatorConjugation (physicalEmbedding (coordinateFrame e) (n+r)).toContinuousLinearMap
82      (registerLiftCLM ((wernerChannel n r s).toFun X)).1 = _
83  rw [physicalEmbedding_conjugation_matrix]
84  have hp : (physicalProjector (C:=A×B) (n+r)).adjoint = physicalProjector (n+r) :=
85    (isStarProjection_starProjection (U:=physicalSymmetric (C:=A×B) (n+r))).isSelfAdjoint.adjoint_eq
86  have hc (T : Register (Fin (n+r) → A×B) →L[ℂ] Register (Fin (n+r) → A×B)) :
87      operatorConjugation (physicalProjector (C:=A×B) (n+r)) T =
88        physicalProjector (n+r) * T * physicalProjector (n+r) := by
89    apply ContinuousLinearMap.ext
90    intro x
91    simp only [operatorConjugation_apply, hp, ContinuousLinearMap.mul_apply]
92  change _ = ((((n+s).choose s : ℝ) / ((n+r+s).choose s : ℝ) : ℝ) : ℂ) •
93    operatorConjugation (physicalProjector (C:=A×B) (n+r)) _
94  rw [hc]
95  apply physicalPairMatrix_injective e n r
96  rw [physicalPairMatrix_frame, pairOperatorMatrix_ofMatrix,
97    physicalPairMatrix_smul, physicalPairMatrix_mul, physicalPairMatrix_mul,
98    physicalPairMatrix_projector, physicalPairMatrix_slotInsertion]
99  simpa only [Complex.coe_smul] using wernerChannel_physical_sandwich n r s X
100 
101end Cloning.PCTRankGlobal