Quantum Playground

Full sandbox - build any circuit, run famous algorithms, explore freely

Your Quantum Laboratory

Welcome to the Quantum Playground — a free-form sandbox where you can build any circuit, run famous algorithms, inspect quantum states, and test your understanding. Everything you've learned across the previous nine pages comes together here.

Experiment freely. There are no wrong answers — only quantum states waiting to be explored.

Freeform Circuit Builder

Build any circuit you can imagine. Place gates on up to 3 qubits, watch the state vector update in real time, and run measurements to build up a histogram. Use this to verify everything you've learned — or to discover something new.

Qubits:Gate:

Famous Algorithm Runner

Run pre-built implementations of famous quantum algorithms: Deutsch-Jozsa (determines if a function is constant or balanced in one query), Bernstein-Vazirani (finds a hidden bit string), Bell State creation, GHZ State preparation, and a Quantum Coin Flip. Step through each circuit and observe the measurement statistics.

Algorithm:

Multi-Qubit State Inspector

Examine the anatomy of quantum states in detail. View amplitudes, phases (shown as clock faces), measurement probabilities, entropy, and entanglement metrics. Compare product states like |+⟩|0⟩ to entangled states like the Bell and GHZ states to build intuition for how entanglement manifests in the state vector.

State:

Quantum Random Number Generator

Real quantum computers generate true randomness — not pseudorandom numbers from a seed, but fundamentally unpredictable outcomes from quantum measurement. Each bit comes from measuring H|0⟩, giving a genuine 50/50 coin flip. Roll single bits, dice, or full bytes and watch the statistics converge to perfect uniformity.

Mode:

Quantum Teleportation Sandbox

Teleportation transfers a quantum state from Alice to Bob using a shared Bell pair and two classical bits — without physically moving the qubit. Pick any state on the Bloch sphere using θ and φ, teleport it, and verify that Bob's qubit matches Alice's original. The original is destroyed in the process (no-cloning theorem).

Circuit Challenge Mode

Test your understanding! Given a target output state, build a circuit to produce it using a limited number of gates. Start with simple tasks like creating |1⟩ and work up to multi-gate challenges that require understanding gate composition and quantum algebra.

Challenge:
Add:

Congratulations!

You've explored the full spectrum of quantum computing — from the wave-particle duality that started it all, through qubits, gates, and circuits, to powerful algorithms like Grover's search and Shor's factoring. Here's what you've mastered:

  • Quantum states — Superposition, measurement, the Bloch sphere, and multi-qubit entanglement
  • Quantum gates — Single-qubit rotations (H, X, Y, Z, S, T) and two-qubit entangling gates (CNOT, CZ, SWAP)
  • Circuit model — Building and simulating quantum circuits, reading state vectors and measurement outcomes
  • Quantum algorithms — Grover's quadratic speedup for search, Shor's exponential speedup for factoring, and the QFT that powers them
  • Applications — Quantum teleportation, true random number generation, and the implications for cryptography