List of cQASM qubit operations
The following gate operations are supported by cQASM:
cQASM | Description | Example |
---|---|---|
I | Identity gate | I q[0] |
H | Hadamard gate | H q[0] |
X | Pauli-X gate | X q[0] |
Y | Pauli-Y gate | Y q[0] |
Z | Pauli-Z gate | Z q[0] |
Rx | Arbitrary rotation around X axis | Rx q[0], 3.14 |
Ry | Arbitrary rotation around Y axis | Ry q[0], 3.14 |
Rz | Arbitrary rotation around Z axis | Rz q[0], 0.71 |
X90 | Rotation around X axis of | X90 q[0] |
Y90 | Rotation around Y axis of | Y90 q[0] |
mX90 | Rotation around X axis of | mX90 q[0] |
mY90 | Rotation around Y axis of | mY90 q[0] |
S | Phase gate | S q[0] |
Sdag | gate | Sdag q[0] |
T | T gate | T q[0] |
Tdag | gate | Tdag q[0] |
CNOT | Controlled NOT gate | CNOT q[0], q[1] |
Toffoli | Toffoli gate | Toffoli q[0], q[1], q[2] |
CZ | Controlled-Z, Controlled Phase | CZ q[0], q[1] |
SWAP | Swap gate | SWAP q[0], q[1] |
CRk | Controlled phase shift () | CRk q[0], q[1], 2 |
CR | Controlled phase shift (arbitrary angle) | CR q[0], q[1], 3.14 |
c-? | Binary controlled single-qubit gate | c-X b[0], q[1] c-S b[3], q[0] |