Inspiration
The Quantum Leap brief said: "Your laptop is a quantum computer now. Prove it." We wanted a demo that someone who has never studied physics could understand in a minute.
The problem it solves
Quantum computing is hard to picture. "We simulated 200 qubits" sounds impressive, but it explains nothing: it doesn't show what entanglement makes possible, or why some quantum circuits are easy for a normal computer, and others are not. Quantumxp makes both ideas visible through games you can play.
What it does
Part 1: the game no classical team can always win. This is Mermin's GHZ game. Every player gets a card showing 0 or 1, with an even number of 1s dealt. Players cannot talk, and each answers 0 or 1. The team wins if the answers add up the right way: even when 0, 4, 8... 1-cards were dealt, odd when 2, 6, 10... were dealt.
The best possible classical team wins 75% of rounds with 3 players, and about 50% with large teams. Our code checks every classical strategy exactly. A quantum team sharing entangled qubits (a GHZ state) wins every round in an ideal simulation. You can play it from 3 to 200 players. You can also coach the classical team yourself and see that you can't win all four deals. A sabotage switch adds one wrong gate, and the quantum team's streak collapses.
Part 2: the accuracy test. Quantum Rings' CPU engine is MPS-based: it compresses the quantum state as it goes, and its threshold setting is a compression dial.
We send the players' linked qubits on a round trip through a heavy, tangled circuit with extra helper qubits, then exactly backwards, and then they play the game. A perfect simulation brings them back untouched, so the quantum team still wins every round. Turn the compression up and errors creep in: the quantum team starts losing. Below 75%, it does worse than a team with no quantum at all. The game itself becomes a ruler for simulation accuracy. [Add your real result, e.g. "On our MacBook, the quantum team stayed at 100% down to a dial setting of X, and fell to Y% at setting Z."]
Part 3: can a laptop keep up? A memory slider shows why storing every number for 30 qubits already overflows a 16 GB laptop. A "fast or slow?" guessing game lets visitors run different kinds of circuits live and discover that structure, not qubit count, decides what a laptop can handle.
How we built it
Python, the Quantum Rings SDK (QuantumRingsLib, CPU backend) and Streamlit. The quantum strategy is a GHZ circuit: one H gate, a chain of CX gates, an S gate for each player holding a 1, then H and measurement. The classical limit: every classical strategy reduces to 2(n+1) cases, which we score exactly. We checked this against brute force over every strategy for 3 to 7 players. The accuracy test runs a circuit, then its exact inverse, using Quantum Rings' threshold setting, before playing the game. Each heavy run happens in its own process with a time limit, so a slow circuit can't freeze the app. Every result shows a "receipt": the laptop, its memory, the SDK version, the settings, the seed and the run time.
Challenges we ran into
Our first runs failed with license and "not authenticated" errors. We had to log in to Quantum Rings before building any circuit, and keep the login object alive while the app runs. We first thought running 200 qubits was impressive by itself. Then we learned that the GHZ state is easy for a simulator: its result is always all 0s or all 1s, however many qubits there are. Instead of hiding that, we made it the lesson of Part 2. Choosing circuits that are hard enough to show the compression dial at work, yet quick enough to run live at a demo table.
Accomplishments that we're proud of
200 players on a MacBook: the quantum team won 100 out of 100 rounds while the best classical strategy won 46%. All 100 rounds took 12.6 seconds. An exact, checked proof of the classical limit, built into the app. Turning a textbook game into a new way to measure a simulator's accuracy that anyone can read.
What we learned
What entanglement is, and why it lets separated players do something no classical plan can. How quantum simulators fit big circuits on a laptop: they compress, and a dial trades accuracy for speed. That the number of qubits says little on its own. How complicated the entanglement is decides the cost.
What's next for Quantumxp
Use real algorithms such as Grover's search as the "hard" examples. Run the 3-player game on real quantum hardware through Open Quantum and compare it with the simulator. Let visitors compare results from different laptops.