bloqade.lanes.rewrite.place2move.InsertInitialize
← Module overview
class
method
source
classInsertInitialize¶source
bloqade.lanes.rewrite.place2move.InsertInitialize
Bases: RewriteRule
Emit move.LogicalInitialize for all NewLogicalQubits in a block, with location_addresses, thetas, phis, lams collected directly from each statement. Non-NewLogicalQubit statements (e.g. angle constants) are skipped. The Load/LogicalInitialize/Store triple is inserted before the statement that immediately follows the last NewLogicalQubit.
class InsertInitializePre-condition: every NewLogicalQubit has a non-None location_address (established by ResolvePinnedAddresses).
methodrewrite_Block¶source
bloqade.lanes.rewrite.place2move.InsertInitialize.rewrite_Block
def rewrite_Block(node: ir.Block) -> RewriteResultParameters
| Name | Type | Description |
|---|---|---|
node | ir.Block |
Returns
RewriteResult