Documentation

CslibFrontier.Computability.PCP.TwoProverGame.RotationStrategy

The rotation strategy for the CHSH game #

Arora and Barak's entangled strategy for CHSH Arora and Barak, Section 20.3.2, printed pp. 414–415 / PDF pp. 430–431: Alice and Bob share the EPR pair (|00⟩ + |11⟩)/√2 (Cslib.Quantum.bell). On question 1, Alice rotates her qubit by π/8 and Bob rotates his by -π/8; on question 0 neither acts. Each then measures in the computational basis and answers the outcome (Cslib.PCP.TwoProverGame.chshRotationStrategy). Rotating by θ (chshRotation) maps |0⟩ to cos θ |0⟩ + sin θ |1⟩ and |1⟩ to -sin θ |0⟩ + cos θ |1⟩, as in the source's computation. Measuring after a rotation is the measurement Cslib.Quantum.POVM.comap of the rotation, whose outcome probabilities are those of the rotated state (Cslib.Quantum.POVM.prob_comap).

On the EPR pair the correlation of the rotations by α and β is cos (2 (α - β)) (Cslib.PCP.TwoProverGame.correlation_chshRotationStrategy). The strategy therefore wins with probability (5 + √2) / 8 = 1/4 · 1 + 1/2 · cos²(π/8) + 1/4 · 1/2 (Cslib.PCP.TwoProverGame.quantumWinProb_chsh_chshRotationStrategy): the answers agree always on questions (0, 0), with probability cos²(π/8) on (0, 1) and (1, 0), and with probability 1/2 on (1, 1). This is at least 0.8 (Cslib.PCP.TwoProverGame.four_div_five_le_quantumWinProb_chsh_chshRotationStrategy, Arora and Barak's Theorem 20.16), but below the optimum cos²(π/8) attained by Cslib.PCP.TwoProverGame.chshEPR.

Main definitions #

Main results #

References #

The rotation of a qubit by the angle θ: |0⟩ ↦ cos θ |0⟩ + sin θ |1⟩ and |1⟩ ↦ -sin θ |0⟩ + cos θ |1⟩, with false for |0⟩.

Measuring in the computational basis after rotating by θ.

The observable of the rotated measurement: cos (2θ) Z - sin (2θ) X.

The rotation strategy of Arora and Barak, Section 20.3.2: the EPR pair, with Alice rotating by π/8 on question 1, Bob rotating by -π/8 on question 1, and both measuring in the computational basis.

theorem Cslib.PCP.TwoProverGame.correlation_chshRotationStrategy (x y : Bool) :
chshRotationStrategy.correlation x y = Real.cos (2 * ((bif x then Real.pi / 8 else 0) - bif y then -(Real.pi / 8) else 0))

On the EPR pair, measuring after rotations by α and β has correlation cos (2 (α - β)).

The rotation strategy wins CHSH with probability (5 + √2) / 8.