When players in the Mermin-Peres magic square game use a deterministic strategy, the largest probability of winning is 8/9. If the players share a quantum state, then there is a strategy for winning 100% of the time. The idea is to introduce commuting observables.
Alice produces a row of 3 squares with an even number of red squares. There are four such options: GGG, GRR, RGR, RRG. Similarly, Barbara produces a column of 3 squares with an odd number of red squares. There are also four such options: RRR, RGG, GRG, GGR. Thus, Alice and Barbara each need a 2-qubit state and the system is described by a 4-qubit state.
First, Alice and Barbara share a particular 4-qubit quantum state:
This state vector can be re-written as:
Note that this state vector is entangled because it cannot be factorized into Alice and Barbara pieces.
Next, consider the following array of 2-qubit operators:
Using the properties of the Pauli matrices,
you can check that:
- Any two operators in the same column commute.
- Any two operators in the same row commute.
- The product of the operators in a row is I4.
- The product of the operators in a column is −I4.
Since the three operators in each row or column commute with each other, you can have simultaneous eigen-kets. For the first row, the simultaneous eigen-kets are
For the first column, the simultaneous eigen-kets are
For the second row, the simultaneous eigen-kets are
For the second column, the simultaneous eigen-kets are
The third row and the third column are non-trivial because they involve degree-2 Pauli operators. For the third row, the simultaneous eigen-kets are
Finally, the simultaneous eigen-kets for the third column are
Note that |ψ⟩ is a vector in a 16-dimensional space. Alice gets a row number m and Barbara gets a column number n. There are 9 possible referee outcomes. The probability of winning the game is
The probability of winning for the m-th row and the n-th column involves the different ways that Alice and Barbara agree.
For definiteness, consider the case (m,n)=(1,1). There are eight possible scenarios where Alice and Barbara agree:
- Alice measures +++ and Barbara measures ++−
- Alice measures +++ and Barbara measures +−+
- Alice measures +−− and Barbara measures ++−
- Alice measures +−− and Barbara measures +−+
- Alice measures −+− and Barbara measures −++
- Alice measures −+− and Barbara measures −−−
- Alice measures −−+ and Barbara measures −++
- Alice measures −−+ and Barbara measures −−−
For scenario 1, the bra that Alice and Barbara use to measure is
The probability of winning scenario 1 is
The probability of winning the other seven scenarios is the same. Thus, the probability of winning this site in the grid is 100%. A similar argument shows that the probability of winning any site in the grid is 100%. Hence, Alice and Bob can always win the game.