bloqade.stim.passes.squin_to_stim.SquinToStimPass
← Module overview
class
method
source
classSquinToStimPass¶source
bloqade.stim.passes.squin_to_stim.SquinToStimPass
Bases: Pass
Lower a squin kernel into the STIM dialect.
class SquinToStimPass(insert_ticks: bool = False)Parameters
| Name | Type | Default | Description |
|---|---|---|---|
insert_ticks | bool | False |
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
insert_ticks | bool | False | Insert a ``TICK`` after every gate, reset, measurement, and noise operation so the emitted Stim circuit preserves the authored execution-order layering (one moment per step) instead of being ASAP-packed when rendered as a diagram. ``TICK`` is a timing-only annotation, so enabling this does not change measurement-record or detector/observable indexing. Default off to keep existing Stim output unchanged. |
methodunsafe_run¶source
bloqade.stim.passes.squin_to_stim.SquinToStimPass.unsafe_run
def unsafe_run(mt: Method) -> RewriteResultRun the squin-to-stim lowering rewrites in place on mt.
Parameters
| Name | Type | Description |
|---|---|---|
mt | Method |
Returns
RewriteResult