Stmts
CX
Bases: TwoQubitCtrlGate
flowchart TD
bloqade.qasm3.dialects.uop.stmts.CX[CX]
bloqade.qasm3.dialects.uop.stmts.TwoQubitCtrlGate[TwoQubitCtrlGate]
bloqade.qasm3.dialects.uop.stmts.TwoQubitCtrlGate --> bloqade.qasm3.dialects.uop.stmts.CX
click bloqade.qasm3.dialects.uop.stmts.CX href "" "bloqade.qasm3.dialects.uop.stmts.CX"
click bloqade.qasm3.dialects.uop.stmts.TwoQubitCtrlGate href "" "bloqade.qasm3.dialects.uop.stmts.TwoQubitCtrlGate"
Apply the CNOT (CX) gate.
CY
Bases: TwoQubitCtrlGate
flowchart TD
bloqade.qasm3.dialects.uop.stmts.CY[CY]
bloqade.qasm3.dialects.uop.stmts.TwoQubitCtrlGate[TwoQubitCtrlGate]
bloqade.qasm3.dialects.uop.stmts.TwoQubitCtrlGate --> bloqade.qasm3.dialects.uop.stmts.CY
click bloqade.qasm3.dialects.uop.stmts.CY href "" "bloqade.qasm3.dialects.uop.stmts.CY"
click bloqade.qasm3.dialects.uop.stmts.TwoQubitCtrlGate href "" "bloqade.qasm3.dialects.uop.stmts.TwoQubitCtrlGate"
Apply the Controlled-Y gate.
CZ
Bases: TwoQubitCtrlGate
flowchart TD
bloqade.qasm3.dialects.uop.stmts.CZ[CZ]
bloqade.qasm3.dialects.uop.stmts.TwoQubitCtrlGate[TwoQubitCtrlGate]
bloqade.qasm3.dialects.uop.stmts.TwoQubitCtrlGate --> bloqade.qasm3.dialects.uop.stmts.CZ
click bloqade.qasm3.dialects.uop.stmts.CZ href "" "bloqade.qasm3.dialects.uop.stmts.CZ"
click bloqade.qasm3.dialects.uop.stmts.TwoQubitCtrlGate href "" "bloqade.qasm3.dialects.uop.stmts.TwoQubitCtrlGate"
Apply the Controlled-Z gate.
H
Bases: SingleQubitGate
flowchart TD
bloqade.qasm3.dialects.uop.stmts.H[H]
bloqade.qasm3.dialects.uop.stmts.SingleQubitGate[SingleQubitGate]
bloqade.qasm3.dialects.uop.stmts.SingleQubitGate --> bloqade.qasm3.dialects.uop.stmts.H
click bloqade.qasm3.dialects.uop.stmts.H href "" "bloqade.qasm3.dialects.uop.stmts.H"
click bloqade.qasm3.dialects.uop.stmts.SingleQubitGate href "" "bloqade.qasm3.dialects.uop.stmts.SingleQubitGate"
Apply the Hadamard gate.
RX
Bases: RotationGate
flowchart TD
bloqade.qasm3.dialects.uop.stmts.RX[RX]
bloqade.qasm3.dialects.uop.stmts.RotationGate[RotationGate]
bloqade.qasm3.dialects.uop.stmts.SingleQubitGate[SingleQubitGate]
bloqade.qasm3.dialects.uop.stmts.RotationGate --> bloqade.qasm3.dialects.uop.stmts.RX
bloqade.qasm3.dialects.uop.stmts.SingleQubitGate --> bloqade.qasm3.dialects.uop.stmts.RotationGate
click bloqade.qasm3.dialects.uop.stmts.RX href "" "bloqade.qasm3.dialects.uop.stmts.RX"
click bloqade.qasm3.dialects.uop.stmts.RotationGate href "" "bloqade.qasm3.dialects.uop.stmts.RotationGate"
click bloqade.qasm3.dialects.uop.stmts.SingleQubitGate href "" "bloqade.qasm3.dialects.uop.stmts.SingleQubitGate"
Apply the RX gate.
RY
Bases: RotationGate
flowchart TD
bloqade.qasm3.dialects.uop.stmts.RY[RY]
bloqade.qasm3.dialects.uop.stmts.RotationGate[RotationGate]
bloqade.qasm3.dialects.uop.stmts.SingleQubitGate[SingleQubitGate]
bloqade.qasm3.dialects.uop.stmts.RotationGate --> bloqade.qasm3.dialects.uop.stmts.RY
bloqade.qasm3.dialects.uop.stmts.SingleQubitGate --> bloqade.qasm3.dialects.uop.stmts.RotationGate
click bloqade.qasm3.dialects.uop.stmts.RY href "" "bloqade.qasm3.dialects.uop.stmts.RY"
click bloqade.qasm3.dialects.uop.stmts.RotationGate href "" "bloqade.qasm3.dialects.uop.stmts.RotationGate"
click bloqade.qasm3.dialects.uop.stmts.SingleQubitGate href "" "bloqade.qasm3.dialects.uop.stmts.SingleQubitGate"
Apply the RY gate.
RZ
Bases: RotationGate
flowchart TD
bloqade.qasm3.dialects.uop.stmts.RZ[RZ]
bloqade.qasm3.dialects.uop.stmts.RotationGate[RotationGate]
bloqade.qasm3.dialects.uop.stmts.SingleQubitGate[SingleQubitGate]
bloqade.qasm3.dialects.uop.stmts.RotationGate --> bloqade.qasm3.dialects.uop.stmts.RZ
bloqade.qasm3.dialects.uop.stmts.SingleQubitGate --> bloqade.qasm3.dialects.uop.stmts.RotationGate
click bloqade.qasm3.dialects.uop.stmts.RZ href "" "bloqade.qasm3.dialects.uop.stmts.RZ"
click bloqade.qasm3.dialects.uop.stmts.RotationGate href "" "bloqade.qasm3.dialects.uop.stmts.RotationGate"
click bloqade.qasm3.dialects.uop.stmts.SingleQubitGate href "" "bloqade.qasm3.dialects.uop.stmts.SingleQubitGate"
Apply the RZ gate.
RotationGate
Bases: SingleQubitGate
flowchart TD
bloqade.qasm3.dialects.uop.stmts.RotationGate[RotationGate]
bloqade.qasm3.dialects.uop.stmts.SingleQubitGate[SingleQubitGate]
bloqade.qasm3.dialects.uop.stmts.SingleQubitGate --> bloqade.qasm3.dialects.uop.stmts.RotationGate
click bloqade.qasm3.dialects.uop.stmts.RotationGate href "" "bloqade.qasm3.dialects.uop.stmts.RotationGate"
click bloqade.qasm3.dialects.uop.stmts.SingleQubitGate href "" "bloqade.qasm3.dialects.uop.stmts.SingleQubitGate"
Base class for single-qubit rotation gates.
theta
class-attribute
instance-attribute
theta: SSAValue = argument(PyNum)
theta (float): The rotation angle.
S
Bases: SingleQubitGate
flowchart TD
bloqade.qasm3.dialects.uop.stmts.S[S]
bloqade.qasm3.dialects.uop.stmts.SingleQubitGate[SingleQubitGate]
bloqade.qasm3.dialects.uop.stmts.SingleQubitGate --> bloqade.qasm3.dialects.uop.stmts.S
click bloqade.qasm3.dialects.uop.stmts.S href "" "bloqade.qasm3.dialects.uop.stmts.S"
click bloqade.qasm3.dialects.uop.stmts.SingleQubitGate href "" "bloqade.qasm3.dialects.uop.stmts.SingleQubitGate"
Apply the S gate.
SingleQubitGate
Bases: Statement
flowchart TD
bloqade.qasm3.dialects.uop.stmts.SingleQubitGate[SingleQubitGate]
click bloqade.qasm3.dialects.uop.stmts.SingleQubitGate href "" "bloqade.qasm3.dialects.uop.stmts.SingleQubitGate"
Base class for single qubit gates.
qarg
class-attribute
instance-attribute
qarg: SSAValue = argument(QubitType)
qarg (Qubit): The qubit argument.
T
Bases: SingleQubitGate
flowchart TD
bloqade.qasm3.dialects.uop.stmts.T[T]
bloqade.qasm3.dialects.uop.stmts.SingleQubitGate[SingleQubitGate]
bloqade.qasm3.dialects.uop.stmts.SingleQubitGate --> bloqade.qasm3.dialects.uop.stmts.T
click bloqade.qasm3.dialects.uop.stmts.T href "" "bloqade.qasm3.dialects.uop.stmts.T"
click bloqade.qasm3.dialects.uop.stmts.SingleQubitGate href "" "bloqade.qasm3.dialects.uop.stmts.SingleQubitGate"
Apply the T gate.
TwoQubitCtrlGate
Bases: Statement
flowchart TD
bloqade.qasm3.dialects.uop.stmts.TwoQubitCtrlGate[TwoQubitCtrlGate]
click bloqade.qasm3.dialects.uop.stmts.TwoQubitCtrlGate href "" "bloqade.qasm3.dialects.uop.stmts.TwoQubitCtrlGate"
Base class for two-qubit controlled gates.
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.
UGate
Bases: SingleQubitGate
flowchart TD
bloqade.qasm3.dialects.uop.stmts.UGate[UGate]
bloqade.qasm3.dialects.uop.stmts.SingleQubitGate[SingleQubitGate]
bloqade.qasm3.dialects.uop.stmts.SingleQubitGate --> bloqade.qasm3.dialects.uop.stmts.UGate
click bloqade.qasm3.dialects.uop.stmts.UGate href "" "bloqade.qasm3.dialects.uop.stmts.UGate"
click bloqade.qasm3.dialects.uop.stmts.SingleQubitGate href "" "bloqade.qasm3.dialects.uop.stmts.SingleQubitGate"
Apply a general single qubit unitary gate U(theta, phi, lam).
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
flowchart TD
bloqade.qasm3.dialects.uop.stmts.X[X]
bloqade.qasm3.dialects.uop.stmts.SingleQubitGate[SingleQubitGate]
bloqade.qasm3.dialects.uop.stmts.SingleQubitGate --> bloqade.qasm3.dialects.uop.stmts.X
click bloqade.qasm3.dialects.uop.stmts.X href "" "bloqade.qasm3.dialects.uop.stmts.X"
click bloqade.qasm3.dialects.uop.stmts.SingleQubitGate href "" "bloqade.qasm3.dialects.uop.stmts.SingleQubitGate"
Apply the X gate.
Y
Bases: SingleQubitGate
flowchart TD
bloqade.qasm3.dialects.uop.stmts.Y[Y]
bloqade.qasm3.dialects.uop.stmts.SingleQubitGate[SingleQubitGate]
bloqade.qasm3.dialects.uop.stmts.SingleQubitGate --> bloqade.qasm3.dialects.uop.stmts.Y
click bloqade.qasm3.dialects.uop.stmts.Y href "" "bloqade.qasm3.dialects.uop.stmts.Y"
click bloqade.qasm3.dialects.uop.stmts.SingleQubitGate href "" "bloqade.qasm3.dialects.uop.stmts.SingleQubitGate"
Apply the Y gate.
Z
Bases: SingleQubitGate
flowchart TD
bloqade.qasm3.dialects.uop.stmts.Z[Z]
bloqade.qasm3.dialects.uop.stmts.SingleQubitGate[SingleQubitGate]
bloqade.qasm3.dialects.uop.stmts.SingleQubitGate --> bloqade.qasm3.dialects.uop.stmts.Z
click bloqade.qasm3.dialects.uop.stmts.Z href "" "bloqade.qasm3.dialects.uop.stmts.Z"
click bloqade.qasm3.dialects.uop.stmts.SingleQubitGate href "" "bloqade.qasm3.dialects.uop.stmts.SingleQubitGate"
Apply the Z gate.