Exact Lean source
QubitDegeneracy
formalization/Cloning/QubitDegeneracy.lean
Source hash: 2cf3bdb4a60cb48bb6239ab96f628fe7a840b7393a9f0e7f42c8b753f9b24761
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.
In the dependency map: Small errors
Declarations in this module
definition
Cloning.QubitDegeneracy.centralStatetheorem Cloning.QubitDegeneracy.centralState_matrixtheorem Cloning.QubitDegeneracy.centralState_conjugateddefinition Cloning.QubitDegeneracy.constantChanneltheorem Cloning.QubitDegeneracy.constantChannel_outputtheorem Cloning.QubitDegeneracy.constantChannel_central_payofftheorem Cloning.QubitDegeneracy.constantChannel_payofftheorem Cloning.QubitDegeneracy.tensor_diagonal_fidelitytheorem Cloning.QubitDegeneracy.diagonal_tensor_fidelity_tendstotheorem Cloning.QubitDegeneracy.constantChannel_uniformtheorem Cloning.QubitDegeneracy.fixed_samples_value_tendstotheorem Cloning.QubitDegeneracy.qubit_orbitalValuetheorem Cloning.QubitDegeneracy.orbitalValue_degeneracytheorem Cloning.QubitDegeneracy.noncommuting_limitsdefinition Cloning.QubitDegeneracy.approachingSpectrumtheorem Cloning.QubitDegeneracy.approachingSpectrum_tendstotheorem Cloning.QubitDegeneracy.concrete_noncommuting_limits1import Cloning.PhysicalCloningKnownTheorem
2import Cloning.TensorCloningUniformCovariance
3import Cloning.InfiniteFidelityHilbertSum
4
5/-! Degeneracy and sample-size limits for the actual qubit cloning problem.
6The constant channel is constructed as a completely positive, trace-preserving
7map, and its convergence is uniform over the entire unitary orbit. -/
8noncomputable section
9open scoped BigOperators Topology Matrix ComplexOrder
10open Filter
11namespace Cloning.QubitDegeneracy
12open Cloning.PCT Cloning.PCTPhysicalState Cloning.PCTUnitaryTransport
13open Cloning.TensorCloning Cloning.InfiniteTraceClass Cloning.Hybrid
14open Cloning.InfiniteFiniteCorner Cloning.PCTPurificationChannel
15set_option backward.isDefEq.respectTransparency false
16set_option maxHeartbeats 1000000
17
18private theorem state_eq_of_matrix_eq (ρ σ : MatrixFidelity.State (Fin 2))
19 (h : ρ.matrix = σ.matrix) : ρ = σ := by
20 cases ρ
21 cases σ
22 cases h
23 rfl
24
25def centralState : MatrixFidelity.State (Fin 2) :=
26 diagonalState (fun _ => (1/2:ℝ)) (by intro i; norm_num) (by norm_num [Fin.sum_univ_two])
27
28theorem centralState_matrix : centralState.matrix = (1/2:ℂ) • (1 : Matrix (Fin 2) (Fin 2) ℂ) := by
29 ext i j
30 simp [centralState, diagonalState, Matrix.diagonal_apply, Matrix.one_apply]
31
32theorem centralState_conjugated (U : unitary (Matrix (Fin 2) (Fin 2) ℂ)) :
33 conjugatedState centralState U = centralState := by
34 apply state_eq_of_matrix_eq
35 change (U : Matrix (Fin 2) (Fin 2) ℂ) * centralState.matrix *
36 (U : Matrix (Fin 2) (Fin 2) ℂ)ᴴ = centralState.matrix
37 rw [centralState_matrix]
38 have hU : (U : Matrix (Fin 2) (Fin 2) ℂ) * (U : Matrix (Fin 2) (Fin 2) ℂ)ᴴ = 1 :=
39 Unitary.mul_star_self_of_mem U.property
40 simp only [Matrix.mul_smul, Matrix.smul_mul, Matrix.mul_one, hU]
41
42def constantChannel (n m : ℕ) :
43 QuantumChannel (Register (Fin n → Fin 2)) (Register (Fin m → Fin 2)) where
44 toLinearMap := traceCLM.toLinearMap.smulRight (tensorState centralState m).1
45 completelyPositive := fun _ _ hA => hA.replace _ (tensorState centralState m).2
46 map_nonneg := by
47 intro A hA
48 change 0 ≤ traceCLM A • (tensorState centralState m).1.1
49 rw [show traceCLM A = (‖A‖ : ℂ) from trace_eq_traceNorm_of_nonneg hA A.2]
50 exact smul_nonneg (by exact_mod_cast norm_nonneg A) (tensorState centralState m).2
51 trace_preserving := by
52 intro A
53 change traceCLM (traceCLM A • (tensorState centralState m).1) = traceCLM A
54 rw [map_smul]
55 have ht : traceCLM (tensorState centralState m).1 = 1 :=
56 (Cloning.PhysicalCloningConverse.tensorDensity centralState m).trace_one
57 rw [ht, smul_eq_mul, mul_one]
58
59theorem constantChannel_output (n m : ℕ) (ρ : MatrixFidelity.State (Fin 2)) :
60 (tensorState ρ n).map (constantChannel n m).toPositiveTracePreservingMap =
61 tensorState centralState m := by
62 apply Subtype.ext
63 change traceCLM (tensorState ρ n).1 • (tensorState centralState m).1 = _
64 have ht : traceCLM (tensorState ρ n).1 = 1 :=
65 (Cloning.PhysicalCloningConverse.tensorDensity ρ n).trace_one
66 rw [ht, one_smul]
67
68/-- At the degeneracy itself the physical constant channel clones exactly,
69at every finite pair of input and output sample sizes. -/
70theorem constantChannel_central_payoff (n m : ℕ) :
71 statePayoff n m (constantChannel n m) centralState = 1 := by
72 rw [statePayoff, constantChannel_output, PositiveTraceClass.rootFidelity_self,
73 norm_tensorState]
74
75theorem constantChannel_payoff (n m : ℕ) (p : SimpleSpectrum 2)
76 (U : unitary (Matrix (Fin 2) (Fin 2) ℂ)) :
77 spectrumPayoff n m (constantChannel n m) p U =
78 (tensorState centralState m).rootFidelity
79 (tensorState (diagonalState p.eigenvalue (fun i => (p.positive i).le) p.normalized) m) := by
80 let ρ := diagonalState p.eigenvalue (fun i => (p.positive i).le) p.normalized
81 have hc : (tensorState centralState m).map
82 (unitaryChannel (tensorUnitary U m)).toPositiveTracePreservingMap =
83 tensorState centralState m := by
84 apply Subtype.ext
85 change (unitaryChannel (tensorUnitary U m)).toLinearMap (tensorState centralState m).1 = _
86 rw [tensorState_conjugated, centralState_conjugated]
87 have hp : (tensorState ρ m).map
88 (unitaryChannel (tensorUnitary U m)).toPositiveTracePreservingMap =
89 tensorState (conjugatedState ρ U) m := Subtype.ext (tensorState_conjugated ρ U m)
90 change ((tensorState (orbitState p U) n).map _).rootFidelity _ = _
91 rw [constantChannel_output]
92 change (tensorState centralState m).rootFidelity (tensorState (conjugatedState ρ U) m) = _
93 calc
94 _ = ((tensorState centralState m).map
95 (unitaryChannel (tensorUnitary U m)).toPositiveTracePreservingMap).rootFidelity
96 ((tensorState ρ m).map
97 (unitaryChannel (tensorUnitary U m)).toPositiveTracePreservingMap) := by rw [hc, hp]
98 _ = _ := rootFidelity_unitaryChannel _ _ _
99
100theorem tensor_diagonal_fidelity (m : ℕ) (p : SimpleSpectrum 2) :
101 (tensorState centralState m).rootFidelity
102 (tensorState (diagonalState p.eigenvalue (fun i => (p.positive i).le) p.normalized) m) =
103 ∑ w : Fin m → Fin 2, Real.sqrt ((1/2:ℝ)^m * ∏ i, p.eigenvalue (w i)) := by
104 rw [← Cloning.InfiniteFidelityHilbertSum.rootFidelity_matrixOf_basis
105 (registerBasis (Fin m → Fin 2)).toOrthonormalBasis]
106 simp only [HilbertBasis.coe_toOrthonormalBasis]
107 change MatrixFidelity.fidelity
108 (matrixOf (registerBasis _) (ofMatrix (registerBasis _) (tensorPower m centralState.matrix)))
109 (matrixOf (registerBasis _) (ofMatrix (registerBasis _)
110 (tensorPower m (Matrix.diagonal (fun i => (p.eigenvalue i : ℂ)))))) = _
111 rw [matrixOf_ofMatrix (registerBasis _).orthonormal,
112 matrixOf_ofMatrix (registerBasis _).orthonormal]
113 change MatrixFidelity.fidelity
114 (tensorPower m (Matrix.diagonal (fun _ => ((1/2:ℝ):ℂ))))
115 (tensorPower m (Matrix.diagonal (fun i => (p.eigenvalue i : ℂ)))) = _
116 rw [tensorPower_diagonal, tensorPower_diagonal]
117 simp only [Finset.prod_const, Finset.card_univ, Fintype.card_fin, ← Complex.ofReal_pow,
118 ← Complex.ofReal_prod]
119 simpa only [BlockFidelity.classicalAffinity,
120 Real.sqrt_mul (show 0 ≤ (1/2:ℝ)^m by positivity)] using
121 MatrixFidelity.fidelity_diagonal_real (fun _ : Fin m → Fin 2 => (1/2:ℝ)^m)
122 (fun w => ∏ i, p.eigenvalue (w i))
123 (fun _ => pow_nonneg (by norm_num) _) (fun _ => Finset.prod_nonneg (fun _ _ => (p.positive _).le))
124
125theorem diagonal_tensor_fidelity_tendsto {ι : Type*} {l : Filter ι}
126 (p : ι → SimpleSpectrum 2)
127 (hp : ∀ i, Tendsto (fun j => (p j).eigenvalue i) l (𝓝 (1/2:ℝ))) (m : ℕ) :
128 Tendsto (fun j => (tensorState centralState m).rootFidelity
129 (tensorState (diagonalState (p j).eigenvalue (fun i => ((p j).positive i).le)
130 (p j).normalized) m)) l (𝓝 1) := by
131 have h := tendsto_finset_sum Finset.univ (fun w (_ : w ∈ (Finset.univ : Finset (Fin m → Fin 2))) =>
132 ((tendsto_finset_prod Finset.univ (fun i _ => hp (w i))).const_mul ((1/2:ℝ)^m)).sqrt)
133 have hv : (∑ w : Fin m → Fin 2,
134 Real.sqrt ((1/2:ℝ)^m * ∏ _i : Fin m, (1/2:ℝ))) = 1 := by
135 simp only [Finset.prod_const, Finset.card_univ, Fintype.card_fin, ← pow_two]
136 rw [Real.sqrt_sq (by positivity : 0 ≤ (1/2:ℝ)^m)]
137 simp only [Finset.sum_const, Finset.card_univ, Fintype.card_fun,
138 Fintype.card_fin, nsmul_eq_mul, Nat.cast_pow, Nat.cast_ofNat]
139 rw [← mul_pow]
140 norm_num
141 rw [hv] at h
142 simpa only [tensor_diagonal_fidelity] using h
143
144/-- A single physical constant channel approaches perfect fidelity uniformly
145over all eigenbases when the qubit spectrum approaches degeneracy. -/
146theorem constantChannel_uniform {ι : Type*} {l : Filter ι}
147 (p : ι → SimpleSpectrum 2)
148 (hp : ∀ i, Tendsto (fun j => (p j).eigenvalue i) l (𝓝 (1/2:ℝ)))
149 (n m : ℕ) {ε : ℝ} (hε : 0 < ε) :
150 ∀ᶠ j in l, ∀ U : unitary (Matrix (Fin 2) (Fin 2) ℂ),
151 1-ε < spectrumPayoff n m (constantChannel n m) (p j) U := by
152 have h := (diagonal_tensor_fidelity_tendsto p hp m).eventually_const_lt
153 (show 1-ε < 1 by linarith)
154 filter_upwards [h] with j hj U
155 rw [constantChannel_payoff]
156 exact hj
157
158/-- The physical all-channel optimum has the same fixed-sample degeneracy
159limit, without restricting the channel optimization. -/
160theorem fixed_samples_value_tendsto {ι : Type*} {l : Filter ι}
161 (p : ι → SimpleSpectrum 2)
162 (hp : ∀ i, Tendsto (fun j => (p j).eigenvalue i) l (𝓝 (1/2:ℝ))) (n m : ℕ) :
163 Tendsto (fun j => knownSpectrumValue n m (p j)) l (𝓝 1) := by
164 apply tendsto_order.mpr
165 constructor
166 · intro a ha
167 have h := constantChannel_uniform p hp n m (show 0 < 1-a by linarith)
168 filter_upwards [h] with j hj
169 have hb := LAN.candidate_le_minimaxValue (spectrumPayoff n m · (p j))
170 (constantChannel n m) (spectrumPayoff n m (constantChannel n m) (p j) 1)
171 (fun Φ U => spectrumPayoff_le_one n m Φ (p j) U)
172 (fun U => by dsimp only; simp only [constantChannel_payoff, le_refl])
173 (fun Φ U => spectrumPayoff_nonneg n m Φ (p j) U)
174 change spectrumPayoff n m (constantChannel n m) (p j) 1 ≤ knownSpectrumValue n m (p j) at hb
175 have hh := hj 1
176 linarith
177 · intro a ha
178 exact Eventually.of_forall (fun j => (knownSpectrumValue_le_one n m (p j)).trans_lt ha)
179
180theorem qubit_orbitalValue (p : SimpleSpectrum 2) (g : ℝ) :
181 orbitalValue g p = Thermal.modeFactor g (p.eigenvalue 1/p.eigenvalue 0) := by
182 have hi : (Finset.univ : Finset (PairIndex 2)) = {⟨(0,1),by decide⟩} := by decide
183 simp only [orbitalValue, hi, Finset.prod_singleton, SimpleSpectrum.ratio]
184
185theorem orbitalValue_degeneracy {ι : Type*} {l : Filter ι}
186 (p : ι → SimpleSpectrum 2)
187 (hp : ∀ i, Tendsto (fun j => (p j).eigenvalue i) l (𝓝 (1/2:ℝ)))
188 {g : ℝ} (hg : 1 < g) :
189 Tendsto (fun j => orbitalValue g (p j)) l (𝓝 (Thermal.classicalBase g)) := by
190 have hr : Tendsto (fun j => (p j).eigenvalue 1/(p j).eigenvalue 0) l (𝓝 1) := by
191 simpa using (hp 1).div (hp 0) (by norm_num : (1/2:ℝ) ≠ 0)
192 have h := (Thermal.modeFactor_continuousAt (g := g) (q := 1) (by linarith)).tendsto.comp
193 (tendsto_const_nhds.prodMk_nhds hr)
194 have he : Thermal.modeFactor g 1 = Thermal.classicalBase g := by
195 simp only [Thermal.modeFactor, Thermal.classicalBase, one_mul, sub_add_cancel]
196 ring
197 simpa only [qubit_orbitalValue, Function.comp_apply, he] using h
198
199/-- The two iterated limits are different for the genuine physical optimum:
200taking the large-sample limit first gives a strict loss, while taking the
201degeneracy limit first gives one at every sample size. -/
202theorem noncommuting_limits (p : ℕ → SimpleSpectrum 2)
203 (hp : ∀ i, Tendsto (fun j => (p j).eigenvalue i) atTop (𝓝 (1/2:ℝ)))
204 (m : ℕ → ℕ) {g : ℝ} (hg : 1 < g)
205 (hgain : Tendsto (fun n => (m n : ℝ)/n) atTop (𝓝 g)) :
206 Tendsto (fun j => limsup (fun n => knownSpectrumValue n (m n) (p j)) atTop)
207 atTop (𝓝 (Thermal.classicalBase g)) ∧
208 Tendsto (fun n => limsup (fun j => knownSpectrumValue n (m n) (p j)) atTop)
209 atTop (𝓝 1) ∧ Thermal.classicalBase g < 1 := by
210 constructor
211 · have he (j : ℕ) := (knownSpectrumValue_tendsto (p j) m g hg hgain).limsup_eq
212 simpa only [he] using orbitalValue_degeneracy p hp hg
213 constructor
214 · have he (n : ℕ) := (fixed_samples_value_tendsto p hp n (m n)).limsup_eq
215 simpa only [he] using (tendsto_const_nhds : Tendsto (fun _ : ℕ => (1:ℝ)) atTop (𝓝 1))
216 · exact Thermal.classicalBase_lt_one hg
217
218/-- An explicit full-rank simple qubit spectrum with a vanishing gap. -/
219def approachingSpectrum (j : ℕ) : SimpleSpectrum 2 where
220 eigenvalue := ![(1+((j:ℝ)+3)⁻¹)/2, (1-((j:ℝ)+3)⁻¹)/2]
221 positive := by
222 have hj : 0 < (j:ℝ)+3 := by positivity
223 have hi : ((j:ℝ)+3)⁻¹ < 1 := (inv_lt_one₀ hj).mpr (by linarith [Nat.cast_nonneg (α := ℝ) j])
224 intro i
225 fin_cases i
226 · change 0 < (1+((j:ℝ)+3)⁻¹)/2
227 positivity
228 · change 0 < (1-((j:ℝ)+3)⁻¹)/2
229 linarith
230 strictAnti := by
231 have hi : 0 < ((j:ℝ)+3)⁻¹ := by positivity
232 intro i k hik
233 have hi0 : i = 0 := by apply Fin.ext; have := k.isLt; change i.val < k.val at hik; omega
234 have hk1 : k = 1 := by apply Fin.ext; have := k.isLt; change i.val < k.val at hik; omega
235 subst i
236 subst k
237 change (1-((j:ℝ)+3)⁻¹)/2 < (1+((j:ℝ)+3)⁻¹)/2
238 linarith
239 normalized := by simp [Fin.sum_univ_two]; ring
240
241theorem approachingSpectrum_tendsto (i : Fin 2) :
242 Tendsto (fun j => (approachingSpectrum j).eigenvalue i) atTop (𝓝 (1/2:ℝ)) := by
243 have h : Tendsto (fun j : ℕ => ((j:ℝ)+3)⁻¹) atTop (𝓝 0) :=
244 tendsto_inv_atTop_zero.comp
245 (tendsto_atTop_add_const_right atTop 3 tendsto_natCast_atTop_atTop)
246 fin_cases i
247 · simpa [approachingSpectrum] using (h.const_add 1).div_const 2
248 · simpa [approachingSpectrum] using (h.const_sub 1).div_const 2
249
250/-- Concrete noncommutation: the spectrum path is constructed internally. -/
251theorem concrete_noncommuting_limits (m : ℕ → ℕ) {g : ℝ} (hg : 1 < g)
252 (hgain : Tendsto (fun n => (m n : ℝ)/n) atTop (𝓝 g)) :
253 Tendsto (fun j => limsup (fun n => knownSpectrumValue n (m n) (approachingSpectrum j)) atTop)
254 atTop (𝓝 (Thermal.classicalBase g)) ∧
255 Tendsto (fun n => limsup (fun j => knownSpectrumValue n (m n) (approachingSpectrum j)) atTop)
256 atTop (𝓝 1) ∧ Thermal.classicalBase g < 1 :=
257 noncommuting_limits approachingSpectrum approachingSpectrum_tendsto m hg hgain
258
259end Cloning.QubitDegeneracy