Exact Lean source
PhysicalCloningConverseChart
formalization/Cloning/PhysicalCloningConverseChart.lean
Source hash: 5167750bb691057d13d0b07ab419e95cecafc09678c2f0dc11daa96093d29daa
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.PhysicalCloningConverse.phaseParameterstheorem Cloning.PhysicalCloningConverse.continuous_phaseParameterstheorem Cloning.PhysicalCloningConverse.phaseParameters_sum_zerotheorem Cloning.PhysicalCloningConverse.parameterTranslation_phaseParameterstheorem Cloning.PhysicalCloningConverse.compact_phaseParametersdefinition Cloning.PhysicalCloningConverse.localEigenvaluestheorem Cloning.PhysicalCloningConverse.localEigenvalues_sumdefinition Cloning.PhysicalCloningConverse.localUnitarytheorem Cloning.PhysicalCloningConverse.localUnitary_stardefinition Cloning.PhysicalCloningConverse.localStatetheorem Cloning.PhysicalCloningConverse.localState_matrixtheorem Cloning.PhysicalCloningConverse.tensorState_localStatetheorem Cloning.PhysicalCloningConverse.orbitalGenerator_smuldefinition Cloning.PhysicalCloningConverse.sampleRatiotheorem Cloning.PhysicalCloningConverse.sampleScale_mul_sampleRatiotheorem Cloning.PhysicalCloningConverse.chartMatrix_rescaletheorem Cloning.PhysicalCloningConverse.tensorState_localState_outputtheorem Cloning.PhysicalCloningConverse.sampleRatio_tendsto1import Cloning.PCTPhysicalFidelityLAN
2import Cloning.PCTJointGaussianChart
3import Cloning.TensorCloningPayoff
4import Cloning.TensorGibbsLocalUnitary
5
6/-! Literal local physical states and the exact change of sample size needed
7by the cloning converse. No LAN approximation is asserted here. -/
8noncomputable section
9open scoped BigOperators Topology Matrix Matrix.Norms.L2Operator
10open Filter NormedSpace
11namespace Cloning.PhysicalCloningConverse
12open Cloning.PCT Cloning.PCTLocalChart Cloning.PCTPhysicalFidelity
13open Cloning.PCTPhysicalState Cloning.PCTUnitaryTransport Cloning.PCTJointGaussianWhitening
14open Cloning.TensorLie Cloning.Hybrid
15set_option backward.isDefEq.respectTransparency false
16set_option maxHeartbeats 1400000
17variable {k s : ℕ}
18local instance : NormedAlgebra ℚ (Matrix (Fin (k+1)) (Fin (k+1)) ℂ) :=
19 NormedAlgebra.restrictScalars ℚ ℂ _
20
21def phaseParameters (p : SimpleSpectrum (k+1))
22 (b : Fin (k+1) → EuclideanSpace ℝ (Fin (k+1))) (e : Fin s ≃ PairIndex (k+1))
23 (ξ : PhaseSpace k s) : Parameters k :=
24 (unwhiten p.eigenvalue b ξ.1, fun a => ξ.2 (e.symm a))
25
26theorem continuous_phaseParameters (p : SimpleSpectrum (k+1))
27 (b : Fin (k+1) → EuclideanSpace ℝ (Fin (k+1))) (e : Fin s ≃ PairIndex (k+1)) :
28 Continuous (phaseParameters p b e) :=
29 ((continuous_unwhiten p.eigenvalue b).comp continuous_fst).prodMk (by fun_prop)
30
31theorem phaseParameters_sum_zero (p : SimpleSpectrum (k+1))
32 (b : OrthonormalBasis (Fin (k+1)) ℝ (EuclideanSpace ℝ (Fin (k+1))))
33 (hb : b 0 = sqrtSpectrum p.eigenvalue) (e : Fin s ≃ PairIndex (k+1))
34 (ξ : PhaseSpace k s) : ∑ i, (phaseParameters p b e ξ).1 i = 0 :=
35 unwhiten_sum_zero p.eigenvalue b hb ξ.1
36
37theorem parameterTranslation_phaseParameters (p : SimpleSpectrum (k+1))
38 (b : OrthonormalBasis (Fin (k+1)) ℝ (EuclideanSpace ℝ (Fin (k+1))))
39 (e : Fin s ≃ PairIndex (k+1)) (ξ : PhaseSpace k s) :
40 parameterTranslation p b e (phaseParameters p b e ξ) = ξ := by
41 apply Prod.ext
42 · exact whiten_unwhiten p.eigenvalue p.positive b ξ.1
43 · funext i
44 exact congrArg ξ.2 (e.symm_apply_apply i)
45
46theorem compact_phaseParameters (p : SimpleSpectrum (k+1))
47 (b : Fin (k+1) → EuclideanSpace ℝ (Fin (k+1))) (e : Fin s ≃ PairIndex (k+1))
48 (K : Set (PhaseSpace k s)) (hK : IsCompact K) :
49 IsCompact (phaseParameters p b e '' K) := hK.image (continuous_phaseParameters p b e)
50
51def localEigenvalues (p : SimpleSpectrum (k+1)) (θ : Parameters k) (n : ℕ) : Fin (k+1) → ℝ :=
52 fun i => p.eigenvalue i + sampleScale n * θ.1 i
53
54theorem localEigenvalues_sum (p : SimpleSpectrum (k+1)) (θ : Parameters k) (n : ℕ)
55 (hθ : ∑ i, θ.1 i = 0) : ∑ i, localEigenvalues p θ n i = 1 := by
56 simp only [localEigenvalues, Finset.sum_add_distrib, ← Finset.mul_sum, hθ,
57 mul_zero, add_zero, p.normalized]
58
59def localUnitary (p : SimpleSpectrum (k+1)) (θ : Parameters k) (n : ℕ) :
60 unitary (Matrix (Fin (k+1)) (Fin (k+1)) ℂ) :=
61 ⟨exp (sampleScale n • orbitalGenerator p.eigenvalue θ.2), by
62 apply exp_mem_unitary_of_mem_skewAdjoint
63 change star (sampleScale n • orbitalGenerator p.eigenvalue θ.2) = _
64 rw [star_smul, star_trivial]
65 change sampleScale n • (orbitalGenerator p.eigenvalue θ.2)ᴴ = _
66 rw [orbitalGenerator_star, smul_neg]⟩
67
68theorem localUnitary_star (p : SimpleSpectrum (k+1)) (θ : Parameters k) (n : ℕ) :
69 ((localUnitary p θ n : Matrix (Fin (k+1)) (Fin (k+1)) ℂ))ᴴ =
70 exp (-(sampleScale n • orbitalGenerator p.eigenvalue θ.2)) := by
71 change star (exp (sampleScale n • orbitalGenerator p.eigenvalue θ.2)) = _
72 rw [star_exp, star_smul, star_trivial]
73 change exp (sampleScale n • (orbitalGenerator p.eigenvalue θ.2)ᴴ) = _
74 rw [orbitalGenerator_star, smul_neg]
75
76def localState (p : SimpleSpectrum (k+1)) (θ : Parameters k) (n : ℕ)
77 (hθ : ∑ i, θ.1 i = 0) (hp : ∀ i, 0 ≤ localEigenvalues p θ n i) :
78 Cloning.MatrixFidelity.State (Fin (k+1)) :=
79 conjugatedState (diagonalState (localEigenvalues p θ n) hp (localEigenvalues_sum p θ n hθ))
80 (localUnitary p θ n)
81
82@[simp] theorem localState_matrix (p : SimpleSpectrum (k+1)) (θ : Parameters k) (n : ℕ)
83 (hθ : ∑ i, θ.1 i = 0) (hp : ∀ i, 0 ≤ localEigenvalues p θ n i) :
84 (localState p θ n hθ hp).matrix = chartMatrix p θ n := by
85 change _ * _ * ((localUnitary p θ n : Matrix (Fin (k+1)) (Fin (k+1)) ℂ))ᴴ = _
86 rw [localUnitary_star]
87 rfl
88
89@[simp] theorem tensorState_localState (p : SimpleSpectrum (k+1)) (θ : Parameters k) (n : ℕ)
90 (hθ : ∑ i, θ.1 i = 0) (hp : ∀ i, 0 ≤ localEigenvalues p θ n i) :
91 (tensorState (localState p θ n hθ hp) n).1 = chartTensor p θ n := by
92 change matrixTensorPower (localState p θ n hθ hp).matrix n = _
93 rw [localState_matrix]
94 rfl
95
96theorem orbitalGenerator_smul (p : Fin (k+1) → ℝ) (c : ℝ) (z : PairIndex (k+1) → ℂ) :
97 orbitalGenerator p (c • z) = c • orbitalGenerator p z := by
98 ext i j
99 simp only [orbitalGenerator, Pi.smul_apply, star_smul, star_trivial,
100 Matrix.smul_apply, smul_neg, smul_div_assoc, smul_ite, smul_zero]
101 split_ifs <;> simp <;> ring
102
103/-- The finite-sample output displacement factor, before its asymptotic limit. -/
104def sampleRatio (n m : ℕ) : ℝ := Real.sqrt (m : ℝ) / Real.sqrt (n : ℝ)
105
106theorem sampleScale_mul_sampleRatio (n m : ℕ) (hm : 0 < m) :
107 sampleScale m * sampleRatio n m = sampleScale n := by
108 unfold sampleScale sampleRatio
109 have hm' : Real.sqrt (m : ℝ) ≠ 0 := (Real.sqrt_pos.mpr (Nat.cast_pos.mpr hm)).ne'
110 field_simp
111
112/-- The same physical one-site state has exactly the rescaled output LAN parameter. -/
113theorem chartMatrix_rescale (p : SimpleSpectrum (k+1)) (θ : Parameters k)
114 (n m : ℕ) (hm : 0 < m) :
115 chartMatrix p (sampleRatio n m • θ) m = chartMatrix p θ n := by
116 unfold chartMatrix
117 simp only [Prod.smul_fst, Prod.smul_snd, orbitalGenerator_smul, smul_smul,
118 sampleScale_mul_sampleRatio n m hm, Pi.smul_apply, smul_eq_mul, ← mul_assoc]
119
120theorem tensorState_localState_output (p : SimpleSpectrum (k+1)) (θ : Parameters k)
121 (n m : ℕ) (hm : 0 < m) (hθ : ∑ i, θ.1 i = 0)
122 (hp : ∀ i, 0 ≤ localEigenvalues p θ n i) :
123 (tensorState (localState p θ n hθ hp) m).1 =
124 chartTensor p (sampleRatio n m • θ) m := by
125 change matrixTensorPower (localState p θ n hθ hp).matrix m =
126 matrixTensorPower (chartMatrix p (sampleRatio n m • θ) m) m
127 rw [localState_matrix, chartMatrix_rescale p θ n m hm]
128
129theorem sampleRatio_tendsto (m : ℕ → ℕ) (g : ℝ)
130 (hg : Tendsto (fun n => (m n : ℝ)/(n : ℝ)) atTop (𝓝 g)) :
131 Tendsto (fun n => sampleRatio n (m n)) atTop (𝓝 (Real.sqrt g)) := by
132 have he : (fun n => sampleRatio n (m n)) = (fun n => Real.sqrt ((m n : ℝ)/(n : ℝ))) := by
133 funext n
134 exact (Real.sqrt_div (Nat.cast_nonneg (m n)) (n : ℝ)).symm
135 rw [he]
136 exact Real.continuous_sqrt.continuousAt.tendsto.comp hg
137
138end Cloning.PhysicalCloningConverse