bloqade.stim.dialects.gate.emit.EmitStimGateMethods
classEmitStimGateMethods¶source
bloqade.stim.dialects.gate.emit.EmitStimGateMethods
Bases: MethodTable
class EmitStimGateMethodsAttributes
| Name | Type | Default | Description |
|---|---|---|---|
gate_1q_map | dict[str, tuple[str, str]] | {stmts.Identity.name: ('I', 'I'), stmts.X.name: ('X', 'X'), stmts.Y.name: ('Y', 'Y'), stmts.Z.name: ('Z', 'Z'), stmts.H… | |
gate_2q_map | dict[str, tuple[str, str]] | {stmts.Swap.name: ('SWAP', 'SWAP')} | |
gate_ctrl_2q_map | dict[str, tuple[str, str]] | {stmts.CX.name: ('CX', 'CX'), stmts.CY.name: ('CY', 'CY'), stmts.CZ.name: ('CZ', 'CZ')} |
methodsingle_qubit_gate¶source
bloqade.stim.dialects.gate.emit.EmitStimGateMethods.single_qubit_gate
Signature
def single_qubit_gate(emit: EmitStimMain, frame: EmitStimFrame, stmt: SingleQubitGate)Parameters
| Name | Type | Description |
|---|---|---|
emit | EmitStimMain | |
frame | EmitStimFrame | |
stmt | SingleQubitGate |
methodt_gate¶source
bloqade.stim.dialects.gate.emit.EmitStimGateMethods.t_gate
def t_gate(emit: EmitStimMain, frame: EmitStimFrame, stmt: stmts.T)Emit T gate as S[T] or S_DAG[T] in Stim annotation format.
Parameters
| Name | Type | Description |
|---|---|---|
emit | EmitStimMain | |
frame | EmitStimFrame | |
stmt | stmts.T |
methodrotation_gate¶source
bloqade.stim.dialects.gate.emit.EmitStimGateMethods.rotation_gate
Signature
def rotation_gate(emit: EmitStimMain, frame: EmitStimFrame, stmt: stmts.Rx)Emit rotation gate as I[R_X/R_Y/R_Z(theta=…)] in Stim annotation format.
Parameters
| Name | Type | Description |
|---|---|---|
emit | EmitStimMain | |
frame | EmitStimFrame | |
stmt | stmts.Rx |
methodu3_gate¶source
bloqade.stim.dialects.gate.emit.EmitStimGateMethods.u3_gate
def u3_gate(emit: EmitStimMain, frame: EmitStimFrame, stmt: stmts.U3)Emit U3 gate as I[U3(theta=…, phi=…, lambda=…)] in Stim annotation format.
Parameters
| Name | Type | Description |
|---|---|---|
emit | EmitStimMain | |
frame | EmitStimFrame | |
stmt | stmts.U3 |
methodtwo_qubit_gate¶source
bloqade.stim.dialects.gate.emit.EmitStimGateMethods.two_qubit_gate
Signature
def two_qubit_gate(emit: EmitStimMain, frame: EmitStimFrame, stmt: TwoQubitGate)Parameters
| Name | Type | Description |
|---|---|---|
emit | EmitStimMain | |
frame | EmitStimFrame | |
stmt | TwoQubitGate |
methodctrl_two_qubit_gate¶source
bloqade.stim.dialects.gate.emit.EmitStimGateMethods.ctrl_two_qubit_gate
Signature
def ctrl_two_qubit_gate(emit: EmitStimMain, frame: EmitStimFrame, stmt: ControlledTwoQubitGate)Parameters
| Name | Type | Description |
|---|---|---|
emit | EmitStimMain | |
frame | EmitStimFrame | |
stmt | ControlledTwoQubitGate |
methodspp¶source
bloqade.stim.dialects.gate.emit.EmitStimGateMethods.spp
def spp(emit: EmitStimMain, frame: EmitStimFrame, stmt: stmts.SPP)Parameters
| Name | Type | Description |
|---|---|---|
emit | EmitStimMain | |
frame | EmitStimFrame | |
stmt | stmts.SPP |