Skip to main content
IBM Quantum Platform

CHSH game

The last example to be discussed in this lesson is not a protocol, but a game known as the CHSH game.

When we speak of a game in this context, we're not talking about something that's meant to be played for fun or sport, but rather a mathematical abstraction in the sense of game theory. Mathematical abstractions of games are studied in economics and computer science, for instance, and they are both fascinating and useful.

The letters CHSH refer to the authors — John Clauser, Michael Horne, Abner Shimony, and Richard Holt — of a 1969 paper where the example was first described. They did not describe the example as a game, but rather as an experiment. Its description as a game, however, is both natural and intuitive.

The CHSH game falls within a class of games known as nonlocal games. Nonlocal games are incredibly interesting and have deep connections to physics, computer science, and mathematics — holding mysteries that still remain unsolved. We'll begin the section by explaining what nonlocal games are, and then we'll focus in on the CHSH game and what makes it interesting.


Nonlocal games

A nonlocal game is a cooperative game where two players, Alice and Bob, work together to achieve a particular outcome. The game is run by a referee, who behaves according to strict guidelines that are known to Alice and Bob.

Alice and Bob can prepare for the game however they choose, but once the game starts they are forbidden from communicating. We might imagine the game taking place in a secure facility of some sort — as if the referee is playing the role of a detective and Alice and Bob are suspects being interrogated in different rooms. But another way to think about the set-up is that Alice and Bob are separated by a vast distance, and communication is prohibited because the speed of light doesn't allow for it within the running time of the game. That is to say, if Alice tries to send a message to Bob, the game will be over by the time he receives it, and vice versa.

The way a nonlocal game works is that the referee first asks each of Alice and Bob a question. We'll use the letter xx to refer to Alice's question and yy to refer to Bob's question. Here we're thinking of xx and yy as being classical states, and in the CHSH game xx and yy are bits.

The referee uses randomness to select these questions. To be precise, there is some probability p(x,y)p(x,y) associated with each possible pair (x,y)(x,y) of questions, and the referee has vowed to choose the questions randomly, at the time of the game, in this way. Everyone, including Alice and Bob, knows these probabilities — but nobody knows specifically which pair (x,y)(x,y) will be chosen until the game begins.

After Alice and Bob receive their questions, they must then provide answers: Alice's answer is aa and Bob's answer is b.b. Again, these are classical states in general, and bits in the CHSH game.

At this point the referee makes a decision: Alice and Bob either win or lose depending on whether or not the pair of answers (a,b)(a,b) is deemed correct for the pair of questions (x,y)(x,y) according to some fixed set of rules. Different rules mean different games, and the rules for the CHSH game specifically are described in the section following this one. As was already suggested, the rules are known to everyone.

The following diagram provides a graphic representation of the interactions.

Nonlocal game

It is the uncertainty about which questions will be asked, and specifically the fact that each player doesn't know the other player's question, that makes nonlocal games challenging for Alice and Bob — just like colluding suspects in different rooms trying to keep their story straight.

A precise description of the referee defines an instance of a nonlocal game. This includes a specification of the probabilities p(x,y)p(x,y) for each question pair along with the rules that determine whether each pair of answers (a,b)(a,b) wins or loses for each possible question pair (x,y).(x,y).

We'll take a look at the CHSH game momentarily, but before that let us briefly acknowledge that it's also interesting to consider other nonlocal games. It's extremely interesting, in fact, and there are some nonlocal games for which it's currently not known how well Alice and Bob can play using entanglement. The set-up is simple, but there's complexity at work — and for some games it can be impossibly difficult to compute best or near-best strategies for Alice and Bob. This is the mind-blowing nature of the non-local games model.


CHSH game description

Here is the precise description of the CHSH game, where (as above) xx is Alice's question, yy is Bob's question, aa is Alice's answer, and bb is Bob's answer:

  • The questions and answers are all bits: x,y,a,b{0,1}.x,y,a,b\in\{0,1\}.

  • The referee chooses the questions (x,y)(x,y) uniformly at random. That is, each of the four possibilities, (0,0),(0,0), (0,1),(0,1), (1,0),(1,0), and (1,1),(1,1), is selected with probability 1/4.1/4.

  • The answers (a,b)(a,b) win for the questions (x,y)(x,y) if ab=xya\oplus b = x\wedge y and lose otherwise. The following table expresses this rule by listing the winning and losing conditions on the answers (a,b)(a,b) for each pair of questions (x,y).(x,y).

(x,y)winlose(0,0)a=bab(0,1)a=bab(1,0)a=bab(1,1)aba=b\begin{array}{ccc} (x,y) & \text{win} & \text{lose} \\[1mm]\hline \rule{0mm}{4mm}(0,0) & a = b & a \neq b \\[1mm] (0,1) & a = b & a \neq b \\[1mm] (1,0) & a = b & a \neq b \\[1mm] (1,1) & a \neq b & a = b \end{array}

Limitation of classical strategies

Now let's consider strategies for Alice and Bob in the CHSH game, beginning with classical strategies.

Deterministic strategies

We'll start with deterministic strategies, where Alice's answer aa is a function of the question xx that she receives, and likewise Bob's answer bb is a function of the question yy he receives. So, for instance, we may write a(0)a(0) to represent Alice's answer when her question is 0,0, and a(1)a(1) to represent Alice's answer when her question is 1.1.

No deterministic strategy can possibly win the CHSH game every time. One way to reason this is simply to go one-by-one through all of the possible deterministic strategies and check that every one of them loses for at least one of the four possible question pairs. Alice and Bob can each choose from four possible functions from one bit to one bit — which we encountered back in the first lesson of the course — so there are 1616 different deterministic strategies in total to check.

We can also reason this analytically. If Alice and Bob's strategy wins when (x,y)=(0,0),(x,y) = (0,0), then it must be that a(0)=b(0);a(0) = b(0); if their strategy wins when (x,y)=(0,1),(x,y) = (0,1), then a(0)=b(1);a(0) = b(1); and similarly, if the strategy wins for (x,y)=(1,0)(x,y)=(1,0) then a(1)=b(0).a(1) = b(0). So, if their strategy wins for all three possibilities, then

b(1)=a(0)=b(0)=a(1).b(1) = a(0) = b(0) = a(1).

This implies that the strategy loses in the final case (x,y)=(1,1),(x,y) = (1,1), for here winning requires that a(1)b(1).a(1) \neq b(1). Thus, there can be no deterministic strategy that wins every time.

On the other hand, it is easy to find deterministic strategies that win in three of the four cases, such as a(0)=a(1)=b(0)=b(1)=0.a(0)=a(1)=b(0)=b(1)=0. From this we conclude that the maximum probability for Alice and Bob to win using a deterministic strategy is 3/4.3/4.

Probabilistic strategies

As we just concluded, Alice and Bob cannot do better than winning the CHSH game 75% of the time using a deterministic strategy. But what about a probabilistic strategy? Could it help Alice and Bob to use randomness — including the possibility of shared randomness, where their random choices are correlated?

It turns out that probabilistic strategies don't help at all to increase the probability that Alice and Bob win. This is because every probabilistic strategy can alternatively be viewed as a random selection of a deterministic strategy, just like probabilistic operations can be viewed as random selections of deterministic operations. The average is never larger than the maximum, and so it follows that probabilistic strategies don't offer any advantage in terms of their overall winning probability.

Thus, winning with probability 3/43/4 is the best that Alice and Bob can do using any classical strategy, whether deterministic or probabilistic.


CHSH game strategy

A natural question to ask at this point is whether Alice and Bob can do any better using a quantum strategy. In particular, if they share an entangled quantum state as the following figure suggests, which they could have prepared prior to playing the game, can they increase their winning probability?

Nonlocal game with entanglement

The answer is yes, and this is the main point of the example and why it's so interesting. So let's see exactly how Alice and Bob can do better in this game using entanglement.

Required vectors and matrices

The first thing we need to do is to define a qubit state vector ψθ,\vert \psi_{\theta}\rangle, for each real number θ\theta (which we'll think of as an angle measured in radians) as follows.

ψθ=cos(θ)0+sin(θ)1\vert\psi_{\theta}\rangle = \cos(\theta)\vert 0\rangle + \sin(\theta) \vert 1\rangle

Here are some simple examples:

ψ0=0ψπ/2=1ψπ/4=+ψπ/4=\begin{aligned} \vert\psi_{0}\rangle & = \vert 0\rangle \\ \vert\psi_{\pi/2}\rangle & = \vert 1\rangle \\ \vert\psi_{\pi/4}\rangle & = \vert + \rangle \\ \vert\psi_{-\pi/4}\rangle & = \vert - \rangle \end{aligned}

We also have the following examples, which arise in the analysis below:

ψπ/8=2+2202221ψπ/8=2+220+2221ψ3π/8=2220+2+221ψ5π/8=2220+2+221\begin{aligned} \vert\psi_{-\pi/8}\rangle & = \frac{\sqrt{2 + \sqrt{2}}}{2}\vert 0\rangle -\frac{\sqrt{2 - \sqrt{2}}}{2}\vert 1\rangle \\[1mm] \vert\psi_{\pi/8}\rangle & = \frac{\sqrt{2 + \sqrt{2}}}{2}\vert 0\rangle + \frac{\sqrt{2 - \sqrt{2}}}{2}\vert 1\rangle \\[1mm] \vert\psi_{3\pi/8}\rangle & = \frac{\sqrt{2 - \sqrt{2}}}{2}\vert 0\rangle + \frac{\sqrt{2 + \sqrt{2}}}{2}\vert 1\rangle \\[1mm] \vert\psi_{5\pi/8}\rangle & = -\frac{\sqrt{2 - \sqrt{2}}}{2}\vert 0\rangle + \frac{\sqrt{2 + \sqrt{2}}}{2}\vert 1\rangle \end{aligned}

Looking at the general form, we see that the inner product between any two of these vectors has this formula:

ψαψβ=cos(α)cos(β)+sin(α)sin(β)=cos(αβ).(1)\langle \psi_{\alpha} \vert \psi_{\beta} \rangle = \cos(\alpha)\cos(\beta) + \sin(\alpha)\sin(\beta) = \cos(\alpha-\beta). \tag{1}

In detail, there are only real number entries in these vectors, so there are no complex conjugates to worry about: the inner product is the product of the cosines plus the product of the sines. Using one of the angle addition formulas from trigonometry leads to the simplification above. This formula reveals the geometric interpretation of the inner product between real unit vectors as the cosine of the angle between them.

If we compute the inner product of the tensor product of any two of these vectors with the ϕ+\vert \phi^+\rangle state, we obtain a similar expression, except that it has a 2\sqrt{2} in the denominator:

ψαψβϕ+=cos(α)cos(β)+sin(α)sin(β)2=cos(αβ)2.(2)\langle \psi_{\alpha} \otimes \psi_{\beta} \vert \phi^+ \rangle = \frac{\cos(\alpha)\cos(\beta) + \sin(\alpha)\sin(\beta)}{\sqrt{2}} = \frac{\cos(\alpha-\beta)}{\sqrt{2}}. \tag{2}

Our interest in this particular inner product will become clear shortly, but for now we're simply observing this as a formula.

Next, define a unitary matrix UθU_{\theta} for each angle θ\theta as follows.

Uθ=0ψθ+1ψθ+π/2U_{\theta} = \vert 0 \rangle \langle \psi_{\theta} \vert + \vert 1\rangle\langle \psi_{\theta+\pi/2} \vert

Intuitively speaking, this matrix transforms ψθ\vert\psi_{\theta}\rangle into 0\vert 0\rangle and ψθ+π/2\vert \psi_{\theta + \pi/2}\rangle into 1.\vert 1\rangle. To check that this is a unitary matrix, a key observation is that the vectors ψθ\vert\psi_{\theta}\rangle and ψθ+π/2\vert\psi_{\theta + \pi/2}\rangle are orthogonal for every angle θ\theta:

ψθψθ+π/2=cos(π/2)=0.\langle \psi_{\theta} \vert \psi_{\theta + \pi/2} \rangle = \cos(\pi/2) = 0.

Thus, we find that

UθUθ=(0ψθ+1ψθ+π/2)(ψθ0+ψθ+π/21)=0ψθψθ0+0ψθψθ+π/21+1ψθ+π/2ψθ0+1ψθ+π/2ψθ+π/21=00+11=I.\begin{aligned} U_{\theta} U_{\theta}^{\dagger} & = \bigl(\vert 0 \rangle \langle \psi_{\theta} \vert + \vert 1\rangle\langle \psi_{\theta+\pi/2} \vert\bigr) \bigl(\vert \psi_{\theta} \rangle \langle 0 \vert + \vert \psi_{\theta+\pi/2}\rangle\langle 1 \vert\bigr) \\[1mm] & = \vert 0 \rangle \langle \psi_{\theta} \vert \psi_{\theta} \rangle \langle 0 \vert + \vert 0 \rangle \langle \psi_{\theta} \vert \psi_{\theta+\pi/2} \rangle \langle 1 \vert + \vert 1 \rangle \langle \psi_{\theta+\pi/2} \vert \psi_{\theta} \rangle \langle 0 \vert + \vert 1 \rangle \langle \psi_{\theta+\pi/2} \vert \psi_{\theta+\pi/2} \rangle \langle 1 \vert \\[1mm] & = \vert 0 \rangle \langle 0 \vert + \vert 1 \rangle \langle 1 \vert\\[1mm] & = \mathbb{I}. \end{aligned}

We may alternatively write this matrix explicitly as

Uθ=(cos(θ)sin(θ)cos(θ+π/2)sin(θ+π/2))=(cos(θ)sin(θ)sin(θ)cos(θ)).U_{\theta} = \begin{pmatrix} \cos(\theta) & \sin(\theta)\\[1mm] \cos(\theta+ \pi/2) & \sin(\theta + \pi/2) \end{pmatrix} = \begin{pmatrix} \cos(\theta) & \sin(\theta)\\[1mm] -\sin(\theta) & \cos(\theta) \end{pmatrix}.

This is an example of a rotation matrix, and specifically it rotates two-dimensional vectors with real number entries by an angle of θ-\theta about the origin. If we follow a standard convention for naming and parameterizing rotations of various forms, we have Uθ=Ry(2θ)U_{\theta} = R_y(-2\theta) where

Ry(θ)=(cos(θ/2)sin(θ/2)sin(θ/2)cos(θ/2)).R_y(\theta) = \begin{pmatrix} \cos(\theta/2) & -\sin(\theta/2)\\[1mm] \sin(\theta/2) & \cos(\theta/2) \end{pmatrix}.

Strategy description

Now we can describe the quantum strategy.

  • Set-up: Alice and Bob start the game sharing an e-bit: Alice holds a qubit A,\mathsf{A}, Bob holds a qubit B,\mathsf{B}, and together the two qubits (X,Y)(\mathsf{X},\mathsf{Y}) are in the ϕ+\vert\phi^+\rangle state.

  • Alice's actions:

    • If Alice receives the question x=0,x=0, she applies U0U_{0} to her qubit A.\mathsf{A}.
    • If Alice receives the question x=1,x=1, she applies Uπ/4U_{\pi/4} to her qubit A.\mathsf{A}.

    The operation Alice performs on A\mathsf{A} may alternatively be described like this:

    {U0if x=0Uπ/4if x=1\begin{cases} U_0 & \text{if $x = 0$}\\ U_{\pi/4} & \text{if $x = 1$} \end{cases}

    After Alice applies this operation, she measures A\mathsf{A} with a standard basis measurement and sets her answer aa to be the measurement outcome.

  • Bob's actions:

    • If Bob receives the question y=0,y=0, he applies Uπ/8U_{\pi/8} to his qubit B.\mathsf{B}.
    • If Bob receives the question y=1,y=1, he applies Uπ/8U_{-\pi/8} to his qubit B.\mathsf{B}.

    Like we did for Alice, we can express Bob's operation on B\mathsf{B} like this:

    {Uπ/8if y=0Uπ/8if y=1\begin{cases} U_{\pi/8} & \text{if $y = 0$}\\ U_{-\pi/8} & \text{if $y = 1$} \end{cases}

    After Bob applies this operation, he measures B\mathsf{B} with a standard basis measurement and sets his answer bb to be the measurement outcome.

Here is a quantum circuit diagram that describes this strategy:

CHSH game circuit

In this diagram we see two ordinary controlled gates, one for Uπ/8U_{-\pi/8} on the top and one for Uπ/4U_{\pi/4} on the bottom. We also have two gates that look like controlled gates, one for Uπ/8U_{\pi/8} on the top and one for U0U_{0} on the bottom, except that the circle representing the control is not filled in. This denotes a different type of controlled gate where the gate is performed if the control is set to 00 (rather than 11 like an ordinary controlled gate). So, effectively, Bob performs Uπ/8U_{\pi/8} on his qubit if y=0y=0 and Uπ/8U_{-\pi/8} if y=1;y=1; and Alice performs U0U_0 on her qubit if x=0x=0 and Uπ/4U_{\pi/4} if x=1,x=1, which is consistent with the description of the protocol in words above.

It remains to figure out how well this strategy for Alice and Bob works. We'll do this by going through the four possible question pairs individually.

Case-by-case analysis

  • Case 1: (x,y)=(0,0).(x,y) = (0,0).

    In this case Alice performs U0U_{0} on her qubit and Bob performs Uπ/8U_{\pi/8} on his, so the state of the two qubits (A,B)(\mathsf{A},\mathsf{B}) after they perform their operations is

    (U0Uπ/8)ϕ+=00ψ0ψπ/8ϕ++01ψ0ψ5π/8ϕ++10ψπ/2ψπ/8ϕ++11ψπ/2ψ5π/8ϕ+=cos(π8)00+cos(5π8)01+cos(3π8)10+cos(π8)112.\begin{aligned} \bigl(U_0 \otimes U_{\pi/8}\bigr) \vert \phi^+\rangle & = \vert 00 \rangle \langle \psi_0 \otimes \psi_{\pi/8}\vert \phi^+\rangle + \vert 01 \rangle \langle \psi_0 \otimes\psi_{5\pi/8}\vert \phi^+\rangle \\ & \qquad + \vert 10 \rangle \langle \psi_{\pi/2} \otimes \psi_{\pi/8}\vert \phi^+\rangle + \vert 11 \rangle \langle \psi_{\pi/2} \otimes \psi_{5\pi/8}\vert \phi^+\rangle\\[2mm] & = \frac{ \cos\bigl(-\frac{\pi}{8}\bigr) \vert 00\rangle + \cos\bigl(-\frac{5\pi}{8}\bigr) \vert 01\rangle + \cos\bigl(\frac{3\pi}{8}\bigr) \vert 10\rangle + \cos\bigl(-\frac{\pi}{8}\bigr) \vert 11\rangle}{\sqrt{2}}. \end{aligned}

    The probabilities for the four possible answer pairs (a,b)(a,b) are therefore as follows.

    Pr((a,b)=(0,0))=12cos2(π8)=2+28Pr((a,b)=(0,1))=12cos2(5π8)=228Pr((a,b)=(1,0))=12cos2(3π8)=228Pr((a,b)=(1,1))=12cos2(π8)=2+28\begin{aligned} \operatorname{Pr}\bigl((a,b)=(0,0)\bigr) & = \frac{1}{2}\cos^2\Bigl(-\frac{\pi}{8}\Bigr) = \frac{2+\sqrt{2}}{8} \\[2mm] \operatorname{Pr}\bigl((a,b)=(0,1)\bigr) & = \frac{1}{2}\cos^2\Bigl(-\frac{5\pi}{8}\Bigr) = \frac{2-\sqrt{2}}{8}\\[2mm] \operatorname{Pr}\bigl((a,b)=(1,0)\bigr) & = \frac{1}{2}\cos^2\Bigl(\frac{3\pi}{8}\Bigr) = \frac{2-\sqrt{2}}{8}\\[2mm] \operatorname{Pr}\bigl((a,b)=(1,1)\bigr) & = \frac{1}{2}\cos^2\Bigl(-\frac{\pi}{8}\Bigr) = \frac{2+\sqrt{2}}{8} \end{aligned}

    We can then obtain the probabilities that a=ba=b and aba\neq b by summing.

    Pr(a=b)=2+24Pr(ab)=224\begin{aligned} \operatorname{Pr}(a = b) & = \frac{2 + \sqrt{2}}{4}\\[2mm] \operatorname{Pr}(a \neq b) & = \frac{2 - \sqrt{2}}{4} \end{aligned}

    For the question pair (0,0),(0,0), Alice and Bob win if a=b,a=b, and therefore they win in this case with probability

    2+24.\frac{2 + \sqrt{2}}{4}.
  • Case 2: (x,y)=(0,1).(x,y) = (0,1).

    In this case Alice performs U0U_{0} on her qubit and Bob performs Uπ/8U_{-\pi/8} on his, so the state of the two qubits (A,B)(\mathsf{A},\mathsf{B}) after they perform their operations is

    (U0Uπ/8)ϕ+=00ψ0ψπ/8ϕ++01ψ0ψ3π/8ϕ++10ψπ/2ψπ/8ϕ++11ψπ/2ψ3π/8ϕ+=cos(π8)00+cos(3π8)01+cos(5π8)10+cos(π8)112.\begin{aligned} \bigl(U_0 \otimes U_{-\pi/8}\bigr) \vert \phi^+\rangle & = \vert 00 \rangle \langle \psi_0 \otimes \psi_{-\pi/8}\vert \phi^+\rangle + \vert 01 \rangle \langle \psi_0 \otimes\psi_{3\pi/8}\vert \phi^+\rangle \\ & \qquad + \vert 10 \rangle \langle \psi_{\pi/2} \otimes \psi_{-\pi/8}\vert \phi^+\rangle + \vert 11 \rangle \langle \psi_{\pi/2} \otimes \psi_{3\pi/8}\vert \phi^+\rangle\\[2mm] & = \frac{ \cos\bigl(\frac{\pi}{8}\bigr) \vert 00\rangle + \cos\bigl(-\frac{3\pi}{8}\bigr) \vert 01\rangle + \cos\bigl(\frac{5\pi}{8}\bigr) \vert 10\rangle + \cos\bigl(\frac{\pi}{8}\bigr) \vert 11\rangle}{\sqrt{2}}. \end{aligned}

    The probabilities for the four possible answer pairs (a,b)(a,b) are therefore as follows.

    Pr((a,b)=(0,0))=12cos2(π8)=2+28Pr((a,b)=(0,1))=12cos2(3π8)=228Pr((a,b)=(1,0))=12cos2(5π8)=228Pr((a,b)=(1,1))=12cos2(π8)=2+28\begin{aligned} \operatorname{Pr}\bigl((a,b)=(0,0)\bigr) & = \frac{1}{2}\cos^2\Bigl(\frac{\pi}{8}\Bigr) = \frac{2+\sqrt{2}}{8} \\[2mm] \operatorname{Pr}\bigl((a,b)=(0,1)\bigr) & = \frac{1}{2}\cos^2\Bigl(-\frac{3\pi}{8}\Bigr) = \frac{2-\sqrt{2}}{8}\\[2mm] \operatorname{Pr}\bigl((a,b)=(1,0)\bigr) & = \frac{1}{2}\cos^2\Bigl(\frac{5\pi}{8}\Bigr) = \frac{2-\sqrt{2}}{8}\\[2mm] \operatorname{Pr}\bigl((a,b)=(1,1)\bigr) & = \frac{1}{2}\cos^2\Bigl(\frac{\pi}{8}\Bigr) = \frac{2+\sqrt{2}}{8} \end{aligned}

    Again, we can obtain the probabilities that a=ba=b and aba\neq b by summing.

    Pr(a=b)=2+24Pr(ab)=224\begin{aligned} \operatorname{Pr}(a = b) & = \frac{2 + \sqrt{2}}{4}\\[2mm] \operatorname{Pr}(a \neq b) & = \frac{2 - \sqrt{2}}{4} \end{aligned}

    For the question pair (0,1),(0,1), Alice and Bob win if a=b,a=b, and therefore they win in this case with probability

    2+24.\frac{2 + \sqrt{2}}{4}.
  • Case 3: (x,y)=(1,0).(x,y) = (1,0).

    In this case Alice performs Uπ/4U_{\pi/4} on her qubit and Bob performs Uπ/8U_{\pi/8} on his, so the state of the two qubits (A,B)(\mathsf{A},\mathsf{B}) after they perform their operations is

    (Uπ/4Uπ/8)ϕ+=00ψπ/4ψπ/8ϕ++01ψπ/4ψ5π/8ϕ++10ψ3π/4ψπ/8ϕ++11ψ3π/4ψ5π/8ϕ+=cos(π8)00+cos(3π8)01+cos(5π8)10+cos(π8)112.\begin{aligned} \bigl(U_{\pi/4} \otimes U_{\pi/8}\bigr) \vert \phi^+\rangle & = \vert 00 \rangle \langle \psi_{\pi/4} \otimes \psi_{\pi/8}\vert \phi^+\rangle + \vert 01 \rangle \langle \psi_{\pi/4} \otimes\psi_{5\pi/8}\vert \phi^+\rangle \\ & \qquad + \vert 10 \rangle \langle \psi_{3\pi/4} \otimes \psi_{\pi/8}\vert \phi^+\rangle + \vert 11 \rangle \langle \psi_{3\pi/4} \otimes \psi_{5\pi/8}\vert \phi^+\rangle\\[2mm] & = \frac{ \cos\bigl(\frac{\pi}{8}\bigr) \vert 00\rangle + \cos\bigl(-\frac{3\pi}{8}\bigr) \vert 01\rangle + \cos\bigl(\frac{5\pi}{8}\bigr) \vert 10\rangle + \cos\bigl(\frac{\pi}{8}\bigr) \vert 11\rangle}{\sqrt{2}}. \end{aligned}

    The probabilities for the four possible answer pairs (a,b)(a,b) are therefore as follows.

    Pr((a,b)=(0,0))=12cos2(π8)=2+28Pr((a,b)=(0,1))=12cos2(3π8)=228Pr((a,b)=(1,0))=12cos2(5π8)=228Pr((a,b)=(1,1))=12cos2(π8)=2+28\begin{aligned} \operatorname{Pr}\bigl((a,b)=(0,0)\bigr) & = \frac{1}{2}\cos^2\Bigl(\frac{\pi}{8}\Bigr) = \frac{2+\sqrt{2}}{8} \\[2mm] \operatorname{Pr}\bigl((a,b)=(0,1)\bigr) & = \frac{1}{2}\cos^2\Bigl(-\frac{3\pi}{8}\Bigr) = \frac{2-\sqrt{2}}{8}\\[2mm] \operatorname{Pr}\bigl((a,b)=(1,0)\bigr) & = \frac{1}{2}\cos^2\Bigl(\frac{5\pi}{8}\Bigr) = \frac{2-\sqrt{2}}{8}\\[2mm] \operatorname{Pr}\bigl((a,b)=(1,1)\bigr) & = \frac{1}{2}\cos^2\Bigl(\frac{\pi}{8}\Bigr) = \frac{2+\sqrt{2}}{8} \end{aligned}

    We find, once again, that probabilities that a=ba=b and aba\neq b are as follows.

    Pr(a=b)=2+24Pr(ab)=224\begin{aligned} \operatorname{Pr}(a = b) & = \frac{2 + \sqrt{2}}{4}\\[2mm] \operatorname{Pr}(a \neq b) & = \frac{2 - \sqrt{2}}{4} \end{aligned}

    For the question pair (1,0),(1,0), Alice and Bob win if a=b,a=b, so they win in this case with probability

    2+24.\frac{2 + \sqrt{2}}{4}.
  • Case 4: (x,y)=(1,1).(x,y) = (1,1).

    The last case is a little bit different, as we might expect because the winning condition is different in this case. When xx and yy are both 1,1, Alice and Bob win when aa and bb are different. In this case Alice performs Uπ/4U_{\pi/4} on her qubit and Bob performs Uπ/8U_{-\pi/8} on his, so the state of the two qubits (A,B)(\mathsf{A},\mathsf{B}) after they perform their operations is

    (Uπ/4Uπ/8)ϕ+=00ψπ/4ψπ/8ϕ++01ψπ/4ψ3π/8ϕ++10ψ3π/4ψπ/8ϕ++11ψ3π/4ψ3π/8ϕ+=cos(3π8)00+cos(π8)01+cos(7π8)10+cos(3π8)112.\begin{aligned} \bigl(U_{\pi/4} \otimes U_{-\pi/8}\bigr) \vert \phi^+\rangle & = \vert 00 \rangle \langle \psi_{\pi/4} \otimes \psi_{-\pi/8}\vert \phi^+\rangle + \vert 01 \rangle \langle \psi_{\pi/4} \otimes\psi_{3\pi/8}\vert \phi^+\rangle \\ & \qquad + \vert 10 \rangle \langle \psi_{3\pi/4} \otimes \psi_{-\pi/8}\vert \phi^+\rangle + \vert 11 \rangle \langle \psi_{3\pi/4} \otimes \psi_{3\pi/8}\vert \phi^+\rangle\\[2mm] & = \frac{ \cos\bigl(\frac{3\pi}{8}\bigr) \vert 00\rangle + \cos\bigl(-\frac{\pi}{8}\bigr) \vert 01\rangle + \cos\bigl(\frac{7\pi}{8}\bigr) \vert 10\rangle + \cos\bigl(\frac{3\pi}{8}\bigr) \vert 11\rangle}{\sqrt{2}}. \end{aligned}

    The probabilities for the four possible answer pairs (a,b)(a,b) are therefore as follows.

    Pr((a,b)=(0,0))=12cos2(3π8)=228Pr((a,b)=(0,1))=12cos2(π8)=2+28Pr((a,b)=(1,0))=12cos2(7π8)=2+28Pr((a,b)=(1,1))=12cos2(3π8)=228\begin{aligned} \operatorname{Pr}\bigl((a,b)=(0,0)\bigr) & = \frac{1}{2}\cos^2\Bigl(\frac{3\pi}{8}\Bigr) = \frac{2-\sqrt{2}}{8} \\[2mm] \operatorname{Pr}\bigl((a,b)=(0,1)\bigr) & = \frac{1}{2}\cos^2\Bigl(-\frac{\pi}{8}\Bigr) = \frac{2+\sqrt{2}}{8}\\[2mm] \operatorname{Pr}\bigl((a,b)=(1,0)\bigr) & = \frac{1}{2}\cos^2\Bigl(\frac{7\pi}{8}\Bigr) = \frac{2+\sqrt{2}}{8}\\[2mm] \operatorname{Pr}\bigl((a,b)=(1,1)\bigr) & = \frac{1}{2}\cos^2\Bigl(\frac{3\pi}{8}\Bigr) = \frac{2-\sqrt{2}}{8} \end{aligned}

    The probabilities have effectively swapped places from in the three other cases. We obtain the probabilities that a=ba=b and aba\neq b by summing.

    Pr(a=b)=224Pr(ab)=2+24\begin{aligned} \operatorname{Pr}(a = b) & = \frac{2 - \sqrt{2}}{4}\\[2mm] \operatorname{Pr}(a \neq b) & = \frac{2 + \sqrt{2}}{4} \end{aligned}

    For the question pair (1,1),(1,1), Alice and Bob win if ab,a\neq b, and therefore they win in this case with probability

    2+24.\frac{2 + \sqrt{2}}{4}.

They win in every case with the same probability:

2+240.85. \frac{2 + \sqrt{2}}{4} \approx 0.85.

This is therefore the probability that they win overall. That's significantly better than any classical strategy can do for this game; classical strategies have winning probability bounded by 3/4.3/4. And that makes this a very interesting example.

This happens to be the optimal winning probability for quantum strategies. That is, we can't do any better than this, no matter what entangled state or measurements we choose. This fact is known as Tsirelson's inequality, named for Boris Tsirelson who first proved it — and who first described the CHSH experiment as a game.

Geometric picture

It is possible to think about the strategy described above geometrically, which may be helpful for understanding the relationships among the various angles chosen for Alice and Bob's operations.

What Alice effectively does is to choose an angle α,\alpha, depending on her question x,x, and then to apply UαU_{\alpha} to her qubit and measure. Similarly, Bob chooses an angle β,\beta, depending on y,y, and then he applies UβU_{\beta} to his qubit and measures. We've chosen α\alpha and β\beta like so.

α={0x=0π/4x=1β={π/8y=0π/8y=1\begin{aligned} \alpha & = \begin{cases} 0 & x=0\\ \pi/4 & x=1 \end{cases}\\[4mm] \beta & = \begin{cases} \pi/8 & y = 0\\ -\pi/8 & y = 1 \end{cases} \end{aligned}

For the moment, though, let's take α\alpha and β\beta to be arbitrary. By choosing α,\alpha, Alice effectively defines an orthonormal basis of vectors that looks like this:

Basis for Alice

Bob does likewise, except that his angle is β\beta:

Basis for Bob

The colors of the vectors correspond to Alice and Bob's answers: blue for 00 and red for 1.1.

Now, if we combine together (1)(1) and (2)(2) we get the formula

ψαψβϕ+=12ψαψβ,\langle \psi_{\alpha} \otimes\psi_{\beta} \vert \phi^+ \rangle = \frac{1}{\sqrt{2}} \langle \psi_{\alpha} \vert \psi_{\beta} \rangle,

which works for all real numbers α\alpha and β.\beta.

Following the same sort of analysis that we went through above, but with α\alpha and β\beta being variables, we find this:

(UαUβ)ϕ+=00ψαψβϕ++01ψαψβ+π/2ϕ++10ψα+π/2ψβϕ++11ψα+π/2ψβ+π/2ϕ+=ψαψβ00+ψαψβ+π/201+ψα+π/2ψβ10+ψα+π/2ψβ+π/2112. \begin{aligned} & \bigl(U_{\alpha} \otimes U_{\beta}\bigr) \vert \phi^+\rangle\\[1mm] & \qquad = \vert 00 \rangle \langle \psi_{\alpha} \otimes \psi_{\beta}\vert \phi^+\rangle + \vert 01 \rangle \langle \psi_{\alpha} \otimes\psi_{\beta + \pi/2}\vert \phi^+\rangle \\ & \qquad \qquad + \vert 10 \rangle \langle \psi_{\alpha+\pi/2} \otimes \psi_{\beta}\vert \phi^+\rangle + \vert 11 \rangle \langle \psi_{\alpha+\pi/2} \otimes \psi_{\beta+\pi/2}\vert \phi^+\rangle\\[2mm] & \qquad = \frac{ \langle \psi_\alpha \vert \psi_\beta \rangle \vert 00\rangle + \langle \psi_\alpha \vert \psi_{\beta+\pi/2} \rangle \vert 01\rangle + \langle \psi_{\alpha+\pi/2} \vert \psi_\beta \rangle \vert 10\rangle + \langle \psi_{\alpha+\pi/2} \vert \psi_{\beta+\pi/2} \rangle \vert 11\rangle }{\sqrt{2}}. \end{aligned}

We conclude these two formulas:

Pr(a=b)=12ψαψβ2+12ψα+π/2ψβ+π/22=cos2(αβ)Pr(ab)=12ψαψβ+π/22+12ψα+π/2ψβ2=sin2(αβ).\begin{aligned} \operatorname{Pr}(a = b) & = \frac{1}{2} \vert \langle \psi_\alpha \vert \psi_\beta \rangle \vert^2 + \frac{1}{2} \vert \langle \psi_{\alpha+\pi/2} \vert \psi_{\beta+\pi/2} \rangle \vert^2 = \cos^2(\alpha - \beta)\\[2mm] \operatorname{Pr}(a \neq b) & = \frac{1}{2} \vert \langle \psi_\alpha \vert \psi_{\beta+\pi/2} \rangle \vert^2 + \frac{1}{2} \vert \langle \psi_{\alpha+\pi/2} \vert \psi_\beta \rangle \vert^2 = \sin^2(\alpha - \beta). \end{aligned}

These equations can be connected to the figures above by imagining that we superimpose the bases chosen by Alice and Bob. In particular, when (x,y)=(0,0),(x,y) = (0,0), Alice and Bob choose α=0\alpha = 0 and β=π/8,\beta = \pi/8, and by superimposing their bases we obtain this figure:

Alice and Bob bases case 1

The angle between the red vectors is π/8,\pi/8, which is the same as the angle between the two blue vectors. The probability that Alice and Bob's outcomes agree is the cosine-squared of this angle,

cos2(π8)=2+24,\cos^2\Bigl(\frac{\pi}{8}\Bigr) = \frac{2 + \sqrt{2}}{4},

while the probability they disagree is the sine-squared of this angle,

sin2(π8)=224.\sin^2\Bigl(\frac{\pi}{8}\Bigr) = \frac{2 - \sqrt{2}}{4}.

When (x,y)=(0,1),(x,y) = (0,1), Alice and Bob choose α=0\alpha = 0 and β=π/8,\beta = -\pi/8, and by superimposing their bases we obtain this figure:

Alice and Bob bases case 1

The angle between the red vectors is again π/8,\pi/8, as is the angle between the blue vectors. The probability that Alice and Bob's outcomes agree is again the cosine-squared of this angle,

cos2(π8)=2+24,\cos^2\Bigl(\frac{\pi}{8}\Bigr) = \frac{2 + \sqrt{2}}{4},

while the probability they disagree is the sine-squared of this angle,

sin2(π8)=224.\sin^2\Bigl(\frac{\pi}{8}\Bigr) = \frac{2 - \sqrt{2}}{4}.

When (x,y)=(1,0),(x,y) = (1,0), Alice and Bob choose α=π/4\alpha = \pi/4 and β=π/8,\beta = \pi/8, and by superimposing their bases we obtain this figure:

Alice and Bob bases case 1

The bases have changed but the angles haven't — once again the angle between vectors of the same color is π/8.\pi/8. The probability that Alice and Bob's outcomes agree is

cos2(π8)=2+24,\cos^2\Bigl(\frac{\pi}{8}\Bigr) = \frac{2 + \sqrt{2}}{4},

and the probability they disagree is

sin2(π8)=224.\sin^2\Bigl(\frac{\pi}{8}\Bigr) = \frac{2 - \sqrt{2}}{4}.

When (x,y)=(1,1),(x,y) = (1,1), Alice and Bob choose α=π/4\alpha = \pi/4 and β=π/8.\beta = -\pi/8. When we superimpose their bases, we see that something different has happened:

Alice and Bob bases case 1

By the way the angles were chosen, this time the angle between vectors having the same color is 3π/83\pi/8 rather than π/8.\pi/8. The probability that Alice and Bob's outcomes agree is still the cosine-squared of this angle, but this time the value is

cos2(3π8)=224.\cos^2\Bigl(\frac{3\pi}{8}\Bigr) = \frac{2 - \sqrt{2}}{4}.

The probability the outcomes disagree is the sine-squared of this angle, which in this case is this:

sin2(3π8)=2+24.\sin^2\Bigl(\frac{3\pi}{8}\Bigr) = \frac{2 + \sqrt{2}}{4}.

Remarks

The basic idea of an experiment like the CHSH game, where entanglement leads to statistical results that are inconsistent with purely classical reasoning, is due to John Bell, the namesake of the Bell states. For this reason, people often refer to experiments of this sort as Bell tests. Sometimes people also refer to Bell's theorem, which can be formulated in different ways — but the essence of it is that quantum mechanics is not compatible with so-called local hidden variable theories. The CHSH game is a particularly clean and simple example of a Bell test, and can be viewed as a proof, or demonstration, of Bell's theorem.

The CHSH game offers a way to experimentally test the theory of quantum information. Experiments can be performed that implement the CHSH game, and test the sorts of strategies based on entanglement described above. This provides us with a high degree of confidence that entanglement is real — and unlike the sometimes vague or poetic ways that we come up with to explain entanglement, the CHSH game gives us a concrete and testable way to observe entanglement. The 2022 Nobel Prize in Physics acknowledges the importance of this line of work: the prize was awarded to Alain Aspect, John Clauser (the C in CHSH) and Anton Zeilinger for observing entanglement through Bell tests on entangled photons.

Was this page helpful?
Report a bug or request content on GitHub.