bloqade.pyqrack.qasm2.uop.PyQrackMethods
classPyQrackMethods¶source
bloqade.pyqrack.qasm2.uop.PyQrackMethods
Bases: interp.MethodTable
class PyQrackMethodsAttributes
| Name | Type | Default | Description |
|---|---|---|---|
GATE_TO_METHOD | — | {'x': 'x', 'y': 'y', 'z': 'z', 'h': 'h', 's': 's', 't': 't', 'cx': 'mcx', 'CX': 'mcx', 'cz': 'mcz', 'cy': 'mcy', 'ch':… | |
AXIS_MAP | — | {'rx': Pauli.PauliX, 'ry': Pauli.PauliY, 'rz': Pauli.PauliZ, 'crx': Pauli.PauliX, 'cry': Pauli.PauliY, 'crz': Pauli.Pau… |
methodbarrier¶source
bloqade.pyqrack.qasm2.uop.PyQrackMethods.barrier
Signature
def barrier(interp: interp.Interpreter, frame: interp.Frame, stmt: uop.Barrier)Parameters
| Name | Type | Description |
|---|---|---|
interp | interp.Interpreter | |
frame | interp.Frame | |
stmt | uop.Barrier |
methodsingle_qubit_gate¶source
bloqade.pyqrack.qasm2.uop.PyQrackMethods.single_qubit_gate
Signature
def single_qubit_gate(interp: interp.Interpreter, frame: interp.Frame, stmt: uop.SingleQubitGate)Parameters
| Name | Type | Description |
|---|---|---|
interp | interp.Interpreter | |
frame | interp.Frame | |
stmt | uop.SingleQubitGate |
methodugate¶source
bloqade.pyqrack.qasm2.uop.PyQrackMethods.ugate
Signature
def ugate(interp: interp.Interpreter, frame: interp.Frame, stmt: uop.UGate)Parameters
| Name | Type | Description |
|---|---|---|
interp | interp.Interpreter | |
frame | interp.Frame | |
stmt | uop.UGate |
methodid¶source
bloqade.pyqrack.qasm2.uop.PyQrackMethods.id
def id(interp: interp.Interpreter, frame: interp.Frame, stmt: uop.Id)Parameters
| Name | Type | Description |
|---|---|---|
interp | interp.Interpreter | |
frame | interp.Frame | |
stmt | uop.Id |
methodsx¶source
bloqade.pyqrack.qasm2.uop.PyQrackMethods.sx
def sx(interp: interp.Interpreter, frame: interp.Frame, stmt: uop.SX)Parameters
| Name | Type | Description |
|---|---|---|
interp | interp.Interpreter | |
frame | interp.Frame | |
stmt | uop.SX |
methodsx_dag¶source
bloqade.pyqrack.qasm2.uop.PyQrackMethods.sx_dag
Signature
def sx_dag(interp: interp.Interpreter, frame: interp.Frame, stmt: uop.SX)Parameters
| Name | Type | Description |
|---|---|---|
interp | interp.Interpreter | |
frame | interp.Frame | |
stmt | uop.SX |
methodcsx¶source
bloqade.pyqrack.qasm2.uop.PyQrackMethods.csx
def csx(interp: interp.Interpreter, frame: interp.Frame, stmt: uop.CSX)Parameters
| Name | Type | Description |
|---|---|---|
interp | interp.Interpreter | |
frame | interp.Frame | |
stmt | uop.CSX |
methodswap¶source
bloqade.pyqrack.qasm2.uop.PyQrackMethods.swap
Signature
def swap(interp: interp.Interpreter, frame: interp.Frame, stmt: uop.Swap)Parameters
| Name | Type | Description |
|---|---|---|
interp | interp.Interpreter | |
frame | interp.Frame | |
stmt | uop.Swap |
methodcswap¶source
bloqade.pyqrack.qasm2.uop.PyQrackMethods.cswap
Signature
def cswap(interp: interp.Interpreter, frame: interp.Frame, stmt: uop.CSwap)Parameters
| Name | Type | Description |
|---|---|---|
interp | interp.Interpreter | |
frame | interp.Frame | |
stmt | uop.CSwap |
methodcontrol_gate¶source
bloqade.pyqrack.qasm2.uop.PyQrackMethods.control_gate
Signature
def control_gate(interp: interp.Interpreter, frame: interp.Frame, stmt: uop.CX | uop.CZ | uop.CY)Parameters
| Name | Type | Description |
|---|---|---|
interp | interp.Interpreter | |
frame | interp.Frame | |
stmt | uop.CX | uop.CZ | uop.CY |
methodccx¶source
bloqade.pyqrack.qasm2.uop.PyQrackMethods.ccx
def ccx(interp: interp.Interpreter, frame: interp.Frame, stmt: uop.CCX)Parameters
| Name | Type | Description |
|---|---|---|
interp | interp.Interpreter | |
frame | interp.Frame | |
stmt | uop.CCX |
methodrotation¶source
bloqade.pyqrack.qasm2.uop.PyQrackMethods.rotation
Signature
def rotation(interp: interp.Interpreter, frame: interp.Frame, stmt: uop.RX | uop.RY | uop.RZ)Parameters
| Name | Type | Description |
|---|---|---|
interp | interp.Interpreter | |
frame | interp.Frame | |
stmt | uop.RX | uop.RY | uop.RZ |
methodu1¶source
bloqade.pyqrack.qasm2.uop.PyQrackMethods.u1
def u1(interp: interp.Interpreter, frame: interp.Frame, stmt: uop.U1)Parameters
| Name | Type | Description |
|---|---|---|
interp | interp.Interpreter | |
frame | interp.Frame | |
stmt | uop.U1 |
methodu2¶source
bloqade.pyqrack.qasm2.uop.PyQrackMethods.u2
def u2(interp: interp.Interpreter, frame: interp.Frame, stmt: uop.U2)Parameters
| Name | Type | Description |
|---|---|---|
interp | interp.Interpreter | |
frame | interp.Frame | |
stmt | uop.U2 |
methodcrx¶source
bloqade.pyqrack.qasm2.uop.PyQrackMethods.crx
def crx(interp: interp.Interpreter, frame: interp.Frame, stmt: uop.CRX)Parameters
| Name | Type | Description |
|---|---|---|
interp | interp.Interpreter | |
frame | interp.Frame | |
stmt | uop.CRX |
methodcu1¶source
bloqade.pyqrack.qasm2.uop.PyQrackMethods.cu1
def cu1(interp: interp.Interpreter, frame: interp.Frame, stmt: uop.CU1)Parameters
| Name | Type | Description |
|---|---|---|
interp | interp.Interpreter | |
frame | interp.Frame | |
stmt | uop.CU1 |
methodcu3¶source
bloqade.pyqrack.qasm2.uop.PyQrackMethods.cu3
def cu3(interp: interp.Interpreter, frame: interp.Frame, stmt: uop.CU3)Parameters
| Name | Type | Description |
|---|---|---|
interp | interp.Interpreter | |
frame | interp.Frame | |
stmt | uop.CU3 |
methodcu¶source
bloqade.pyqrack.qasm2.uop.PyQrackMethods.cu
def cu(interp: interp.Interpreter, frame: interp.Frame, stmt: uop.CU)Parameters
| Name | Type | Description |
|---|---|---|
interp | interp.Interpreter | |
frame | interp.Frame | |
stmt | uop.CU |
methodrxx¶source
bloqade.pyqrack.qasm2.uop.PyQrackMethods.rxx
def rxx(interp: interp.Interpreter, frame: interp.Frame, stmt: uop.RXX)Parameters
| Name | Type | Description |
|---|---|---|
interp | interp.Interpreter | |
frame | interp.Frame | |
stmt | uop.RXX |
methodrzz¶source
bloqade.pyqrack.qasm2.uop.PyQrackMethods.rzz
def rzz(interp: interp.Interpreter, frame: interp.Frame, stmt: uop.RZZ)Parameters
| Name | Type | Description |
|---|---|---|
interp | interp.Interpreter | |
frame | interp.Frame | |
stmt | uop.RZZ |