Documentation

CslibFrontier.Computability.PCP.TwoProverGame.Tsirelson

Tsirelson's bound for the CHSH game #

For a quantum strategy with binary answers, the correlation on questions (x, y) is the expectation ⟨ψ|A_x ⊗ B_y|ψ⟩ of the observables A_x = X_x^0 - X_x^1 and B_y = Y_y^0 - Y_y^1 (Cslib.PCP.QuantumStrategy.correlation), that is, Pr[a = b] - Pr[a ≠ b] (Cslib.PCP.QuantumStrategy.correlation_eq). A strategy wins CHSH with probability 1/2 + (E₀₀ + E₀₁ + E₁₀ - E₁₁)/8 (Cslib.PCP.TwoProverGame.quantumWinProb_chsh).

Tsirelson's inequality Cirel'son bounds the CHSH expression of the correlations by 2√2 (Cslib.PCP.QuantumStrategy.chsh_correlation_le). It comes from the commuting-operator model: a tensor-product strategy is an instance of that model (Cslib.PCP.QuantumStrategy.toCommuting) with the same correlations (Cslib.PCP.QuantumStrategy.correlation_toCommuting), and there the inequality holds for every state on any star-ordered algebra (Cslib.Quantum.AlgState.re_chsh_le). In the GNS pre-inner product space of the state the observables A_x and B_y are vectors of norm at most 1, and Re⟨u₀, v₀ + v₁⟩ + Re⟨u₁, v₀ - v₁⟩ ≤ ‖v₀ + v₁‖ + ‖v₀ - v₁‖ ≤ 2√2 by Cauchy–Schwarz and the parallelogram law (chsh_re_inner_le). Hence every quantum strategy wins CHSH with probability at most 1/2 + √2/4 = cos²(π/8) (Cslib.PCP.TwoProverGame.quantumWinProb_chsh_le, Cslib.PCP.TwoProverGame.quantumValue_chsh_le) Cleve, Høyer, Toner, Watrous, §3.1.

The bound is attained by the EPR strategy Cslib.PCP.TwoProverGame.chshEPR: the two players share the Bell state (|00⟩ + |11⟩)/√2, Alice measures Z or X, and Bob measures (Z ± X)/√2. Hence the entangled value of CHSH is exactly cos²(π/8) (Cslib.PCP.TwoProverGame.quantumValue_chsh), which strictly exceeds the classical value 3/4 (Cslib.PCP.TwoProverGame.value_chsh_lt_quantumValue_chsh).

The measurements are arbitrary POVMs, not only projective ones, and the dimensions are arbitrary finite types. The model is the finite-dimensional tensor-product model with a pure shared state.

Mathlib's tsirelson_inequality (Mathlib.Algebra.Star.CHSH) is the operator form of the bound, A₀B₀ + A₀B₁ + A₁B₀ - A₁B₁ ≤ 2√2 in an ordered *-algebra, proved by a sum of squares. It needs a CHSH tuple (IsCHSHTuple): self-adjoint involutions A_x² = B_y² = 1, with each A_x commuting with each B_y. It is not reused here, because the observable E_false - E_true of a non-projective POVM is only a contraction (A_x² ≤ 1), not an involution. The vector argument covers every POVM directly.

Main definitions #

Main results #

References #

noncomputable def Cslib.PCP.QuantumStrategy.correlation {X : Type u_1} {Y : Type u_2} {ι : Type u_3} {κ : Type u_4} [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (S : QuantumStrategy X Y Bool Bool ι κ) (x : X) (y : Y) :

The correlation ⟨ψ|A_x ⊗ B_y|ψ⟩ of a strategy with binary answers on questions (x, y), where A_x and B_y are the observables E_false - E_true of the two measurements.

theorem Cslib.PCP.QuantumStrategy.correlation_eq {X : Type u_1} {Y : Type u_2} {ι : Type u_3} {κ : Type u_4} [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (S : QuantumStrategy X Y Bool Bool ι κ) (x : X) (y : Y) :
S.correlation x y = S.prob x y false false + S.prob x y true true - S.prob x y false true - S.prob x y true false

The correlation is Pr[a = b] - Pr[a ≠ b].

theorem Cslib.PCP.QuantumStrategy.correlation_toCommuting {X : Type u_1} {Y : Type u_2} {ι : Type u_3} {κ : Type u_4} [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (S : QuantumStrategy X Y Bool Bool ι κ) (x : X) (y : Y) :

The tensor-product strategy and its commuting-operator form have the same correlations.

theorem Cslib.PCP.QuantumStrategy.chsh_correlation_le {X : Type u_1} {Y : Type u_2} {ι : Type u_3} {κ : Type u_4} [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (S : QuantumStrategy X Y Bool Bool ι κ) (x₀ x₁ : X) (y₀ y₁ : Y) :
S.correlation x₀ y₀ + S.correlation x₀ y₁ + S.correlation x₁ y₀ - S.correlation x₁ y₁ ≤ 2 * √2

Tsirelson's inequality Cirel'son: the CHSH expression of the correlations of any quantum strategy with binary answers is at most 2√2. It is the inequality for the commuting-operator form of the strategy (Cslib.PCP.CommutingStrategy.chsh_correlation_le).

The winning probability of a quantum strategy for CHSH in terms of its correlations.

Tsirelson's bound: every quantum strategy wins CHSH with probability at most cos²(π/8).

The entangled value of CHSH is at most cos²(π/8).

The optimal EPR strategy #

Alice's observables in the optimal CHSH strategy: Z on question 0 and X on question 1.

Bob's observables in the optimal CHSH strategy: (Z + X)/√2 on question 0 and (Z - X)/√2 on question 1.

The optimal CHSH strategy Cleve, Høyer, Toner, Watrous, §3.1: the EPR pair (|00⟩ + |11⟩)/√2 (Cslib.Quantum.bell), with Alice measuring Z or X and Bob measuring (Z ± X)/√2. These are the measurements at angles 0, π/4 and ±π/8 of the source.

theorem Cslib.PCP.TwoProverGame.correlation_chshEPR (x y : Bool) :
chshEPR.correlation x y = bif x && y then -(√2 / 2) else √2 / 2

The EPR strategy has correlation √2/2 on every question pair except (1, 1), where it is -√2/2.

The EPR strategy wins CHSH with probability cos²(π/8).

Entanglement strictly helps in CHSH: the classical value 3/4 is less than the entangled value cos²(π/8).