Qubits
Registers
Runs
1
Note: Requires at least Chrome 80 to work.
See this page to check for browser support.
Commands
run

Starts executing the program currently in the editor the number of times specifed under 'Shots,' and prints table showing the frequency of final register values after each run. Register values are shown as $r_{n-1}\cdots r_1r_0$.

step

Steps through the currently running program one instruction at a time.

printket

Prints out the current state (while stepping through) in ket form, listing out all the non-zero basis states and their corresponding coefficients.

printstab

Prints out a table of generators for stabilzer, the unique subgroup of the Pauli group $\mathcal{P}_n$, that corresponds to the current state.

printstabanti

Prints out a table of generators for the Anti-Stabilizer group. The union of the Stabilizer group and the Anti-Stabilizer group is the Pauli Group.

help

Scrolls down to this section.

Instructions
hadamard <qubit>
h <qubit>

Applies Hadamard gate to specified qubit.

cnot <control qubit> <target qubit>
c <control qubit> <target qubit>

Applies CNOT gate to specified target qubit with specified control qubit as the control.

phase <qubit>
p <qubit>

Applies a $\frac{\pi}{2}$ rotation about the $Z$-axis on the bloch-sphere to the specified qubit.

measure <qubit> <register>
m <qubit> <register>

Measures the specified qubits and writes the result to the specified register.