bloqade.stim.passes.cleanup_non_stim
cleanup_non_stim¶
bloqade.stim.passes.cleanup_non_stim
Remove leftover impure non-stim statements after conversion.
After the full squin-to-stim conversion pipeline, some impure non-stim statements survive because DCE only removes pure ops. This pass deletes dead impure statements from an explicit list of expected leftovers and warns if an unexpected impure non-stim statement survives.
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
EXPECTED_IMPURE_DEAD | tuple[type[ir.Statement], ...] | (qubit_stmts.New, qubit_stmts.Measure) |