Skip to content

Basic Gates

isQ supports the following quantum gates.

X

X(qbit q)
Pauli X gate.

Y

Y(qbit q)
Pauli Y gate.

Z

Z(qbit q)
Pauli Z gate.

H

H(qbit q)
Hardmard gate.

S

S(qbit q)
Phase gate. Note that .

T

T(qbit q)
(\pi/8) gate. Note that .

Rx

Rx(double theta, qbit q)
Rotation about the X axis.

Ry

Ry(double theta, qbit q)
Rotation about the Y axis.

Rz

Rz(double theta, qbit q)
Rotation about the Z axis.

X2P

X2P(qbit q)
rotation about the X axis.

X2M

X2M(qbit q)
rotation about the X axis.

Y2P

Y2P(qbit q)
rotation about the Y axis.

Y2M

Y2M(qbit q)
rotation about the Y axis.

U3

U3(double theta, double phi, double lambda, qbit q)
Generic single-qubit rotation gate with 3 Euler angles. Note that

CNOT

CNOT(qbit c, qbit t)
Controlled-NOT gate.

CZ

CZ(qbit c, qbit t)
Controlled-Z gate.

Toffoli

Toffoli(qbit c1, qbit c2, qbit t)
Toffoli gate.

GPhase

GPhase(double theta)
Global phase gate. Note that this gate does not have any qbit-type parameter.