bloqade.stim.upstream.from_squin.squin_to_stim
← Module overview
function
source
functionsquin_to_stim¶source
bloqade.stim.upstream.from_squin.squin_to_stim
Signature
def squin_to_stim(mt: ir.Method, insert_ticks: bool = False) -> ir.MethodLower a squin kernel to the STIM dialect.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
mt | ir.Method | required | The squin kernel to lower. |
insert_ticks | bool | False | If True, insert a ``TICK`` after every gate, reset, measurement, and noise operation so the emitted circuit preserves the authored execution-order layering when rendered as a diagram. Timing-only, so record/detector indexing is unaffected. |
Returns
ir.MethodA new method lowered to the STIM main dialect group.