Run OpenQASM circuits in your browser for free. Paste a program or start from an example, choose shots and a noise level, and see measurement counts next to the ideal result. Nothing to install, no account, and your code never leaves this page.
Gate errors apply a random Pauli error after each gate (depolarizing). Readout error flips each measured bit.
Use OpenQASM 2.0 (qreg, creg) or 3.0 (qubit, bit). Pick an example to see the syntax. Errors point to the exact line.
Ideal mode is exact. Noise presets add gate and readout errors similar to today's hardware, so you can see how results degrade.
Noisy counts are drawn as bars with the ideal distribution outlined. Copy the counts as JSON or CSV, or the equivalent Qiskit Aer script.
| Category | Supported |
|---|---|
| Registers | qreg q[n]; creg c[n]; and qubit[n] q; bit[n] c;, several registers allowed |
| 1-qubit gates | id x y z h s sdg t tdg sx sxdg rx ry rz p u1 u2 u3 u |
| Multi-qubit gates | cx cy cz ch swap crx cry crz cp cu1 ccx cswap |
| Measurement | measure q[0] -> c[0];, c[0] = measure q[0]; and whole registers |
| Other | barrier, comments, angles with pi and arithmetic, gates applied to whole registers |
Custom gate definitions, classical control (if), loops, reset and mid-circuit measurement feeding later gates. Measurements are treated as final readout.
Up to 16 qubits ideal (65,536 amplitudes) and 12 qubits with noise. Large noisy runs use a set of sampled noise trajectories to stay fast.
Yes. It runs entirely in your browser, so there is no account, no API key and no usage limit beyond your device's memory.
Ideal mode computes the exact state vector, so probabilities match any correct simulator. Counts vary with the random seed, as they would on hardware.
Light noise uses 0.1% one-qubit, 1% two-qubit and 1% readout error, roughly today's better devices. Heavy noise uses 0.5%, 3% and 3%. Real devices differ per qubit and change daily.
Results follow Qiskit's convention: classical bit c[0] is the rightmost character.
Yes. OpenQASM is accepted by IBM Quantum, Amazon Braket and others. Copy your program, or use the Qiskit Aer script as a starting point.
Only in this browser, so it is still there when you return. It is never sent to a server.