Lab
Build a quantum circuit in your browser, run it thousands of times, and watch the result form as a distribution. Superposition, entanglement and interference, hands on.
2/10 gates
q0
q1
Outcomes
00
0(0.0%)
01
0(0.0%)
10
0(0.0%)
11
0(0.0%)
State
| Basis | Amplitude | Probability |
|---|---|---|
| |00⟩ | +0.7071 | 50.0% |
| |01⟩ | +0.0000 | 0.0% |
| |10⟩ | +0.0000 | 0.0% |
| |11⟩ | +0.7071 | 50.0% |
Qiskit code
from qiskit import QuantumCircuit, transpile
from qiskit_aer import AerSimulator
qc = QuantumCircuit(2, 2)
qc.h(0)
qc.cx(0, 1)
qc.measure([0, 1], [0, 1])
simulator = AerSimulator()
result = simulator.run(transpile(qc, simulator), shots=1000).result()
print(result.get_counts())Runs entirely in your browser. This is an exact statevector simulation of an ideal, noiseless quantum computer — not a connection to quantum hardware, and not Qiskit. The Qiskit code above is generated for you to run yourself.