Skip to content

bloqade.lanes.upstream.squin_to_move

← Module overview

functionsquin_to_movesource

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.Method

Compile a squin kernel to move dialect.

Parameters

NameTypeDefaultDescription
mtir.MethodrequiredThe Squin kernel to compile.
layout_heuristiclayout.LayoutHeuristicABCrequiredThe layout heuristic to use.
placement_strategyplacement.PlacementStrategyABCrequiredThe placement strategy to use. Wrap with ``PalindromePlacementStrategy`` to enable palindrome return moves.
no_raiseboolTrueWhether to suppress exceptions during compilation. Defaults to True.
logical_initializeboolTrueWhether to apply rewrites that insert logical qubit initialization operations; when False, these rewrites are skipped. Defaults to True.
place_opt_typetype[passes.Pass]SequentialPlacePassPlace-dialect optimization pass class. Defaults to SequentialPlacePass.

Returns

ir.MethodThe compiled move dialect method.

source