RapidsAPI

Free Quantum Simulator

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.

OpenQASM 2.0 and 3.0 Up to 16 qubits Realistic noise models Runs locally, free
QASM 2
Times the circuit is sampled, from 1 to 100,000.
Noise model

Custom noise

Gate errors apply a random Pauli error after each gate (depolarizing). Readout error flips each measured bit.

Same seed and settings give the same counts.

Results

Press Run to simulate.

How it works

Write or paste OpenQASM

Use OpenQASM 2.0 (qreg, creg) or 3.0 (qubit, bit). Pick an example to see the syntax. Errors point to the exact line.

Choose shots and noise

Ideal mode is exact. Noise presets add gate and readout errors similar to today's hardware, so you can see how results degrade.

Compare and export

Noisy counts are drawn as bars with the ideal distribution outlined. Copy the counts as JSON or CSV, or the equivalent Qiskit Aer script.

Supported OpenQASM

CategorySupported
Registersqreg q[n]; creg c[n]; and qubit[n] q; bit[n] c;, several registers allowed
1-qubit gatesid x y z h s sdg t tdg sx sxdg rx ry rz p u1 u2 u3 u
Multi-qubit gatescx cy cz ch swap crx cry crz cp cu1 ccx cswap
Measurementmeasure q[0] -> c[0];, c[0] = measure q[0]; and whole registers
Otherbarrier, comments, angles with pi and arithmetic, gates applied to whole registers

Not supported yet

Custom gate definitions, classical control (if), loops, reset and mid-circuit measurement feeding later gates. Measurements are treated as final readout.

Limits

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.

More quantum tools

Questions about the simulator

Is the simulator really free?

Yes. It runs entirely in your browser, so there is no account, no API key and no usage limit beyond your device's memory.

How accurate is it?

Ideal mode computes the exact state vector, so probabilities match any correct simulator. Counts vary with the random seed, as they would on hardware.

What do the noise presets mean?

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.

Why are bitstrings written right to left?

Results follow Qiskit's convention: classical bit c[0] is the rightmost character.

Can I run this on real hardware?

Yes. OpenQASM is accepted by IBM Quantum, Amazon Braket and others. Copy your program, or use the Qiskit Aer script as a starting point.

Is my code stored?

Only in this browser, so it is still there when you return. It is never sent to a server.