Skip to content

bloqade.lanes.rewrite.place2move.InsertFill

← Module overview

classInsertFillsource

bloqade.lanes.rewrite.place2move.InsertFill

Bases: RewriteRule

Emit move.Fill at function entry, with location_addresses collected from place.NewLogicalQubit.location_address in allocation order.

class InsertFill

Pre-condition: every NewLogicalQubit has a non-None location_address (established by ResolvePinnedAddresses).

methodrewrite_Statementsource

bloqade.lanes.rewrite.place2move.InsertFill.rewrite_Statement

def rewrite_Statement(node: ir.Statement) -> RewriteResult

Parameters

NameTypeDescription
nodeir.Statement

Returns

RewriteResult

source