bloqade.stim.emit.stim_str.EmitStimMain
← Module overview
class
method
method
sourcemethod
sourcemethod
sourcemethod
sourcemethod
source
classEmitStimMain¶source
bloqade.stim.emit.stim_str.EmitStimMain
Bases: EmitABC[EmitStimFrame, str], Generic[IO_t]
Signature
class EmitStimMain(io: IO_t = cast(IO_t, sys.stdout), correlation_identifier_offset: int = 0)Parameters
| Name | Type | Default | Description |
|---|---|---|---|
io | IO_t | cast(IO_t, sys.stdout) | |
correlation_identifier_offset | int | 0 |
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
io | IO_t | cast(IO_t, sys.stdout) | |
keys | — | ('emit.stim',) | |
void | — | '' | |
correlation_identifier_offset | int | 0 |
methodinitialize¶source
bloqade.stim.emit.stim_str.EmitStimMain.initialize
methodinitialize_frame¶source
bloqade.stim.emit.stim_str.EmitStimMain.initialize_frame
Signature
def initialize_frame(node: ir.Statement, *, has_parent_access: bool = False) -> EmitStimFrameParameters
| Name | Type | Default | Description |
|---|---|---|---|
node | ir.Statement | required | |
has_parent_access | bool | False |
Returns
EmitStimFrame
methodframe_call¶source
bloqade.stim.emit.stim_str.EmitStimMain.frame_call
Signature
def frame_call(frame: EmitStimFrame, node: ir.Statement, *args: str = (), **kwargs: str = {}) -> strParameters
| Name | Type | Default | Description |
|---|---|---|---|
frame | EmitStimFrame | required | |
node | ir.Statement | required | |
*args | str | () | |
**kwargs | str | {} |
Returns
str
methodget_attribute¶source
bloqade.stim.emit.stim_str.EmitStimMain.get_attribute
def get_attribute(frame: EmitStimFrame, node: ir.Attribute) -> strParameters
| Name | Type | Description |
|---|---|---|
frame | EmitStimFrame | |
node | ir.Attribute |
Returns
str
methodreset¶source
bloqade.stim.emit.stim_str.EmitStimMain.reset
def reset()methodeval_fallback¶source
bloqade.stim.emit.stim_str.EmitStimMain.eval_fallback
def eval_fallback(frame: EmitStimFrame, node: ir.Statement) -> tupleParameters
| Name | Type | Description |
|---|---|---|
frame | EmitStimFrame | |
node | ir.Statement |
Returns
tuple