Documentation

CslibFrontier.Computability.PCP.TwoProverGame.Linearity

The two-player linearity test #

In the linearity test the verifier draws k ∈ {0, 1, 2} and a, b ∈ {0,1}ⁿ uniformly, sends the pair (a, b) to the pair player (Bob), and sends the point c = a, b or a + b (Cslib.PCP.linearityQuery), according to k, to the point player (Alice). Alice answers a bit γ, Bob answers bits (α, β), and the verifier runs the single check selected by k: γ = α, γ = β or γ = α ⊕ β (Cslib.PCP.linearityCheck). The verifier's choice k is private, and when the queries coincide (for instance a = b) several values of k produce the same questions but different checks. So the test is a seeded game (Cslib.PCP.linearityGame, a Cslib.PCP.SeededGame) rather than a Cslib.PCP.TwoProverGame, whose acceptance predicate sees only the questions. Its winning probability is the acceptance probability with the sampled check (Cslib.PCP.CommutingStrategy.linearityTestProb, Cslib.PCP.commutingWinProb_linearityGame).

The acceptance probability is an average of correlations (Cslib.PCP.CommutingStrategy.linearityTestProb_eq), by Cslib.PCP.CommutingStrategy.sum_ite_prob_eq. When a strategy with projective pair measurements is accepted with probability 1 - ε, Alice's observables A(c) are linear on average (Cslib.PCP.CommutingStrategy.one_sub_le_expect_re_apply_mul_mul_of_linearityTest):

E_{a,b} Re φ(A(a) A(b) A(a + b)) ≥ 1 - 6ε - 2√(12ε).

Each check passes with probability at least 1 - 3ε. The consistency checks bound the distances between Alice's observables and the marginals of Bob's, and the linearity check bounds the correlation of A(a + b) with the product of Bob's marginals, which for a projective measurement is the parity observable. Linearity from consistency (Cslib.Quantum.one_sub_le_expect_re_apply_mul_mul) then gives the bound.

This is the test of Natarajan and Vidick, §3, Figure 1 (arXiv:1610.03574v1) in an asymmetric variant, and the estimate is the commuting-operator, point-player form of their Theorem 11. The variant differs from the source in three ways:

As in the source, the strategy's measurements are assumed projective here. The CslibFrontier.Computability.PCP.TwoProverGame.SymmetricLinearity module defines the source's symmetric verifier as Cslib.PCP.symmetricLinearityGame. Its seed also assigns the players' roles and samples the dummy query. Quantum soundness of the symmetric verifier and the remaining steps toward Pauli rigidity are tracked in #6149.

Main definitions #

Main results #

References #

def Cslib.PCP.linearityQuery {n : Type u_1} (k : Fin 3) (a b : n → Bool) :
n → Bool

The point sent to the point player in each of the three tests: a, b or a + b.

The function of the pair player's bits that the point player's bit must match in each of the three tests: α, β or α ⊕ β.

noncomputable def Cslib.PCP.CommutingStrategy.linearityTestProb {n : Type u_1} [Fintype n] [DecidableEq n] {𝒜 : Type u_2} [Ring 𝒜] [PartialOrder 𝒜] [Algebra ℂ 𝒜] (S : CommutingStrategy (n → Bool) ((n → Bool) × (n → Bool)) Bool (Bool × Bool) 𝒜) :

The probability that the linearity-test verifier accepts the strategy S: it draws k ∈ {0, 1, 2} and a, b uniformly, asks linearityQuery k a b and (a, b), and accepts when the point player's bit equals linearityCheck k of the pair player's bits.

theorem Cslib.PCP.CommutingStrategy.linearityTestProb_eq {n : Type u_1} [Fintype n] [DecidableEq n] {𝒜 : Type u_2} [Ring 𝒜] [StarRing 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [Algebra ℂ 𝒜] (S : CommutingStrategy (n → Bool) ((n → Bool) × (n → Bool)) Bool (Bool × Bool) 𝒜) :
S.linearityTestProb = Finset.univ.expect fun (k : Fin 3) => Finset.univ.expect fun (a : n → Bool) => Finset.univ.expect fun (b : n → Bool) => (1 + (S.state ((S.alice (linearityQuery k a b)).observable * (Quantum.Measurement.map (linearityCheck k) (S.bob (a, b))).observable)).re) / 2

The acceptance probability of the linearity test is the average of (1 + Re φ(A(c) N_k(a, b))) / 2, for the point player's observable A(c) and the observable N_k(a, b) of the pair player's checked bit.

theorem Cslib.PCP.CommutingStrategy.one_sub_le_expect_re_apply_mul_mul_of_linearityTest {n : Type u_1} [Fintype n] [DecidableEq n] {𝒜 : Type u_2} [CStarAlgebra 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] (S : CommutingStrategy (n → Bool) ((n → Bool) × (n → Bool)) Bool (Bool × Bool) 𝒜) (hB : ∀ (q : (n → Bool) × (n → Bool)), (S.bob q).IsProjective) {ε : ℝ} (hε : 1 - ε ≤ S.linearityTestProb) :
1 - 6 * ε - √(12 * ε) - √(12 * ε) ≤ Finset.univ.expect fun (a : n → Bool) => Finset.univ.expect fun (b : n → Bool) => (S.state ((S.alice a).observable * (S.alice b).observable * (S.alice (a + b)).observable)).re

Passing the linearity test makes the point player's observables linear. A commuting-operator strategy with projective pair measurements accepted by the linearity-test verifier with probability at least 1 - ε has E_{a,b} Re φ(A(a) A(b) A(a + b)) ≥ 1 - 6ε - 2√(12ε) for the point observables A(c).

noncomputable def Cslib.PCP.linearityGame (n : Type u_2) [Fintype n] [DecidableEq n] :
SeededGame (Fin 3 × (n → Bool) × (n → Bool)) (n → Bool) ((n → Bool) × (n → Bool)) Bool (Bool × Bool)

The two-player linearity test as a seeded game: the verifier's seed (k, a, b) is uniform, the questions are linearityQuery k a b and (a, b), and the verifier accepts when the point player's bit equals linearityCheck k of the pair player's bits. The seed k stays private.

@[instance_reducible]

The winning probability of the seeded linearity game is the acceptance probability of the linearity test.