Exact Lean source
PCTPhysicalWerner
formalization/Cloning/PCTPhysicalWerner.lean
Source hash: a15325e1a03f3a9ac1f327aa5814313ddcc398b8238e3e5c7179d50263e81469
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
definition
Cloning.PCT.physicalSymmetricdefinition Cloning.PCT.physicalProjectordefinition Cloning.PCT.permuteRegistertheorem Cloning.PCT.permuteRegister_applytheorem Cloning.PCT.tensorFrame_permutetheorem Cloning.PCT.tensorFrame_surjectivetheorem Cloning.PCT.physicalSymmetric_map_tensorFrametheorem Cloning.PCT.tensorFrame_physicalProjectortheorem Cloning.PCT.tensorFrame_adjoint_physicalProjectordefinition Cloning.PCT.pureSlotsMatrixdefinition Cloning.PCT.pureSlotsOperatortheorem Cloning.PCT.pureSlotsOperator_coefficienttheorem Cloning.PCT.tensorFrame_fixedSlot_physicaltheorem Cloning.PCT.wernerOutput_physical_purification1import Cloning.PCTWernerCovariance
2
3/-! Physical Werner cloning in arbitrary finite one-particle registers. The
4symmetric projector is defined by permutation invariance, independently of a
5purification frame, and the rotated output is identified with its literal
6pure-input symmetric sandwich. -/
7noncomputable section
8open scoped BigOperators InnerProductSpace ComplexOrder Topology
9open Cloning.InfiniteTraceClass
10namespace Cloning.PCT
11open GeneralSymmetricOccupation GeneralCoherent
12set_option maxHeartbeats 1500000
13set_option backward.isDefEq.respectTransparency false
14set_option linter.unusedSectionVars false
15
16local instance registerFiniteDimensional (C : Type*) [Fintype C] [DecidableEq C] :
17 FiniteDimensional ℂ (Register C) :=
18 (registerBasis C).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
19
20variable {C : Type*} [Fintype C] [DecidableEq C]
21
22def physicalSymmetric (L : ℕ) : Submodule ℂ (Register (Fin L → C)) where
23 carrier := {v | ∀ (w : Fin L → C) (σ : Equiv.Perm (Fin L)), v (w ∘ σ) = v w}
24 zero_mem' := by intro w σ; rfl
25 add_mem' := by intro v u hv hu w σ; exact congrArg₂ (· + ·) (hv w σ) (hu w σ)
26 smul_mem' := by intro a v hv w σ; exact congrArg (a • ·) (hv w σ)
27
28/-- Canonical physical symmetric projector, defined without any chosen
29purification vector or one-particle orthonormal frame. -/
30def physicalProjector (L : ℕ) : Register (Fin L → C) →L[ℂ] Register (Fin L → C) :=
31 (physicalSymmetric (C := C) L).starProjection
32
33def permuteRegister {L : ℕ} (σ : Equiv.Perm (Fin L)) (x : Register (Fin L → C)) :
34 Register (Fin L → C) :=
35 ⟨fun w => x (w ∘ σ), memℓp_gen (by
36 simp only [ENNReal.toReal_ofNat]; exact (hasSum_fintype _).summable)⟩
37
38@[simp] theorem permuteRegister_apply {L : ℕ} (σ : Equiv.Perm (Fin L))
39 (x : Register (Fin L → C)) (w : Fin L → C) : permuteRegister σ x w = x (w ∘ σ) := rfl
40
41theorem tensorFrame_permute {d L : ℕ} {u : Fin d → Register C} (hu : Orthonormal ℂ u)
42 (σ : Equiv.Perm (Fin L)) (x : TensorSpace L d) :
43 tensorFrame hu L (permuteRegister σ x) = permuteRegister σ (tensorFrame hu L x) := by
44 ext v
45 simp only [tensorFrame_apply, permuteRegister_apply]
46 calc
47 _ = ∑ w : Word L d, x w * ∏ i, u (w (σ.symm i)) (v i) := by
48 have he := (wordPermutation L d σ.symm).sum_comp
49 (fun w => x (w ∘ σ) * ∏ i, u (w i) (v i))
50 have hc (w : Word L d) : (w ∘ σ.symm) ∘ σ = w := by funext i; simp
51 simpa only [wordPermutation, Equiv.coe_fn_mk, hc, Function.comp_apply] using he.symm
52 _ = _ := by
53 apply Finset.sum_congr rfl
54 intro w hw
55 congr 1
56 have he := Equiv.prod_comp σ (fun i => u (w (σ.symm i)) (v i))
57 simpa only [Equiv.symm_apply_apply, Function.comp_apply] using he.symm
58
59theorem tensorFrame_surjective {d L : ℕ} (u : OrthonormalBasis (Fin d) ℂ (Register C)) :
60 Function.Surjective (tensorFrame u.orthonormal L) := by
61 have hc : Fintype.card C = d := by
62 have h₁ := Module.finrank_eq_card_basis (registerBasis C).toOrthonormalBasis.toBasis
63 have h₂ := Module.finrank_eq_card_basis u.toBasis
64 simpa using h₁.symm.trans h₂
65 apply (LinearMap.injective_iff_surjective_of_finrank_eq_finrank
66 (f := (tensorFrame u.orthonormal L).toLinearMap) ?_).mp
67 (tensorFrame u.orthonormal L).injective
68 rw [Module.finrank_eq_card_basis (registerBasis (Word L d)).toOrthonormalBasis.toBasis,
69 Module.finrank_eq_card_basis (registerBasis (Fin L → C)).toOrthonormalBasis.toBasis]
70 simp only [Word, Fintype.card_fun, Fintype.card_fin, hc]
71
72theorem physicalSymmetric_map_tensorFrame {d : ℕ}
73 (u : OrthonormalBasis (Fin d) ℂ (Register C)) (L : ℕ) :
74 (symmetricSubspace L d).map (tensorFrame u.orthonormal L).toLinearMap =
75 physicalSymmetric (C := C) L := by
76 apply le_antisymm
77 · rintro y ⟨x, hx, rfl⟩
78 intro w σ
79 have hp : permuteRegister σ x = x := by ext v; exact hx v σ
80 have he := tensorFrame_permute u.orthonormal σ x
81 rw [hp] at he
82 exact (congrArg (fun v : Register (Fin L → C) => v w) he).symm
83 · intro y hy
84 obtain ⟨x, rfl⟩ := tensorFrame_surjective (L := L) u y
85 refine ⟨x, ?_, rfl⟩
86 intro w σ
87 have hp : permuteRegister σ (tensorFrame u.orthonormal L x) =
88 tensorFrame u.orthonormal L x := by ext v; exact hy v σ
89 have he := tensorFrame_permute u.orthonormal σ x
90 rw [hp] at he
91 exact congrArg (fun v : TensorSpace L d => v w) ((tensorFrame u.orthonormal L).injective he)
92
93theorem tensorFrame_physicalProjector {d : ℕ}
94 (u : OrthonormalBasis (Fin d) ℂ (Register C)) (L : ℕ) (x : TensorSpace L d) :
95 tensorFrame u.orthonormal L (projector L d x) =
96 physicalProjector L (tensorFrame u.orthonormal L x) := by
97 have he := physicalSymmetric_map_tensorFrame u L
98 have h := (tensorFrame u.orthonormal L).map_starProjection (symmetricSubspace L d) x
99 simpa only [he, ← projector_eq_starProjection] using h
100
101theorem tensorFrame_adjoint_physicalProjector {d : ℕ}
102 (u : OrthonormalBasis (Fin d) ℂ (Register C)) (L : ℕ) (x : Register (Fin L → C)) :
103 (tensorFrame u.orthonormal L).toContinuousLinearMap.adjoint (physicalProjector L x) =
104 projector L d ((tensorFrame u.orthonormal L).toContinuousLinearMap.adjoint x) := by
105 apply ext_inner_left ℂ
106 intro v
107 rw [ContinuousLinearMap.adjoint_inner_right]
108 have hp : (physicalProjector (C := C) L).adjoint = physicalProjector L := by
109 exact (isStarProjection_starProjection (U := physicalSymmetric (C := C) L)).isSelfAdjoint.adjoint_eq
110 rw [← ContinuousLinearMap.adjoint_inner_left, hp]
111 change ⟪physicalProjector L (tensorFrame u.orthonormal L v), x⟫_ℂ = _
112 rw [← tensorFrame_physicalProjector]
113 change ⟪(tensorFrame u.orthonormal L).toContinuousLinearMap (projector L d v), x⟫_ℂ = _
114 rw [← ContinuousLinearMap.adjoint_inner_right]
115 have hq : (projector L d).adjoint = projector L d := (projector_selfAdjoint L d).adjoint_eq
116 rw [← hq, ContinuousLinearMap.adjoint_inner_left, hq]
117
118/-- A pure product on the selected slots tensored with full identities on all
119remaining slots, specified in the actual computational register. -/
120def pureSlotsMatrix {L : ℕ} (ψ : Register C) (S : Finset (Fin L)) :
121 Matrix (Fin L → C) (Fin L → C) ℂ := fun a c =>
122 ∏ i, if i ∈ S then ψ (a i) * star (ψ (c i)) else if a i = c i then 1 else 0
123
124def pureSlotsOperator {L : ℕ} (ψ : Register C) (S : Finset (Fin L)) :
125 Register (Fin L → C) →L[ℂ] Register (Fin L → C) :=
126 InfiniteFiniteCorner.ofMatrix (registerBasis (Fin L → C)) (pureSlotsMatrix ψ S)
127
128theorem pureSlotsOperator_coefficient {L : ℕ} (ψ : Register C) (S : Finset (Fin L))
129 (a c : Fin L → C) : pureSlotsOperator ψ S (lp.single 2 c 1) a = pureSlotsMatrix ψ S a c := by
130 rw [← register_inner_single]
131 have h := InfiniteFiniteCorner.matrixOf_ofMatrix (registerBasis (Fin L → C)).orthonormal
132 (pureSlotsMatrix ψ S)
133 simpa only [InfiniteFiniteCorner.matrixOf, registerBasis_apply, pureSlotsOperator] using
134 congrArg (fun M => M a c) h
135
136theorem tensorFrame_fixedSlot_physical {L d : ℕ}
137 (u : OrthonormalBasis (Fin d) ℂ (Register C)) (j₀ : Fin d) (S : Finset (Fin L)) :
138 operatorConjugation (tensorFrame u.orthonormal L).toContinuousLinearMap (fixedSlotProjector j₀ S) =
139 pureSlotsOperator (u j₀) S := by
140 apply register_operator_ext
141 intro a c
142 rw [tensorFrame_fixedSlot_coefficient, pureSlotsOperator_coefficient]
143 rfl
144
145/-- The actual framed Werner output is the canonical physical Werner
146symmetric sandwich on an arbitrary purification, with the full environment
147identity. The projector and input operator on the right are frame-independent. -/
148theorem wernerOutput_physical_purification {L s : ℕ}
149 (u : OrthonormalBasis (Fin (s + 1)) ℂ (Register C)) (S : Finset (Fin L)) :
150 ((QuantumChannel.ofIsometry (tensorFrame u.orthonormal L)).toLinearMap
151 (wernerOutput (s := s) S)).1 =
152 (((Nat.choose (S.card + s) s : ℝ) / Nat.choose (L + s) s : ℝ) : ℂ) •
153 (physicalProjector L * pureSlotsOperator (u 0) S * physicalProjector L) := by
154 change operatorConjugation (tensorFrame u.orthonormal L).toContinuousLinearMap
155 (wernerOutput (s := s) S).1 = _
156 rw [wernerOutput_op, wernerOutputOperator, occupation_card, occupation_card]
157 change operatorConjugation (tensorFrame u.orthonormal L).toContinuousLinearMap (_ • _) = _
158 rw [map_smul]
159 congr 1
160 apply ContinuousLinearMap.ext
161 intro x
162 change tensorFrame u.orthonormal L (projector L (s + 1)
163 (fixedSlotProjector 0 S (projector L (s + 1)
164 ((tensorFrame u.orthonormal L).toContinuousLinearMap.adjoint x)))) = _
165 rw [tensorFrame_physicalProjector, ← tensorFrame_adjoint_physicalProjector]
166 have he := congrArg (fun T : Register (Fin L → C) →L[ℂ] Register (Fin L → C) =>
167 physicalProjector L (T (physicalProjector L x))) (tensorFrame_fixedSlot_physical u 0 S)
168 exact he
169
170end Cloning.PCT