003 Build Your Own Circuit Simulator

Updated | Free, no account, no token needed

SIMULATOR Runs on your device. Not a real quantum computer.

Build a circuit

Each column is a step, applied left to right. Pick a gate for each qubit in each step. For a CNOT, set one qubit to control and another to target in the same step. All qubits start at 0 and all are measured at the end.

Probabilities (exact, from the simulated state)

Take shots

Outcome labels read qubit 0 first. The circuit is stored in the web address after the # sign, so it never leaves your browser unless you share the link.

The gates

GateWhat it does
H (Hadamard)Turns 0 or 1 into an equal superposition. Applied again it undoes itself.
XFlips 0 to 1 and 1 to 0, like a classical NOT.
ZFlips the sign (phase) of the 1 part. It changes no probabilities on its own, but matters when combined with H.
CNOTFlips the target qubit when the control qubit is 1. With H it creates entanglement.

Things to try

More background: how a quantum program runs and how a quantum computer works.

How it works: the simulator keeps the exact quantum state of the qubits as a list of numbers, applies each gate to it, then draws random samples from the resulting probabilities. The random numbers are ordinary pseudo random numbers from your browser, and a real device would add noise. No QNT, wallet or account is needed.

Sources

This is an educational simulator, not financial advice. QUANTUM (QNT) is an independent community token on Solana and does not perform quantum computation.