Offline · exact source
Exact Lean source

HybridGaussianAttainmentFidelity

formalization/Cloning/HybridGaussianAttainmentFidelity.lean

Source hash: be7fc2439dc7fdd7f24b2f0865aec5675351048b3d476e214e50c0a038a0af11

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.HybridFoelnerPayoff
2import Cloning.HybridL1Fidelity
3 
4/-!
5# Exact fidelity of the attained hybrid Gaussian--thermal output
6 
7Scaling positive trace-class operators separates classical Hellinger affinity
8from quantum root fidelity. Applied to the actual Gaussian product fields and
9thermal density operators, this gives the full classical--quantum Gaussian
10factor, both for fields and for their genuine positive L¹ classes.
11-/
12 
13noncomputable section
14open scoped ComplexOrder InnerProductSpace Topology BigOperators
15open MeasureTheory Filter Cloning.InfiniteTraceClass Cloning.InfiniteFidelity
16open Cloning.MultimodeCoherent Cloning.MultimodeCoherentGaussianMixture
17open Cloning.InfiniteDiagonalFidelity
18namespace Cloning.Hybrid
19set_option backward.isDefEq.respectTransparency false
20set_option maxHeartbeats 1000000
21 
22variable {Ω H : Type*} [MeasurableSpace Ω] {μ : Measure Ω}
23  [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
24 
25lemma sqrt_real_smul_positive (c : ℝ) (hc : 0 ≤ c) (A : H →L[ℂ] H) (hA : 0 ≤ A) :
26    CFC.sqrt ((c : ℂ) • A) = (Real.sqrt c : ℂ) • CFC.sqrt A := by
27  simp only [Complex.coe_smul]
28  apply CFC.sqrt_unique _ (smul_nonneg (Real.sqrt_nonneg _) (CFC.sqrt_nonneg _))
29  rw [smul_mul_assoc, mul_smul_comm, smul_smul, ← pow_two, Real.sq_sqrt hc,
30    CFC.sqrt_mul_sqrt_self A hA]
31 
32theorem PositiveTraceClass.rootFidelity_scale (a b : NNReal) (A B : PositiveTraceClass H) :
33    (PositiveTraceClass.scale a A).rootFidelity (PositiveTraceClass.scale b B) =
34      (Real.sqrt (a : ℝ) * Real.sqrt (b : ℝ)) * A.rootFidelity B := by
35  have he : CFC.sqrt (((a : ℝ) : ℂ) • A.1.1) * CFC.sqrt (((b : ℝ) : ℂ) • B.1.1) =
36      ((Real.sqrt (a : ℝ) * Real.sqrt (b : ℝ) : ℝ) : ℂ) •
37        (CFC.sqrt A.1.1 * CFC.sqrt B.1.1) := by
38    rw [sqrt_real_smul_positive (H := H) (a : ℝ) a.2 A.1.1 A.2,
39      sqrt_real_smul_positive (H := H) (b : ℝ) b.2 B.1.1 B.2,
40      smul_mul_assoc, mul_smul_comm, smul_smul, ← Complex.ofReal_mul]
41  unfold PositiveTraceClass.rootFidelity fidelity
42  change traceNorm (CFC.sqrt (((a : ℝ) : ℂ) • A.1.1) *
43    CFC.sqrt (((b : ℝ) : ℂ) • B.1.1)) _ = _
44  rw [traceNorm_transport he, traceNorm_smul]
45  rw [Complex.norm_of_nonneg (mul_nonneg (Real.sqrt_nonneg _) (Real.sqrt_nonneg _))]
46 
47/-- Fidelity of genuine product fields factors into a classical affinity
48and the fidelity of the normalized quantum states. -/
49theorem PositiveField.rootFidelity_product
50    (g h : Ω → ℝ) (hg : Integrable g μ) (hh : Integrable h μ)
51    (hg0 : ∀ y, 0 ≤ g y) (hh0 : ∀ y, 0 ≤ h y) (A B : DensityState H) :
52    (PositiveField.product g hg hg0 A).rootFidelity (PositiveField.product h hh hh0 B) =
53      (∫ y, Real.sqrt (g y) * Real.sqrt (h y) ∂μ) * stateFidelity A B := by
54  unfold PositiveField.rootFidelity
55  simp only [PositiveField.product, PositiveTraceClass.rootFidelity_scale,
56    Real.coe_toNNReal _ (hg0 _), Real.coe_toNNReal _ (hh0 _)]
57  rw [integral_mul_const]
58  rfl
59 
60variable {k s : ℕ}
61 
62/-- The actual centered output under classical dilation and quantum-limited
63amplification. The parameters are precisions and geometric thermal ratios. -/
64def amplifiedGaussianThermalField
65    (a : Fin k → ℝ) (ha : ∀ i, 0 < a i) (g : ℝ) (hg : 1 < g)
66    (q : Fin s → ℝ) (hq0 : ∀ i, 0 ≤ q i) (hq1 : ∀ i, q i < 1) :
67    PositiveField (H := Fock s) (volume : Measure (Fin k → ℝ)) :=
68  gaussianThermalField (fun i => a i / g)
69    (fun i => div_pos (ha i) (zero_lt_one.trans hg))
70    (fun i => Thermal.amplified g (q i))
71    (fun i => (hq0 i).trans (Thermal.lt_amplified hg (hq1 i)).le)
72    (fun i => Thermal.amplified_lt_one (zero_lt_one.trans hg) (hq1 i))
73 
74/-- The full sharp factor is the fidelity of two literal hybrid density
75fields, including thermal ratios equal to zero. -/
76theorem gaussianThermalField_amplified_rootFidelity
77    (a : Fin k → ℝ) (ha : ∀ i, 0 < a i) (g : ℝ) (hg : 1 < g)
78    (q : Fin s → ℝ) (hq0 : ∀ i, 0 ≤ q i) (hq1 : ∀ i, q i < 1) :
79    (amplifiedGaussianThermalField a ha g hg q hq0 hq1).rootFidelity
80      (gaussianThermalField a ha q hq0 hq1) =
81      Thermal.classicalBase g ^ ((k : ℝ) / 2) * ∏ i, Thermal.modeFactor g (q i) := by
82  rw [PositiveField.rootFidelity_comm]
83  unfold amplifiedGaussianThermalField gaussianThermalField
84  rw [PositiveField.rootFidelity_product, stateFidelity_productGeometric]
85  have hc := GaussianAffinity.integral_product_dilation a ha (zero_lt_one.trans hg)
86  simp only [Fintype.card_fin] at hc
87  rw [hc]
88  congr 1
89  apply Finset.prod_congr rfl
90  intro i _
91  exact Thermal.fidelity_amplified_eq_modeFactor hg (hq0 i) (hq1 i)
92 
93/-- The same exact fidelity on positive equivalence classes of the genuine
94operator-valued L¹ space. -/
95theorem gaussianThermalField_amplified_toPositiveL1_rootFidelity
96    (a : Fin k → ℝ) (ha : ∀ i, 0 < a i) (g : ℝ) (hg : 1 < g)
97    (q : Fin s → ℝ) (hq0 : ∀ i, 0 ≤ q i) (hq1 : ∀ i, q i < 1) :
98    (amplifiedGaussianThermalField a ha g hg q hq0 hq1).toPositiveL1.rootFidelity
99      (gaussianThermalField a ha q hq0 hq1).toPositiveL1 =
100      Thermal.classicalBase g ^ ((k : ℝ) / 2) * ∏ i, Thermal.modeFactor g (q i) := by
101  rw [PositiveField.toPositiveL1_rootFidelity]
102  exact gaussianThermalField_amplified_rootFidelity a ha g hg q hq0 hq1
103 
104end Cloning.Hybrid