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
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
CY
CZ
H
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
Sdag
SingleQubitGate
Bases: Statement
Base class for single qubit gates.
qarg class-attribute
instance-attribute
qarg: SSAValue = argument(QubitType)
qarg (Qubit): The qubit argument.
T
Tdag
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.