Documentation

CslibFrontier.Foundations.Quantum.Algebra.LinearityTest

Linearity from consistency #

In the two-player linearity test, one player answers a single query a + b with an observable A(a + b), and the other answers the pair (a, b) with two commuting observables N₁(a, b) and N₂(a, b). The test checks the product N₁ N₂ against A(a + b), and the consistency tests check N₁(a, b) against A(a) and N₂(a, b) against A(b).

If the other player's observables commute with the first player's, then passing these tests makes the first player's observables linear on average:

E_{a,b} Re φ(A(a) A(b) A(a + b)) ≥ 1 - ε - √η₁ - √η₂

(Cslib.Quantum.one_sub_le_expect_re_apply_mul_mul), where 1 - ε is the average correlation Re φ(N₁ N₂ A(a + b)) and η₁, η₂ bound the average squared distances ‖A(a) - N₁(a, b)‖²_φ and ‖A(b) - N₂(a, b)‖²_φ. The proof moves each factor A(a), A(b) to the other player's consistent copy and commutes it past the first player's operators (Cslib.Quantum.re_apply_mul_mul_ge). This is the computation in Natarajan and Vidick, §3, proof of Theorem 11 (arXiv:1610.03574v1), in any state of any star-ordered algebra, with exact constants, and with the test outcomes written as correlations of observables. Relating a strategy's winning probability to these correlations and distances is tracked in cslib-community/cslib-frontier#6149.

Together with the rounding of approximately linear observables (Cslib.Quantum.exists_isProjective_charObs_of_linear), the bound gives exactly linear unitaries close to A.

Main results #

References #

theorem Cslib.Quantum.re_apply_mul_mul_ge {R : Type u_1} [Ring R] [StarRing R] [PartialOrder R] [StarOrderedRing R] [Algebra ℂ R] [StarModule ℂ R] [SelfAdjointDecompose R] (φ : AlgState R) {A₁ A₂ A₃ N₁ N₂ : R} (h₂ : star A₂ * A₂ ≤ 1) (h₃ : star A₃ * A₃ ≤ 1) (hN₁ : star N₁ * N₁ ≤ 1) (hc₁₂ : Commute N₁ A₂) (hc₁₃ : Commute N₁ A₃) (hc₂₃ : Commute N₂ A₃) :
(φ (N₁ * N₂ * A₃)).re - φ.norm (A₁ - N₁) - φ.norm (A₂ - N₂) ≤ (φ (A₃ * A₂ * A₁)).re

Pointwise estimate. If N₁ commutes with A₂ and A₃, and N₂ commutes with A₃, then Re φ(A₃ A₂ A₁) ≥ Re φ(N₁ N₂ A₃) - ‖A₁ - N₁‖_φ - ‖A₂ - N₂‖_φ, for contractions A₂, A₃, N₁.

theorem Cslib.Quantum.one_sub_le_expect_re_apply_mul_mul {R : Type u_1} [Ring R] [StarRing R] [PartialOrder R] [StarOrderedRing R] [Algebra ℂ R] [StarModule ℂ R] [SelfAdjointDecompose R] {ι : Type u_2} [Fintype ι] [DecidableEq ι] (φ : AlgState R) (A : (ι → Bool) → R) (N₁ N₂ : (ι → Bool) → (ι → Bool) → R) (hA : ∀ (a : ι → Bool), star (A a) * A a ≤ 1) (hN₁ : ∀ (a b : ι → Bool), star (N₁ a b) * N₁ a b ≤ 1) (hc₁ : ∀ (a b c : ι → Bool), Commute (N₁ a b) (A c)) (hc₂ : ∀ (a b c : ι → Bool), Commute (N₂ a b) (A c)) {ε η₁ η₂ : ℝ} (hL : 1 - ε ≤ Finset.univ.expect fun (a : ι → Bool) => Finset.univ.expect fun (b : ι → Bool) => (φ (N₁ a b * N₂ a b * A (a + b))).re) (hC₁ : (Finset.univ.expect fun (a : ι → Bool) => Finset.univ.expect fun (b : ι → Bool) => φ.norm (A a - N₁ a b) ^ 2) ≤ η₁) (hC₂ : (Finset.univ.expect fun (a : ι → Bool) => Finset.univ.expect fun (b : ι → Bool) => φ.norm (A b - N₂ a b) ^ 2) ≤ η₂) :
1 - ε - √η₁ - √η₂ ≤ Finset.univ.expect fun (a : ι → Bool) => Finset.univ.expect fun (b : ι → Bool) => (φ (A a * A b * A (a + b))).re

Linearity from consistency. Let A(a) be contractions, and N₁(a, b), N₂(a, b) operators commuting with every A(c), with N₁(a, b) a contraction. If E_{a,b} Re φ(N₁(a, b) N₂(a, b) A(a + b)) ≥ 1 - ε, E_{a,b} ‖A(a) - N₁(a, b)‖²_φ ≤ η₁ and E_{a,b} ‖A(b) - N₂(a, b)‖²_φ ≤ η₂, then E_{a,b} Re φ(A(a) A(b) A(a + b)) ≥ 1 - ε - √η₁ - √η₂.