Offline · exact source
Exact Lean source

WeylDiagonalQuantumPositive

formalization/Cloning/WeylDiagonalQuantumPositive.lean

Source hash: dc4a9f9e0941c066395014215dc357400dc16572bb42e017589d79e1bc5b13e6

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.WeylDiagonalMultiplier
2import Cloning.WeylQuantumPositiveBounds
3 
4/-! Complete positivity of the actual trace-class channel implies the diagonal
5Weyl cocycle kernel is positive at every finite phase-space configuration. -/
6 
7noncomputable section
8open scoped ComplexOrder InnerProductSpace Topology BigOperators
9 
10namespace Cloning.MultimodeCoherent
11open Cloning.InfiniteTraceClass
12set_option backward.isDefEq.respectTransparency false
13set_option maxHeartbeats 1000000
14 
15variable {d : ℕ}
16 
17/-- The scalar kernel dictated by the input and output Weyl cocycles. -/
18def diagonalQuantumPositiveKernel (f : (Fin d → ℂ) → ℂ) (r : Fin d → ℝ)
19    (a b : Fin d → ℂ) : ℂ :=
20  displacementPhase (-a) b / displacementPhase (-(diagonalScale r a)) (diagonalScale r b) * f (b - a)
21 
22/-- Quantum positive-definiteness at the covariance scaling `r`. This tests
23all finite phase-space configurations and all complex scalar coefficients. -/
24def IsDiagonalQuantumPositive (f : (Fin d → ℂ) → ℂ) (r : Fin d → ℝ) : Prop :=
25  ∀ n : ℕ, ∀ b : Fin n → (Fin d → ℂ), ∀ c : Fin n → ℂ,
26    0 ≤ ∑ i, ∑ j, star (c i) * c j * diagonalQuantumPositiveKernel f r (b i) (b j)
27 
28/-- A matrix coefficient that removes the output Weyl Gram factor exactly. -/
29lemma diagonal_displaced_gram_coefficient (r : Fin d → ℝ) (a b : Fin d → ℂ) (u : Fock d) :
30    ⟪displacement (-(diagonalScale r a)) u,
31      displacement (diagonalScale r (b - a)) (displacement (-(diagonalScale r b)) u)⟫_ℂ =
32    (displacementPhase (-(diagonalScale r a)) (diagonalScale r b))⁻¹ * ⟪u, u⟫_ℂ := by
33  have hsum : -(diagonalScale r a) + diagonalScale r b = diagonalScale r (b - a) := by
34    rw [diagonalScale_sub]
35    abel
36  have h := congrArg (fun T : Fock d →L[ℂ] Fock d => T (displacement (-(diagonalScale r b)) u))
37    (displacement_comp (-(diagonalScale r a)) (diagonalScale r b))
38  simp only [ContinuousLinearMap.comp_apply, displacement_cancel_neg,
39    ContinuousLinearMap.smul_apply, hsum] at h
40  have h' := congrArg (fun v : Fock d =>
41    (displacementPhase (-(diagonalScale r a)) (diagonalScale r b))⁻¹ • v) h
42  simp only [smul_smul, inv_mul_cancel₀ (displacementPhase_ne_zero _ _), one_smul] at h'
43  rw [← h', inner_smul_right, displacement_inner_map_map]
44 
45/-- Every completely positive Weyl multiplier has the quantum-positive
46kernel determined by the difference between its two Weyl cocycles. -/
47theorem multiplier_isDiagonalQuantumPositive
48    (Ψ : (Fock d →L[ℂ] Fock d) →ₗ[ℂ] (Fock d →L[ℂ] Fock d))
49    (hCP : Cloning.BoundedOperator.IsCompletelyPositive Ψ)
50    (r : Fin d → ℝ) (f : (Fin d → ℂ) → ℂ)
51    (hmult : ∀ b, Ψ (displacement b) = f b • displacement (diagonalScale r b)) :
52    IsDiagonalQuantumPositive f r := by
53  intro n b c
54  have hgram := Cloning.BoundedOperator.gram_blockPositive (fun i : Fin n => displacement (b i))
55  have h := hCP n _ hgram (fun i => c i •
56    displacement (-(diagonalScale r (b i))) (coherentVector (0 : Fin d → ℂ)))
57  convert h using 1
58  apply Finset.sum_congr rfl
59  intro i _
60  apply Finset.sum_congr rfl
61  intro j _
62  dsimp only
63  rw [displacement_adjoint, displacement_comp]
64  simp only [map_smul, hmult, ContinuousLinearMap.smul_apply, inner_smul_left,
65    inner_smul_right]
66  rw [show -b i + b j = b j - b i by abel, diagonal_displaced_gram_coefficient]
67  simp only [inner_self_eq_norm_sq_to_K, coherentVector_norm,
68    RCLike.ofReal_eq_complex_ofReal, one_pow,
69    Complex.ofReal_one, mul_one, diagonalQuantumPositiveKernel, starRingEnd_apply, div_eq_mul_inv]
70  ring
71 
72 
73variable {f : (Fin d → ℂ) → ℂ} {r : Fin d → ℝ}
74 
75lemma IsDiagonalQuantumPositive.two_point (hf : IsDiagonalQuantumPositive f r)
76    (hf0 : f 0 = 1) (b : Fin d → ℂ) (u v : ℂ) :
77    0 ≤ star u * u + star u * v * f b + star v * u * f (-b) + star v * v := by
78  have h := hf 2 ![0, b] ![u, v]
79  simpa [Fin.sum_univ_two, diagonalQuantumPositiveKernel, hf0, add_assoc] using h
80 
81/-- Conjugate symmetry follows from actual complete positivity. -/
82theorem IsDiagonalQuantumPositive.conj_symm (hf : IsDiagonalQuantumPositive f r)
83    (hf0 : f 0 = 1) (b : Fin d → ℂ) : f (-b) = star (f b) := by
84  have h1 := (Complex.nonneg_iff.mp (hf.two_point hf0 b 1 1)).2
85  have hI := (Complex.nonneg_iff.mp (hf.two_point hf0 b 1 Complex.I)).2
86  simp only [map_one, one_mul, mul_one, Complex.add_im, Complex.one_im,
87    Complex.star_def, Complex.conj_I, Complex.mul_im,
88    Complex.neg_re, Complex.neg_im, Complex.I_re, Complex.I_im] at h1 hI
89  apply Complex.ext
90  · simp only [Complex.star_def, Complex.conj_re]
91    linarith
92  · simp only [Complex.star_def, Complex.conj_im]
93    linarith
94 
95/-- The diagonal gain case has the same unit modulus bound. -/
96theorem IsDiagonalQuantumPositive.norm_le_one (hf : IsDiagonalQuantumPositive f r)
97    (hf0 : f 0 = 1) (b : Fin d → ℂ) : ‖f b‖ ≤ 1 := by
98  have h := (Complex.nonneg_iff.mp (hf.two_point hf0 b 1 (-star (f b)))).1
99  rw [hf.conj_symm hf0 b] at h
100  have heq : star (1 : ℂ) * 1 + star (1 : ℂ) * (-star (f b)) * f b +
101      star (-star (f b)) * 1 * star (f b) + star (-star (f b)) * (-star (f b)) =
102      1 - star (f b) * f b := by simp; ring
103  rw [heq] at h
104  change 0 ≤ (1 - (starRingEnd ℂ) (f b) * f b).re at h
105  rw [← Complex.normSq_eq_conj_mul_self] at h
106  simp only [Complex.sub_re, Complex.one_re, Complex.ofReal_re,
107    Complex.normSq_eq_norm_sq] at h
108  nlinarith [norm_nonneg (f b)]
109 
110/-- All regular quantum-positive multiplier data are derived from the actual
111channel, including positivity at every finite ancilla. -/
112theorem quantumChannel_regular_diagonalQuantumPositive_multiplier
113    (Φ : QuantumChannel (Fock d) (Fock d)) (r : Fin d → ℝ)
114    (hΦ : ∀ a T, Φ.toLinearMap (displacementTraceMap a T) =
115      displacementTraceMap (diagonalScale r a) (Φ.toLinearMap T)) :
116    (∀ b, Φ.heisenberg (displacement b) =
117      diagonalWeylMultiplier Φ.heisenberg r b • displacement (diagonalScale r b)) ∧
118    diagonalWeylMultiplier Φ.heisenberg r 0 = 1 ∧
119    Continuous (diagonalWeylMultiplier Φ.heisenberg r) ∧
120    IsDiagonalQuantumPositive (diagonalWeylMultiplier Φ.heisenberg r) r ∧
121    (∀ b, ‖diagonalWeylMultiplier Φ.heisenberg r b‖ ≤ 1) := by
122  obtain ⟨hmult, hzero, hcont⟩ := quantumChannel_diagonal_weyl_multiplier Φ r hΦ
123  have hpos : IsDiagonalQuantumPositive (diagonalWeylMultiplier Φ.heisenberg r) r :=
124    multiplier_isDiagonalQuantumPositive Φ.heisenberg
125      (heisenbergDual_completelyPositive
126        Φ.toPositiveTracePreservingMap.toContinuousLinearMap Φ.completelyPositive) r _ hmult
127  exact ⟨hmult, hzero, hcont, hpos, fun b => hpos.norm_le_one hzero b⟩
128 
129end Cloning.MultimodeCoherent