GHOST HUNT
A quantum search game · Flip, then reflect around the average · Grades 6–8
The hotel
Night 1
The sweet spot
Each dot is the chance to catch a ghost if you look after that many rounds. The ring marks where you are now.
Spot the pattern
Each time the hotel gets 4 times bigger, the quantum search needs only about 2 times as many rounds. A normal search needs 4 times as many looks.
How to play
Can you catch a ghost without knowing where it’s hiding? Choose Solo quick play to take turns hunting and hiding against the computer.
- Hide. The hider puts ghosts in one, two, or three of the eight rooms and locks them in.
- Choose how long to search. The hunter picks zero to three rounds before seeing how many ghosts are hiding. The game then reveals how many there are and changes the room waves for the chosen number of rounds.
- Look. The game shows your catch chance. Flip the seven coins to see whether you caught a ghost. A catch earns the hunter one point. Switch roles for the next night and play six nights in all.
Want to see the arithmetic? Turn off Resolve chosen rounds together to follow each step. Choose Type the answers first (math practice) to work it out before the game reveals the answer.
Try one round in the lab. Start with 4 in each room. Flip the sign in each room with a ghost, find the mean of all eight values, then reflect each value across that mean. If an old value is 2 below the mean, its new value is 2 above. A room’s new value is twice the mean minus its old value.
Why it works
Try the lab with eight rooms and one ghost. Before you do anything, the catch chance is 1 in 8. It rises to about 78% after one round and about 95% after two. Try a third round and watch the chance drop. Timing matters as much as finding a way to boost the odds.
This is the idea behind Grover’s quantum search. The flip marks a hiding place by changing the sign of its wave. The reflection changes every room’s wave using the new mean. Squaring the room values turns those waves into weights for the final look. The chance of a catch is the share of the total weight in rooms with ghosts.
Each run starts with one wave spread evenly over the rooms. A quantum circuit uses gates to perform the same sign changes and reflections you see here.
For teachers
Project the lab with eight rooms and one ghost. Take a vote before each round. “Will our chance go up again?” Record the chance for zero, one, two, and three rounds, then ask groups where they would stop and why.
Work one round on paper. Have one group compute the mean after the sign flip. Ask another to reflect the room values. The squares still add to 128. Use that as a quick way to catch arithmetic slips before anyone looks for the ghost.
For a shorter calculation, call the wave in each ghost room G and the wave in each empty room E. With M ghosts, after the flip the mean is (M × (−G) + (8 − M) × E) ÷ 8. Then the new G is twice that mean plus G, and the new E is twice that mean minus E.
Connect the math. The game uses opposites (CCSS 6.NS.C.6.a), the mean (6.SP.B.5.c), rational-number arithmetic (7.NS.A.1.b and 7.NS.A.3), squares (6.EE.A.1), probability (7.SP.C.7), and binary numbers (CSTA 2-DA-07).
For a bigger example, open the hotel size tool and compare one ghost in 1,000,000 rooms with one in 1,048,576 rooms. The best first stopping points are 785 and 804 rounds, respectively. Ask why quadrupling the number of rooms roughly doubles the best round count.
For tabletop play, read the seven coins as a binary number, with Heads as 1 and Tails as 0. The hunter catches a ghost when that number is smaller than the combined squared weight of the marked rooms. With fractional weights, the coin method approximates the game’s ideal probability.
Ghost Hunt builds on a tradition of classroom search games that includes the University of Waterloo’s Hadamard’s Hoard.
Ghost Hunt · works offline in any browser.