Standard gate set

Find below an overview of unitary instructions that are explicitly defined in the language, i.e. the named gates, that comprise the cQASM standard gate set. Click on the Name of the gate for a more detailed description.

Name Identifier Operator Example statement
Hadamard H \(H\) H q[0]
Identity I \(I\) I q[0]
Pauli-X X \(X\) X q[0]
Pauli-Y Y \(Y\) Y q[0]
Pauli-Z Z \(Z\) Z q[0]
X90 X90 \(X^{1/2}\) X90 q[0]
minus-X90 mX90 \(X^{-1/2}\) mX90 q[0]
Y90 Y90 \(Y^{1/2}\) Y90 q[0]
minus-Y90 mY90 \(Y^{-1/2}\) mY90 q[0]
S S \(S\) S q[0]
S-dagger Sdag \(S^\dagger\) Sdag q[0]
T T \(T\) T q[0]
T-dagger Tdag \(T^\dagger\) Tdag q[0]
Rx Rx \(R_x(\theta)\) Rx(pi) q[0]
Ry Ry \(R_y(\theta)\) Ry(pi) q[0]
Rz Rz \(R_z(\theta)\) Rz(pi) q[0]
Rn Rn \(R_\hat{\mathbf{n}}(\hat{\mathbf{n}}, \theta, \phi)\) Rn(1,0,0,pi,pi/2) q[0]
Controlled-NOT CNOT \(CNOT\) CNOT q[0], q[1]
C-Phase CZ \(CZ\) CZ q[0], q[1]
CR CR \(CR(\theta)\) CR(pi) q[0], q[1]
CRk CRk \(CR_k(k)\) CRk(2) q[0], q[1]
SWAP SWAP \(SWAP\) SWAP q[0], q[1]