Offline · exact source
Exact Lean source

PCTPhysicalFidelityUnitary

formalization/Cloning/PCTPhysicalFidelityUnitary.lean

Source hash: 0892416177c866bb0eaa2144dc4a92dd0fa5714dc706da58cbedd087291460a3

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.PCTPhysicalFidelity
2import Cloning.PCTUnitaryTransportChannels
3 
4/-! Physical PCT fidelity on the entire unitary orbit of every simple
5full-rank spectrum. The only analytic hypothesis is genuine compact-window
6mixed LAN at the diagonal base. The physical protocol is unchanged. -/
7noncomputable section
8open scoped BigOperators Matrix InnerProductSpace ComplexOrder Topology
9open MeasureTheory Filter Cloning.InfiniteTraceClass Cloning.Hybrid
10namespace Cloning.PCTPhysicalFidelity
11open Cloning.PCT Cloning.PCTReducedGaussian Cloning.PCTPhysicalState Cloning.PCTUnitaryTransport
12open Cloning.PCTJointGaussianWhitening Cloning.PCTPurificationChannel
13open Cloning.MultimodeCoherent Cloning.MultimodeCoherentGaussianMixture
14set_option backward.isDefEq.respectTransparency false
15set_option maxHeartbeats 1000000
16variable {k d s : ℕ}
17 
18theorem mapped_error_tendsto
19    (M : ∀ L, QuantumChannel (Register (Fin L → Fin (k+1))) (Register (Fin L → Fin (k+1))))
20    (X Y : ∀ L, TraceClass (Register (Fin L → Fin (k+1))))
21    (h : Tendsto (fun L => ‖X L - Y L‖) atTop (𝓝 0)) :
22    Tendsto (fun L => ‖(M L).toLinearMap (X L) - (M L).toLinearMap (Y L)‖)
23      atTop (𝓝 0) := by
24  apply squeeze_zero (fun L => norm_nonneg _) _ (by simpa using h.const_mul 2)
25  intro L
26  rw [← map_sub]
27  exact (M L).toPositiveTracePreservingMap.norm_map_le_two_mul _
28 
29def rotatedForward {p : SimpleSpectrum (k+1)}
30    {b : Fin (k+1) → EuclideanSpace ℝ (Fin (k+1))} {e : Fin d ≃ PairIndex (k+1)}
31    (lan : CompactWindowLAN p b e) (U : unitary (Matrix (Fin (k+1)) (Fin (k+1)) ℂ)) (L : ℕ) :=
32  (lan.forward L).compQuantum (unitaryChannel (tensorUnitary (star U) L))
33 
34def rotatedReverse {p : SimpleSpectrum (k+1)}
35    {b : Fin (k+1) → EuclideanSpace ℝ (Fin (k+1))} {e : Fin d ≃ PairIndex (k+1)}
36    (lan : CompactWindowLAN p b e) (U : unitary (Matrix (Fin (k+1)) (Fin (k+1)) ℂ)) (L : ℕ) :=
37  postQuantum (unitaryChannel (tensorUnitary U L)) (lan.reverse L)
38 
39theorem CompactWindowLAN.rotated_seed_limits
40    {p : SimpleSpectrum (k+1)}
41    {b : Fin (k+1) → EuclideanSpace ℝ (Fin (k+1))} {e : Fin d ≃ PairIndex (k+1)}
42    (lan : CompactWindowLAN p b e) (U : unitary (Matrix (Fin (k+1)) (Fin (k+1)) ℂ)) :
43    Tendsto (fun L => ‖(rotatedForward lan U L).map
44      (tensorState (conjugatedState (baseState p) U) L).1 - (reference p e).1‖) atTop (𝓝 0) ∧
45    Tendsto (fun L => ‖(rotatedReverse lan U L).map (reference p e).1 -
46      (tensorState (conjugatedState (baseState p) U) L).1‖) atTop (𝓝 0) := by
47  constructor
48  · simpa only [rotatedForward, QuantumToHybrid.compQuantum_apply, tensorState_conjugated_inverse]
49      using lan.seed_limits.1
50  · have h := mapped_error_tendsto (fun L => unitaryChannel (tensorUnitary U L))
51      (fun L => (lan.reverse L).map (reference p e).1)
52      (fun L => (tensorState (baseState p) L).1) lan.seed_limits.2
53    simpa only [rotatedReverse, postQuantum_apply, tensorState_conjugated] using h
54 
55theorem CompactWindowLAN.rotated_frame_limits
56    {p : SimpleSpectrum (k+1)}
57    {b : Fin (k+1) → EuclideanSpace ℝ (Fin (k+1))} {e : Fin d ≃ PairIndex (k+1)}
58    (lan : CompactWindowLAN p b e) (U : unitary (Matrix (Fin (k+1)) (Fin (k+1)) ℂ))
59    (u : OrthonormalBasis (Fin (s+1)) ℂ (Register (Fin (k+1) × Fin (k+1))))
60    (hu : transportFrame u (star U) 0 = coefficientVector (schmidtCoefficients p.eigenvalue))
61    (z : Fin s → ℂ) :
62    Tendsto (fun L => ‖(rotatedForward lan U L).map (frameState u z L).1 -
63      (frameModel p b e (transportFrame u (star U)) z).1‖) atTop (𝓝 0) ∧
64    Tendsto (fun L => ‖(rotatedReverse lan U L).map
65      (frameModel p b e (transportFrame u (star U)) z).1 - (frameState u z L).1‖)
66      atTop (𝓝 0) := by
67  have h := lan.frame_limits (transportFrame u (star U)) hu z
68  constructor
69  · simpa only [rotatedForward, QuantumToHybrid.compQuantum_apply, frameState_transport] using h.1
70  · have hm := mapped_error_tendsto (fun L => unitaryChannel (tensorUnitary U L))
71      (fun L => (lan.reverse L).map (frameModel p b e (transportFrame u (star U)) z).1)
72      (fun L => (frameState (transportFrame u (star U)) z L).1) h.2
73    have he (L : ℕ) : (unitaryChannel (tensorUnitary U L)).toLinearMap
74        (frameState (transportFrame u (star U)) z L).1 = (frameState u z L).1 := by
75      simpa only [star_star] using frameState_transport_inverse u (star U) z L
76    simpa only [rotatedReverse, postQuantum_apply, he] using hm
77 
78/-- Full unitary-orbit physical PCT fidelity, conditional solely on the
79explicit genuine compact-window mixed-LAN property at the simple spectrum. -/
80theorem physical_pct_fidelity_unitary_of_compactWindowLAN
81    (p : SimpleSpectrum (k+1))
82    (b : OrthonormalBasis (Fin (k+1)) ℝ (EuclideanSpace ℝ (Fin (k+1))))
83    (hb : b 0 = sqrtSpectrum p.eigenvalue) (e : Fin d ≃ PairIndex (k+1))
84    (lan : CompactWindowLAN p b e) (U : unitary (Matrix (Fin (k+1)) (Fin (k+1)) ℂ))
85    (hs : 1 ≤ s) (hcard : Fintype.card (Fin (k+1) × Fin (k+1)) = s+1)
86    (r : ℕ → ℕ) (γ : ℝ) (hγ : 1 < γ)
87    (hr : Tendsto (fun n => ((n+r n : ℕ) : ℝ) / n) atTop (𝓝 γ)) :
88    Tendsto (fun n =>
89      (outputState hcard (conjugatedState (baseState p) U) n (r n)).rootFidelity
90      (tensorState (conjugatedState (baseState p) U) (n+r n))) atTop (𝓝 (pctValue γ p)) := by
91  letI := gaussianProductMeasure_probability (fun _ : Fin s => sub_pos.mpr hγ)
92  obtain ⟨u, hu, hphysical⟩ := Cloning.PCTGlobal.channel_gaussian_product_mixture
93    hs hcard (conjugatedState (baseState p) U) r hγ hr
94  let v := transportFrame u (star U)
95  have hv : v 0 = coefficientVector (schmidtCoefficients p.eigenvalue) :=
96    (transportFrame_canonical_zero u (baseState p) U hu).trans
97      (canonicalPurification_diagonal p.eigenvalue (fun i => (p.positive i).le))
98  have hm : Tendsto (fun n => n+r n) atTop atTop :=
99    tendsto_atTop_mono (fun n => Nat.le_add_right n (r n)) tendsto_id
100  have hseed := lan.rotated_seed_limits U
101  have hforward : ∀ᵐ z ∂gaussianProductMeasure (fun _ : Fin s => γ-1),
102      Tendsto (fun n => ‖(rotatedForward lan U (n+r n)).map (frameState u z (n+r n)).1 -
103        (frameModel p b e v z).1‖) atTop (𝓝 0) :=
104    Eventually.of_forall (fun z => (lan.rotated_frame_limits U u hv z).1.comp hm)
105  have hreverse : ∀ᵐ z ∂gaussianProductMeasure (fun _ : Fin s => γ-1),
106      Tendsto (fun n => ‖(rotatedReverse lan U (n+r n)).map (frameModel p b e v z).1 -
107        (frameState u z (n+r n)).1‖) atTop (𝓝 0) :=
108    Eventually.of_forall (fun z => (lan.rotated_frame_limits U u hv z).2.comp hm)
109  have hf := Cloning.MixedLANTransfer.fidelity_tendsto_of_mixed_mixture
110    (fun n => rotatedForward lan U (n+r n)) (fun n => rotatedReverse lan U (n+r n))
111    (fun n => tensorState (conjugatedState (baseState p) U) (n+r n))
112    (fun n => outputState hcard (conjugatedState (baseState p) U) n (r n))
113    (reference p e) (comparison p e γ hγ)
114    (fun n z => frameState u z (n+r n)) (frameModel p b e v)
115    (fun n => norm_tensorState _ _) (fun n => norm_outputState _ _ _ _)
116    (norm_reference p e) (norm_comparison p e γ hγ)
117    (fun n z => norm_frameState _ _ _) (norm_frameModel p b e v)
118    (fun n => integrable_frameState u (n+r n) _) (integrable_frameModel p b e v _)
119    (frameModel_integral p v hv b hb e γ hγ) hphysical
120    (hseed.1.comp hm) (hseed.2.comp hm) hforward hreverse
121  simpa only [PositiveTraceClass.rootFidelity_comm, reference_comparison_fidelity] using hf
122 
123/-- The same endpoint for any density matrix equipped with its actual unitary
124diagonalization at the stated simple spectrum. -/
125theorem physical_pct_fidelity_of_diagonalization
126    (p : SimpleSpectrum (k+1))
127    (b : OrthonormalBasis (Fin (k+1)) ℝ (EuclideanSpace ℝ (Fin (k+1))))
128    (hb : b 0 = sqrtSpectrum p.eigenvalue) (e : Fin d ≃ PairIndex (k+1))
129    (lan : CompactWindowLAN p b e) (ρ : Cloning.MatrixFidelity.State (Fin (k+1)))
130    (U : unitary (Matrix (Fin (k+1)) (Fin (k+1)) ℂ))
131    (hρ : ρ.matrix = (U : Matrix (Fin (k+1)) (Fin (k+1)) ℂ) *
132      Matrix.diagonal (fun i => (p.eigenvalue i : ℂ)) * (U : Matrix (Fin (k+1)) (Fin (k+1)) ℂ)ᴴ)
133    (hs : 1 ≤ s) (hcard : Fintype.card (Fin (k+1) × Fin (k+1)) = s+1)
134    (r : ℕ → ℕ) (γ : ℝ) (hγ : 1 < γ)
135    (hr : Tendsto (fun n => ((n+r n : ℕ) : ℝ) / n) atTop (𝓝 γ)) :
136    Tendsto (fun n => (outputState hcard ρ n (r n)).rootFidelity
137      (tensorState ρ (n+r n))) atTop (𝓝 (pctValue γ p)) := by
138  have he : ρ = conjugatedState (baseState p) U := by
139    cases ρ
140    congr
141  subst ρ
142  exact physical_pct_fidelity_unitary_of_compactWindowLAN p b hb e lan U hs hcard r γ hγ hr
143 
144end Cloning.PCTPhysicalFidelity