Drag gates onto a wire. Dropping on an occupied spot inserts a new column. Drag a gate off the circuit to delete it. Drop ● or ○ on another wire in a gate’s column to add a control.
Remove the gate from the circuit to change its number of qubits.
Ctrl+Enter (⌘+Enter on a Mac) or click away to keep it, Esc to cancel. Leave it empty to go back to the generated description.
Click a column or use the ← → keys to move between steps. Click a gate to see its matrix. Click a wire’s |0⟩ label to set its starting state. For a CNOT or CZ, drag either end to change which qubit it acts on.
State vector
Measurement has split the simulation into branches. Amplitudes only make sense within one branch, so pick a branch above to see them.
Qiskit equivalent
Highlighted lines have been applied so far.