Players can't talk and each sees only their own card. The best classical plan wins 3 rounds out of 4. A team sharing entangled qubits, simulated on a laptop with the Quantum Rings SDK, wins every round.
Two 1-cards dealt, so the answers must add up to an odd total.
Pick a team size and press Play. Your own computer does the work: your browser simulates the quantum circuit for every round and plays the best possible classical plan on the same cards.
About this demo: your browser computes the exact quantum state for teams of 3 to 10 players (up to 1,024 numbers). It does not use the Quantum Rings SDK. The full app runs the same circuit on the Quantum Rings SDK, where we played teams of 200 qubits, and adds the accuracy test and community results. The 100% is for an ideal, noise-free simulation; real quantum hardware is noisy and would win somewhat less often.
This is the Mermin–GHZ game. No plan agreed in advance can win every round, because the right answer depends on every card and each player sees only one.
Each player gets a 0 or a 1. The referee always deals an even number of 1-cards.
Each player answers 0 or 1, seeing only their own card.
The team wins or loses together. Whether the total must be even or odd depends on how many 1-cards were dealt.
| Cards dealt | 1-cards | To win, the answers must add up to |
|---|---|---|
| 0 · 0 · 0 | none | an even number |
| 1 · 1 · 0 | two | an odd number |
| 1 · 0 · 1 | two | an odd number |
| 0 · 1 · 1 | two | an odd number |
Say the cards are 1, 1, 0. If the players answer 1, 0, 0, the total is 1, which is odd, so the team wins. If they answer 1, 1, 0, the total is 2, which is even, so the team loses.
The catch. A player holding a 0 can't tell whether the deal was 0 · 0 · 0 (even needed) or one with two 1-cards (odd needed), and nobody can ask. That is why the best classical plan wins only 3 deals out of 4. For bigger teams it's the same idea: with 0, 4, 8… 1-cards the total must be even, and with 2, 6, 10… it must be odd.
Quantum Rings fits big circuits on a laptop by compressing, controlled by a dial. We send the players' qubits through a 20-qubit scrambling circuit and exactly back, then play. A perfect simulation keeps the quantum team at 100%. Too much compression and it starts losing, at the lowest setting even below the best classical team.
Quantum team win rate at each compression-dial setting (lower = more compression). Measured on a MacBook (Apple silicon, 64 GB) with QuantumRingsLib 0.12.2: 3 players + 17 helper qubits, 12 scrambling layers, 100 rounds per setting. 99% means one lost round out of 100, so the exact cutoff can move by a step between runs.
The full app runs on the Quantum Rings SDK. While we are demoing, it is served live from our MacBook, so the accuracy test runs at laptop speed (about 2 seconds per setting). You can sign in, publish a result and reply to other people's runs.
If that link doesn't load, our laptop is offline. There is a backup copy on a free server (slower, and it shows a recorded accuracy sweep instead of running one), or you can run the app on your own computer.
Why writing out a quantum state blows up your computer's memory, measured on your own machine, and how Quantum Rings gets around it.
Publish your accuracy test and compare laptops. Results and replies are stored in MongoDB Atlas.
Everything works without an account. Sign in with SSOJet only to publish a result or reply.
You can also run the app on your own machine, which is how we ran the 200-qubit games. You need Python 3.11+ and a free Quantum Rings SDK key.
git clone https://github.com/Cooldode/quantumxp cd quantumxp python3.11 -m venv .venv && source .venv/bin/activate pip install -r requirements.txt export QR_TOKEN="your-sdk-key" export QR_ACCOUNT="your-account-email" streamlit run app.py