Skip to content

bloqade.lanes.transform.move_to_squin.MoveToSquinBase

← Module overview

classMoveToSquinBasesource

bloqade.lanes.transform.move_to_squin.MoveToSquinBase

Bases: abc.ABC

Base class for all MoveToSquin variants.

Signature
class MoveToSquinBase(arch_spec: ArchSpec, *, aggressive_unroll: bool = False)

Subclasses must implement _get_initialize_kernel, _get_noise_model, and _get_initialize_noise_kernel to control which kernels are passed to the rewrite rules.

Parameters

NameTypeDefaultDescription
arch_specArchSpecrequired
aggressive_unrollboolFalse

Attributes

NameTypeDefaultDescription
arch_specArchSpecrequired
aggressive_unrollboolfield(default=False, kw_only=True)

methodemitsource

bloqade.lanes.transform.move_to_squin.MoveToSquinBase.emit

def emit(main: ir.Method, no_raise: bool = True) -> ir.Method

Parameters

NameTypeDefaultDescription
mainir.Methodrequired
no_raiseboolTrue

Returns

ir.Method

source