Skip to main content
KetQat

Appearance

Theorem · intermediate

Mermin–Peres magic square game

Alice fills a row and Bob a column of a 3 by 3 grid with signs, rows multiplying to plus one and columns to minus one, and they must agree where row and column cross. Classical players win at most 8 times out of 9; players sharing two Bell pairs always win.

Established resultMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

The game. The referee sends Alice a row index r∈{1,2,3}r \in \{1, 2, 3\} and Bob a column index c∈{1,2,3}c \in \{1, 2, 3\}, uniformly and independently. Alice answers with three signs (a1,a2,a3)∈{±1}3(a_1, a_2, a_3) \in \{\pm 1\}^3 whose product is +1+1, meant as the entries of row rr; Bob answers with three signs (b1,b2,b3)(b_1, b_2, b_3) whose product is −1-1, meant as the entries of column cc. They win if they agree on the common cell: ac=bra_c = b_r.

Theorem. The classical value of the game is ωc=8/9\omega_c = 8/9 and its quantum value is ωq=1\omega_q = 1. A perfect quantum strategy uses the state ∣Φ+⟩A1B1⊗∣Φ+⟩A2B2\ket{\Phi^+}_{A_1 B_1} \otimes \ket{\Phi^+}_{A_2 B_2}, where Alice holds the qubits A1A2A_1 A_2 and Bob B1B2B_1 B_2, and the following square of two-qubit observables:

X⊗II⊗XX⊗XI⊗ZZ⊗IZ⊗Z−X⊗Z−Z⊗XY⊗Y\begin{array}{ccc} X \otimes I & I \otimes X & X \otimes X \\ I \otimes Z & Z \otimes I & Z \otimes Z \\ -X \otimes Z & -Z \otimes X & Y \otimes Y \end{array}

On question rr Alice measures the three observables of row rr on her qubits and answers with the three outcomes; on question cc Bob measures the three observables of column cc on his qubits and answers with the outcomes.

The square of observables is due to Mermin and Peres, who used it to show that quantum measurement outcomes cannot be pre-assigned independently of the measurement context. Its formulation as a two-player game with a perfect quantum strategy is reviewed by Brassard, Broadbent and Tapp.

Holds when

  • The nine question pairs (row, column) are chosen uniformly at random.
  • The players cannot communicate after receiving their questions.

Proof

Proof of the magic square game valuesMachine-checked

Classical upper bound. It suffices to consider deterministic strategies. Alice's strategy assigns to every row rr a triple of product +1+1, that is, a 3×33 \times 3 sign matrix α\alpha whose rows each multiply to +1+1; Bob's assigns a sign matrix β\beta whose columns each multiply to −1-1. They win on (r,c)(r, c) if and only if αrc=βrc\alpha_{rc} = \beta_{rc}. If they won on all nine questions then α=β\alpha = \beta would be a single matrix with all row products +1+1 and all column products −1-1. The product of all nine entries would then be (+1)3=+1(+1)^3 = +1 computed by rows and (−1)3=−1(-1)^3 = -1 computed by columns, a contradiction. So at least one question pair loses and ωc≤8/9\omega_c \le 8/9.

Classical strategy achieving 8/98/9. Let

α=(111111−1−11),β=(111111−1−1−1).\alpha = \begin{pmatrix} 1 & 1 & 1 \\ 1 & 1 & 1 \\ -1 & -1 & 1 \end{pmatrix}, \qquad \beta = \begin{pmatrix} 1 & 1 & 1 \\ 1 & 1 & 1 \\ -1 & -1 & -1 \end{pmatrix} .

The rows of α\alpha multiply to +1+1, the columns of β\beta to −1-1, and the matrices differ only in the cell (3,3)(3, 3).

The quantum strategy is well defined. Denote the observables of the square by OrcO_{rc}. Each is a tensor product of Pauli matrices up to sign, hence Hermitian with Orc2=IO_{rc}^2 = I. Two tensor products of Paulis commute when they anticommute on an even number of tensor factors. In row 1 and row 2 the observables are built from a single Pauli type; in row 3, X⊗ZX \otimes Z and Z⊗XZ \otimes X anticommute on both factors, and each anticommutes with Y⊗YY \otimes Y on both factors; the columns are checked the same way. So the three observables in any row or column commute and can be measured jointly. Their products are

rows:(X⊗I)(I⊗X)(X⊗X)=I,(I⊗Z)(Z⊗I)(Z⊗Z)=I,(−X⊗Z)(−Z⊗X)(Y⊗Y)=I,\text{rows:}\quad (X \otimes I)(I \otimes X)(X \otimes X) = I, \quad (I \otimes Z)(Z \otimes I)(Z \otimes Z) = I, \quad (-X \otimes Z)(-Z \otimes X)(Y \otimes Y) = I ,

using XZ=−iYXZ = -iY and ZX=iYZX = iY, so that (−X⊗Z)(−Z⊗X)=XZ⊗ZX=Y⊗Y(-X \otimes Z)(-Z \otimes X) = XZ \otimes ZX = Y \otimes Y; and

columns:(X⊗I)(I⊗Z)(−X⊗Z)=−I,(I⊗X)(Z⊗I)(−Z⊗X)=−I,(X⊗X)(Z⊗Z)(Y⊗Y)=−I,\text{columns:}\quad (X \otimes I)(I \otimes Z)(-X \otimes Z) = -I, \quad (I \otimes X)(Z \otimes I)(-Z \otimes X) = -I, \quad (X \otimes X)(Z \otimes Z)(Y \otimes Y) = -I ,

the last because XZ⊗XZ=(−iY)⊗(−iY)=− Y⊗YXZ \otimes XZ = (-iY) \otimes (-iY) = -\,Y \otimes Y. A joint measurement of commuting observables whose product is ±I\pm I yields outcomes whose product is ±1\pm 1. Hence Alice's answers multiply to +1+1 and Bob's to −1-1, as the rules require.

The quantum strategy always wins. The shared state is maximally entangled between Alice's pair and Bob's pair: ∣Φ⟩=12∑k=03∣k⟩A∣k⟩B\ket{\Phi} = \tfrac{1}{2} \sum_{k=0}^{3} \ket{k}_A \ket{k}_B. For any operator OO on two qubits, (O⊗I)∣Φ⟩=(I⊗OT)∣Φ⟩(O \otimes I)\ket{\Phi} = (I \otimes O^{T})\ket{\Phi}. All nine observables have real matrices in the computational basis (XX and ZZ are real, and Y⊗YY \otimes Y is real because the two factors of ii multiply to a real number), so OrcT=OrcO_{rc}^{T} = O_{rc} and

⟨Φ∣ Orc⊗Orc ∣Φ⟩=⟨Φ∣ I⊗Orc2 ∣Φ⟩=1.\bra{\Phi}\, O_{rc} \otimes O_{rc}\, \ket{\Phi} = \bra{\Phi}\, I \otimes O_{rc}^2\, \ket{\Phi} = 1 .

The product of Alice's outcome for OrcO_{rc} and Bob's outcome for OrcO_{rc} is a ±1\pm 1-valued random variable with mean 1, hence equal to 1 with certainty. The outcome statistics of OrcO_{rc} do not depend on which commuting observables are measured alongside it. Therefore on every question pair (r,c)(r, c) the two answers for the common cell agree, and ωq=1\omega_q = 1.

Builds on
Part of
Stated in
Mentioned in

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. N. David Mermin (1990). Simple unified form for the major no-hidden-variables theorems. Physical Review Letters 65, 3373-3376. doi:10.1103/physrevlett.65.3373
  2. Asher Peres (1990). Incompatible results of quantum measurements. Physics Letters A 151, 107-108. doi:10.1016/0375-9601(90)90172-k
  3. Gilles Brassard, Anne Broadbent, Alain Tapp (2005). Quantum Pseudo-Telepathy. Foundations of Physics 35, 1877-1907. doi:10.1007/s10701-005-7353-4
  4. R. Cleve, P. Hoyer, B. Toner, J. Watrous (2004). Consequences and limits of nonlocal strategies. Proceedings. 19th IEEE Annual Conference on Computational Complexity, 2004., 236-249. doi:10.1109/ccc.2004.1313847

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Game rules, omega_c = 8/9 and omega_q = 1 compared with Brassard-Broadbent-Tapp (arXiv:quant-ph/0407221) Sec. 5.1-5.3 (row parity even / column parity odd, the 8/9 value); the record's own strategy checked numerically: row products +I and column products -I, commuting observables within each row and column, and <Phi+ Phi+| O (x) O |Phi+ Phi+> = 1 for all nine observables, so every question pair is won; classical value 8/9 confirmed by exhaustive search over deterministic strategies. Mermin-Peres attribution consistent with BBT (who credit the game to Aravind building on Mermin). Reference metadata (Mermin 1990, Peres 1990, BBT 2005, CHTW 2004) compared with Crossref.

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
  2. 2026-11-30KetQat Commons: free learning paths, knowledge records, research problems, literature intake (#14)571c9b10

Current revision 9c44d4ff85f1dc68. Source file knowledge/records/theorem/magic-square-game.md in the content repository (readable there once it is public).