Lab

Circuit Lab

The games teach one idea each. This is the open bench. Build any circuit on up to five qubits and watch the exact state answer every change — amplitudes with phases, each qubit's Bloch vector, the density matrix under noise, and real sampled measurements. Nothing here is pre-rendered: the engine runs on every click.

Intuition to form: put a gate in, watch the bars. Add a CNOT and see a qubit's Bloch arrow shrink to nothing — entanglement, measured. Turn up noise and watch purity fall; that is what error correction fights and ZNE extrapolates away. Start from the learning path if the gates are new.

Build

Pick a gate, then click a wire. Two-qubit gates: click control, then target.

qubits

Hadamard — puts a basis state into equal superposition.

presets:2/24 gates

Exact state

The full statevector — amplitude, phase, probability for every basis state.

|00⟩
50.0%0.707+0.000i
|01⟩
0.0%0.000+0.000i
|10⟩
0.0%0.000+0.000i
|11⟩
50.0%0.707+0.000i

Each qubit alone

Reduced Bloch vectors. Entangled qubits shrink toward the center — information has left the individual.

q0 · |r|=0.00 · mixed
q1 · |r|=0.00 · mixed

Noise

A depolarizing channel after every gate — exact density matrix, the same model the VQE suite's ZNE uses.

purity Tr(ρ²)1.0000
gates2

Measure

1024 real shots sampled from the ideal distribution. Randomness is the physics, not a decoration.

OpenQASM 2.0

Your circuit as code. Paste it into the transpiler to compile it to Amazon Braket IR.

OPENQASM 2.0;
include "qelib1.inc";
qreg q[2];
creg c[2];
h q[0];
cx q[0],q[1];
measure q -> c;