bloqade.lanes.upstream.squin_to_move
← Module overview
function
source
functionsquin_to_move¶source
bloqade.lanes.upstream.squin_to_move
Signature
def squin_to_move(mt: ir.Method, layout_heuristic: layout.LayoutHeuristicABC, placement_strategy: placement.PlacementStrategyABC, no_raise: bool = True, logical_initialize: bool = True, place_opt_type: type[passes.Pass] = SequentialPlacePass) -> ir.MethodCompile a squin kernel to move dialect.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
mt | ir.Method | required | The Squin kernel to compile. |
layout_heuristic | layout.LayoutHeuristicABC | required | The layout heuristic to use. |
placement_strategy | placement.PlacementStrategyABC | required | The placement strategy to use. Wrap with ``PalindromePlacementStrategy`` to enable palindrome return moves. |
no_raise | bool | True | Whether to suppress exceptions during compilation. Defaults to True. |
logical_initialize | bool | True | Whether to apply rewrites that insert logical qubit initialization operations; when False, these rewrites are skipped. Defaults to True. |
place_opt_type | type[passes.Pass] | SequentialPlacePass | Place-dialect optimization pass class. Defaults to SequentialPlacePass. |
Returns
ir.MethodThe compiled move dialect method.