Offline · exact source
Exact Lean source

PCTPurificationInvariance

formalization/Cloning/PCTPurificationInvariance.lean

Source hash: b874beb653a8a5c2ade6e2e8de1341cd779ea9a8b6524bbbc1b0d42ffca29993

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.PCTTensorFrame
2 
3/-! Independence of the reduced Werner output under an actual unitary change
4of the purifying register. The proof uses exact computational coefficients of
5the tensor-power channel, so the spectator cancellation holds before limits. -/
6noncomputable section
7open scoped BigOperators InnerProductSpace ComplexOrder Topology
8open Filter MeasureTheory Cloning.InfiniteTraceClass
9namespace Cloning.PCT
10open GeneralSymmetricOccupation GeneralCoherent
11set_option maxHeartbeats 2000000
12set_option backward.isDefEq.respectTransparency false
13set_option linter.unusedSectionVars false
14 
15variable {A B : Type*} [Fintype A] [Fintype B] [DecidableEq A] [DecidableEq B]
16 
17def environmentRow (v : Register (A × B)) (a : A) : Register B :=
18  ⟨fun b => v (a, b), memℓp_gen (by
19    simp only [ENNReal.toReal_ofNat]; exact (hasSum_fintype _).summable)⟩
20 
21@[simp] theorem environmentRow_apply (v : Register (A × B)) (a : A) (b : B) :
22    environmentRow v a b = v (a, b) := rfl
23 
24/-- Literal action of an environment isometry on each system-index row. -/
25def environmentRotate (W : Register B →ₗᵢ[ℂ] Register B) (v : Register (A × B)) :
26    Register (A × B) :=
27  ⟨fun ab => W (environmentRow v ab.1) ab.2, memℓp_gen (by
28    simp only [ENNReal.toReal_ofNat]; exact (hasSum_fintype _).summable)⟩
29 
30@[simp] theorem environmentRotate_apply (W : Register B →ₗᵢ[ℂ] Register B)
31    (v : Register (A × B)) (a : A) (b : B) :
32    environmentRotate W v (a, b) = W (environmentRow v a) b := rfl
33 
34@[simp] theorem environmentRow_rotate (W : Register B →ₗᵢ[ℂ] Register B)
35    (v : Register (A × B)) (a : A) :
36    environmentRow (environmentRotate W v) a = W (environmentRow v a) := by
37  ext b
38  rfl
39 
40theorem register_inner_rows (v w : Register (A × B)) :
41    ⟪v, w⟫_ℂ = ∑ a, ⟪environmentRow v a, environmentRow w a⟫_ℂ := by
42  simp only [lp.inner_eq_tsum, tsum_fintype, Fintype.sum_prod_type,
43    environmentRow_apply]
44 
45theorem environmentRotate_inner (W : Register B →ₗᵢ[ℂ] Register B)
46    (v w : Register (A × B)) :
47    ⟪environmentRotate W v, environmentRotate W w⟫_ℂ = ⟪v, w⟫_ℂ := by
48  rw [register_inner_rows, register_inner_rows v w]
49  simp only [environmentRow_rotate, W.inner_map_map]
50 
51theorem environmentRotate_orthonormal {d : ℕ} {u : Fin d → Register (A × B)}
52    (hu : Orthonormal ℂ u) (W : Register B →ₗᵢ[ℂ] Register B) :
53    Orthonormal ℂ (fun j => environmentRotate W (u j)) := by
54  rw [orthonormal_iff_ite]
55  intro j k
56  rw [environmentRotate_inner, orthonormal_iff_ite.mp hu]
57 
58/-- All reduced cross coefficients are invariant, including off-diagonal
59coherences between different frame vectors. -/
60theorem environmentRotate_cross (W : Register B →ₗᵢ[ℂ] Register B)
61    (v w : Register (A × B)) (a c : A) :
62    (∑ b, environmentRotate W v (a, b) * star (environmentRotate W w (c, b))) =
63      ∑ b, v (a, b) * star (w (c, b)) := by
64  have h := W.inner_map_map (environmentRow w c) (environmentRow v a)
65  simpa only [lp.inner_eq_tsum, tsum_fintype, RCLike.inner_apply,
66    environmentRow_apply, environmentRotate_apply] using h
67 
68theorem register_operator_ext {C : Type*} [Fintype C] [DecidableEq C]
69    {X Y : Register C →L[ℂ] Register C}
70    (h : ∀ a c, X (lp.single 2 c 1) a = Y (lp.single 2 c 1) a) : X = Y := by
71  ext v a
72  have hv : v = ∑ c, v c • (lp.single 2 c 1 : Register C) := by
73    ext c
74    simp [lp.single_apply, Pi.single_apply]
75  rw [hv]
76  simp only [map_sum, map_smul, lp.coeFn_sum, Finset.sum_apply, lp.coeFn_smul,
77    Pi.smul_apply, smul_eq_mul, h]
78 
79theorem reducedTensorChannel_projector_coefficient {s : ℕ}
80    {u : Fin (s + 1) → Register (A × B)} (hu : Orthonormal ℂ u) (L : ℕ)
81    (x : TensorSpace L (s + 1)) (a c : Fin L → A) :
82    ((reducedTensorChannel hu L).toLinearMap (vectorProjector x)).1 (lp.single 2 c 1) a =
83      ∑ w : Word L (s + 1), ∑ v : Word L (s + 1), x w * star (x v) *
84        ∏ i, ∑ b : B, u (w i) (a i, b) * star (u (v i) (c i, b)) := by
85  change (partialTraceChannel.toLinearMap ((QuantumChannel.ofIsometry (regroup L)).toLinearMap
86    ((QuantumChannel.ofIsometry (tensorFrame hu L)).toLinearMap (vectorProjector x)))).1 _ _ = _
87  rw [QuantumChannel.ofIsometry_vectorProjector, QuantumChannel.ofIsometry_vectorProjector]
88  change (partialTraceLinear (vectorProjector (regroup L (tensorFrame hu L x)))).1 _ _ = _
89  rw [partialTraceLinear_coefficient]
90  simp only [vectorProjector, TraceClass.ofOperator_coe, InnerProductSpace.rankOne_apply,
91    lp.inner_single_right, RCLike.inner_apply, one_mul, lp.coeFn_smul, Pi.smul_apply,
92    smul_eq_mul, regroup_apply, tensorFrame_apply, map_sum, map_mul, map_prod]
93  calc
94    _ = ∑ b : Fin L → B, ∑ w : Word L (s + 1), ∑ v : Word L (s + 1),
95        x w * star (x v) * ∏ i, u (w i) (a i, b i) * star (u (v i) (c i, b i)) := by
96      apply Finset.sum_congr rfl
97      intro b hb
98      rw [Finset.sum_mul]
99      rw [Finset.sum_comm]
100      simp only [Finset.mul_sum]
101      apply Finset.sum_congr rfl
102      intro w hw
103      apply Finset.sum_congr rfl
104      intro v hv
105      rw [Finset.prod_mul_distrib]
106      simp only [starRingEnd_apply]
107      ring
108    _ = ∑ w : Word L (s + 1), ∑ v : Word L (s + 1), x w * star (x v) *
109        ∑ b : Fin L → B, ∏ i, u (w i) (a i, b i) * star (u (v i) (c i, b i)) := by
110      rw [Finset.sum_comm]
111      apply Finset.sum_congr rfl
112      intro w hw
113      rw [Finset.sum_comm]
114      simp only [Finset.mul_sum]
115    _ = _ := by
116      apply Finset.sum_congr rfl
117      intro w hw
118      apply Finset.sum_congr rfl
119      intro v hv
120      exact congrArg (fun t : ℂ => x w * star (x v) * t)
121        (Fintype.prod_sum (fun i b => u (w i) (a i, b) * star (u (v i) (c i, b)))).symm
122 
123theorem reducedTensorChannel_environment_projector {s : ℕ}
124    {u : Fin (s + 1) → Register (A × B)} (hu : Orthonormal ℂ u)
125    (W : Register B →ₗᵢ[ℂ] Register B) (L : ℕ) (x : TensorSpace L (s + 1)) :
126    (reducedTensorChannel (environmentRotate_orthonormal hu W) L).toLinearMap (vectorProjector x) =
127      (reducedTensorChannel hu L).toLinearMap (vectorProjector x) := by
128  apply Subtype.ext
129  apply register_operator_ext
130  intro a c
131  simp only [reducedTensorChannel_projector_coefficient, environmentRotate_cross]
132 
133/-- Haar randomization on the purifying register cancels exactly for the
134actual reduced Werner output, before any asymptotic approximation. -/
135theorem werner_reduced_environment_invariant {L s : ℕ}
136    {u : Fin (s + 1) → Register (A × B)} (hu : Orthonormal ℂ u)
137    (W : Register B →ₗᵢ[ℂ] Register B) (S : Finset (Fin L)) :
138    (reducedTensorChannel (environmentRotate_orthonormal hu W) L).toLinearMap
139      (wernerOutput (s := s) S) =
140      (reducedTensorChannel hu L).toLinearMap (wernerOutput (s := s) S) := by
141  simp only [wernerOutput, map_sum, map_smul]
142  apply Finset.sum_congr rfl
143  intro q hq
144  rw [reducedTensorChannel_environment_projector hu W L (column q)]
145 
146/-- Any probability randomization of purifying unitaries, in particular Haar
147randomization, drops from the exact reduced physical output. Measurability of
148the randomization is unnecessary because its reduced integrand is constant. -/
149theorem integral_werner_reduced_environment {L s : ℕ}
150    {u : Fin (s + 1) → Register (A × B)} (hu : Orthonormal ℂ u)
151    {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ]
152    (W : Ω → Register B →ₗᵢ[ℂ] Register B) (S : Finset (Fin L)) :
153    (∫ t, (reducedTensorChannel (environmentRotate_orthonormal hu (W t)) L).toLinearMap
154      (wernerOutput (s := s) S) ∂μ) =
155      (reducedTensorChannel hu L).toLinearMap (wernerOutput (s := s) S) := by
156  have he (t : Ω) := werner_reduced_environment_invariant hu (W t) S
157  simp_rw [he]
158  simp
159 
160end Cloning.PCT