Skip to content

bloqade.stim.dialects.gate.emit.EmitStimGateMethods

← Module overview

classEmitStimGateMethodssource

bloqade.stim.dialects.gate.emit.EmitStimGateMethods

Bases: MethodTable

class EmitStimGateMethods

Attributes

NameTypeDefaultDescription
gate_1q_mapdict[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_mapdict[str, tuple[str, str]]{stmts.Swap.name: ('SWAP', 'SWAP')}
gate_ctrl_2q_mapdict[str, tuple[str, str]]{stmts.CX.name: ('CX', 'CX'), stmts.CY.name: ('CY', 'CY'), stmts.CZ.name: ('CZ', 'CZ'), stmts.Swap.name: ('SWAP', 'SWAP…

methodsingle_qubit_gatesource

bloqade.stim.dialects.gate.emit.EmitStimGateMethods.single_qubit_gate

Signature
def single_qubit_gate(emit: EmitStimMain, frame: EmitStimFrame, stmt: SingleQubitGate)

Parameters

NameTypeDescription
emitEmitStimMain
frameEmitStimFrame
stmtSingleQubitGate
source

methodt_gatesource

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

NameTypeDescription
emitEmitStimMain
frameEmitStimFrame
stmtstmts.T
source

methodrotation_gatesource

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

NameTypeDescription
emitEmitStimMain
frameEmitStimFrame
stmtstmts.Rx
source

methodu3_gatesource

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

NameTypeDescription
emitEmitStimMain
frameEmitStimFrame
stmtstmts.U3
source

methodtwo_qubit_gatesource

bloqade.stim.dialects.gate.emit.EmitStimGateMethods.two_qubit_gate

Signature
def two_qubit_gate(emit: EmitStimMain, frame: EmitStimFrame, stmt: ControlledTwoQubitGate)

Parameters

NameTypeDescription
emitEmitStimMain
frameEmitStimFrame
stmtControlledTwoQubitGate
source

methodctrl_two_qubit_gatesource

bloqade.stim.dialects.gate.emit.EmitStimGateMethods.ctrl_two_qubit_gate

Signature
def ctrl_two_qubit_gate(emit: EmitStimMain, frame: EmitStimFrame, stmt: ControlledTwoQubitGate)

Parameters

NameTypeDescription
emitEmitStimMain
frameEmitStimFrame
stmtControlledTwoQubitGate
source

methodsppsource

bloqade.stim.dialects.gate.emit.EmitStimGateMethods.spp

def spp(emit: EmitStimMain, frame: EmitStimFrame, stmt: stmts.SPP)

Parameters

NameTypeDescription
emitEmitStimMain
frameEmitStimFrame
stmtstmts.SPP
source