Build
Build is a circuit editor with a live simulator.
Placing gates#
Tap a gate in the Gates palette, then tap a wire. You can also drag a gate onto a wire. Gates that act on several wires ask for each wire in turn: tap the control wires, then the target, in the same step.
Gates are grouped by what they do:
| Group | Gates |
|---|---|
| Superpose | H |
| Flip | X, Y |
| Phase | Z, S, S†, T, T† |
| Rotate | √X, Rx, Ry, Rz, P (you set the Angle) |
| Link | CNOT, CZ, SWAP, Toffoli |
| Measure | Measure |
Select a gate to move it Earlier or Later, up or down a wire, swap control and target, or Remove it. Undo and Redo step through your edits. Add a qubit and Remove the last qubit change the number of wires. Copy link copies a link that opens your circuit for someone else.
Start from#
Start from loads a ready circuit: Superposition, Entanglement, Teleportation, Search or Empty. All circuits opens the Circuit library.
What the circuit does#
- What you would measure shows the odds of each outcome. The last digit belongs to q0.
- Each qubit shows a dial per qubit: how often it reads 1. A dot near the centre means the qubit is entangled with others.
- Steps lets you move through the circuit gate column by gate column, from Before any gate to Whole circuit, and watch the odds change.
The state view simulates up to 8 qubits in your browser.
Code#
Code shows the circuit as OpenQASM or Qiskit Python, with a Copy button. The OpenQASM text is editable: edit it and the circuit follows. A mistake shows as "Line N: message".
Running on a chip's noise#
The panel Run with a real chip's noise runs the same circuit with the errors of a real IBM chip. See Running with a real chip's noise.