Skip to content

bloqade.stim.upstream.from_squin.squin_to_stim

← Module overview

functionsquin_to_stimsource

bloqade.stim.upstream.from_squin.squin_to_stim

Signature
def squin_to_stim(mt: ir.Method, insert_ticks: bool = False) -> ir.Method

Lower a squin kernel to the STIM dialect.

Parameters

NameTypeDefaultDescription
mtir.MethodrequiredThe squin kernel to lower.
insert_ticksboolFalseIf 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.

source