Ghosts and Gates SpookyQubits Give feedback

GHOST GUARD

A quantum error-correction game · Check, don't look · Grades 6–8

The Ghost Box

Inside the Ghost Box

Flip coin Sign on coin Peek at coin
Try these

Noise Lab

Every night, each coin is hit by noise on its own. After each night the Guardian checks and fixes. How often is the ghost lost?

Flip chance per coin per night:
Sign chance per coin per night:
Coins guarding the ghost:

Lines: exact chance. Dots: your runs. With checks after every night, 3 or 5 coins beat 1 coin only when the flip chance is below 50% (the threshold). Against sign errors a flip guard never helps: more coins make the ghost more likely to sour. Real quantum computers use codes that check for both kinds.

How to play

You’re guarding a secret ghost. The Gremlin tries to change it. The Guardian gets just three Check cards to see what’s gone wrong. A third player can be the Keeper when you play with real coins. In the browser, the game handles the hidden box.

  1. Set up the secret. Level 0 uses one hidden row. Starting at Level 1, use three HEADS coins in one row and three TAILS coins in the other, with chips for each row. The Keeper keeps the secret hidden.
  2. Play seven nights. Pick your cards secretly. Each night the Keeper handles the Gremlin’s move first, then the Guardian’s. The Gremlin can Flip twice and plays Calm the other nights. The Guardian can Check three times and Rests the other nights.
  3. Check and fix. The Keeper tells you whether coins 1 and 2 match, then whether coins 2 and 3 match. Use the table to decide which coin to turn. For example, if the first pair differs and the second pair matches, turn coin 1 in every row.
  4. Open the box. After night seven there’s a free final Check and Fix. The Guardian wins if the rows and chip colors match the original secret. Otherwise, the Gremlin wins.
Coins 1 and 2Coins 2 and 3What to turn
MatchMatchNothing
DifferMatchCoin 1
DifferDifferCoin 2
MatchDifferCoin 3

What about Peek? Peek shows a coin directly. The ghost then has to choose one row, with odds set by the squared chip amplitudes. You lose the other row and the original secret.

Try Level 2. One of the Gremlin’s Calm cards becomes Sign. That card swaps the chip colors in each row where the named coin shows TAILS. Try Inspect one Sign + Check, or play through all seven nights. Compare the chip colors with the Check answers and see if you can explain the change. Level 2 is a practice challenge without a duel score.

Why the checks work. Check tells you how neighboring coins compare. One flip leaves a pattern that tells you which coin to turn. Two flips between checks can look just like a single flip in the other coin, so the fix can swap the two rows. Sign changes the chips while leaving the coin comparisons the same.

The quantum connection. This is the three-qubit bit-flip code. The chip colors give the signs of the two amplitudes. Flip models an X error, Sign models a Z error, and the two comparisons model the parity checks Z₁Z₂ and Z₂Z₃.

Ghost Guard builds on Ghost Grid’s collapse mechanic. Ghost Grid used QCaMP’s Quantum Tic Tac Toe: Two versions.