Composer
Build a quantum circuit.
Drag gates onto the qubit wires and watch the statevector, measurement probabilities, and generated QXel code update instantly. Everything runs in your browser, so there is nothing to install and no API key to create.
H
X
Y
Z
S
T
CX
Qubits
2
Drag a gate from the palette onto a wire. Click a placed gate to remove it.
q0
H
q1
+
Probabilities
|00⟩
50.0%
|01⟩
0.0%
|10⟩
0.0%
|11⟩
50.0%
Statevector
|00⟩0.70750.0%
|11⟩0.70750.0%
Dot color encodes the phase of each amplitude.
Code
from braket.devices import LocalSimulator
from braket.circuits import Circuit
circuit = Circuit().h(0).cnot(0, 1)
circuit.probability()
qxel = LocalSimulator(backend="QXel-sv")
result = qxel.run(circuit, shots=1000).result()
print(result.measurement_counts)