bloqade.lanes.logical_mvp.compile_squin_to_move
← Module overview
function
source
functioncompile_squin_to_move¶source
bloqade.lanes.logical_mvp.compile_squin_to_move
Signature
def compile_squin_to_move(mt: ir.Method, transversal_rewrite: bool = False, no_raise: bool = True, layout_heuristic: LayoutHeuristicABC | None = None, placement_strategy: placement.PlacementStrategyABC | None = None)Compile a squin kernel to the move dialect.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
mt | ir.Method | required | The squin kernel to compile. |
transversal_rewrite | bool | False | Whether to apply transversal rewrite rules. Defaults to False. |
no_raise | bool | True | Whether to suppress exceptions during compilation. Defaults to True. |
layout_heuristic | LayoutHeuristicABC | None | None | Layout heuristic for atom placement. Defaults to ``None`` (uses ``LogicalLayoutHeuristic``). |
placement_strategy | placement.PlacementStrategyABC | None | None | Placement strategy. Defaults to ``None`` (uses ``PalindromePlacementStrategy`` wrapping ``LogicalPlacementStrategyNoHome``). Pass a bare strategy without ``PalindromePlacementStrategy`` to disable palindrome return moves. |
Returns
ir.Method: The compiled move dialect method.