Skip to content
Back to projects

Phase Shift

Quantum interference puzzle, verified on IonQ's simulator

Project walkthrough

Technologies
  • Python
  • Qiskit
  • IonQ
  • JavaScript
  • Pyodide
  • pytest

Overview

A puzzle game where you steer a hidden quantum phase until a qubit's two paths reinforce or cancel out, then confirm your answer as a real Qiskit job on IonQ's simulator. Built in 48 hours with one teammate for the Qollab × IonQ Global Quantum Hackathon.

About the project

Phase Shift turns interference into a puzzle. Each level is a small Qiskit circuit with a few gates you control: a phase dial, a second Hadamard that recombines the paths and, in later levels, a which-path eraser. You run the circuit, read a histogram with honest error bars, and adjust until you reach the target probability.

After every run, a “Follow the arrows” view draws each path through your own circuit as an amplitude arrow and shows the classical prediction, the quantum result and the interference term between them. Practice runs use Qiskit's simulator inside the browser. Once a puzzle is solved, “Confirm on IonQ” sends the exact same circuit to IonQ's simulator as a single job. The project placed 2nd of 14 at the Université de Sherbrooke node.

Why it matters

Most quantum games treat measurement as a coin flip. In Phase Shift, randomness alone can't reach any target: the only way to win is to make amplitudes add up or cancel out, the effect that makes quantum computers useful.

Key features

  • Puzzles built on real Qiskit circuits
  • Instant practice runs with Qiskit's simulator in the browser
  • One-click confirmation of the solved circuit on IonQ's simulator
  • “Follow the arrows”: an exact path sum computed from the player's own circuit
  • Histogram with 95% error bars beside the exact theory value
  • Keyboard-operable controls and a text equivalent for every chart
  • 207 automated tests for the physics, path sums and IonQ serialization

What I built

  • Project manager for the 48-hour build
  • Vision lead: defined a game where interference, not luck, decides every puzzle
  • Full-stack development lead: the browser interface and the Python and Qiskit engine behind it
  • Built with one teammate