Skip to content

Stmts

Barrier

Bases: Statement

Apply the Barrier statement.

qargs class-attribute instance-attribute

qargs: tuple[SSAValue, ...] = argument(QubitType)

qargs: tuple of qubits to apply the barrier to.

CCX

Bases: Statement

Apply the doubly controlled X gate.

ctrl1 class-attribute instance-attribute

ctrl1: SSAValue = argument(QubitType)

ctrl1 (Qubit): The first control qubit.

ctrl2 class-attribute instance-attribute

ctrl2: SSAValue = argument(QubitType)

ctrl2 (Qubit): The second control qubit.

qarg class-attribute instance-attribute

qarg: SSAValue = argument(QubitType)

qarg (Qubit): The target qubit.

CH

Bases: TwoQubitCtrlGate

Apply the Controlled-H gate.

CRX

Bases: TwoQubitCtrlGate

Apply the Controlled-RX gate.

theta class-attribute instance-attribute

theta: SSAValue = argument(PyNum)

theta (float): The angle to rotate around the X axis.

CU1

Bases: TwoQubitCtrlGate

Apply the Controlled-U1 gate.

lam class-attribute instance-attribute

lam: SSAValue = argument(PyNum)

lam (float): The lambda parameter.

CU3

Bases: TwoQubitCtrlGate

Apply the Controlled-U3 gate.

lam class-attribute instance-attribute

lam: SSAValue = argument(PyNum)

lam (float): The lambda parameter.

phi class-attribute instance-attribute

phi: SSAValue = argument(PyNum)

phi (float): The phi parameter.

CX

Bases: TwoQubitCtrlGate

Alias for the CNOT or CH gate operations.

CY

Bases: TwoQubitCtrlGate

Apply the Controlled-Y gate.

CZ

Bases: TwoQubitCtrlGate

Apply the Controlled-Z gate.

H

Bases: SingleQubitGate

Apply the Hadamard gate.

RX

Bases: SingleQubitGate

Apply the RX gate.

theta class-attribute instance-attribute

theta: SSAValue = argument(PyNum)

theta (float): The angle of rotation around x axis.

RY

Bases: SingleQubitGate

Apply the RY gate.

theta class-attribute instance-attribute

theta: SSAValue = argument(PyNum)

theta (float): The angle of rotation around y axis.

RZ

Bases: SingleQubitGate

Apply the RZ gate.

theta class-attribute instance-attribute

theta: SSAValue = argument(PyNum)

theta (float): the angle of rotation around Z axis.

S

Bases: SingleQubitGate

Apply the S gate.

Sdag

Bases: SingleQubitGate

Apply the hermitian conj of S gate.

SingleQubitGate

Bases: Statement

Base class for single qubit gates.

qarg class-attribute instance-attribute

qarg: SSAValue = argument(QubitType)

qarg (Qubit): The qubit argument.

T

Bases: SingleQubitGate

Apply the T gate.

Tdag

Bases: SingleQubitGate

Apply the hermitian conj of T gate.

TwoQubitCtrlGate

Bases: Statement

ctrl class-attribute instance-attribute

ctrl: SSAValue = argument(QubitType)

ctrl (Qubit): The control qubit.

qarg class-attribute instance-attribute

qarg: SSAValue = argument(QubitType)

qarg (Qubit): The target qubit.

U1

Bases: SingleQubitGate

Apply the U1 gate.

lam class-attribute instance-attribute

lam: SSAValue = argument(PyNum)

lam (float): The lambda parameter.

U2

Bases: SingleQubitGate

Apply the U2 gate.

lam class-attribute instance-attribute

lam: SSAValue = argument(PyNum)

lam (float): The lambda parameter.

phi class-attribute instance-attribute

phi: SSAValue = argument(PyNum)

phi (float): The phi parameter.

UGate

Bases: SingleQubitGate

Apply A general single qubit unitary gate.

lam class-attribute instance-attribute

lam: SSAValue = argument(PyNum)

lam (float): The lambda parameter.

phi class-attribute instance-attribute

phi: SSAValue = argument(PyNum)

phi (float): The phi parameter.

theta class-attribute instance-attribute

theta: SSAValue = argument(PyNum)

theta (float): The theta parameter.

X

Bases: SingleQubitGate

Apply the X gate.

Y

Bases: SingleQubitGate

Apply the Y gate.

Z

Bases: SingleQubitGate

Apply the Z gate.