bloqade.lanes.rewrite.circuit2place.RewriteLogicalInitializeToNewLogical
← Module overview
class
method
source
classRewriteLogicalInitializeToNewLogical¶source
bloqade.lanes.rewrite.circuit2place.RewriteLogicalInitializeToNewLogical
Bases: abc.RewriteRule
Rewrite qubit references in place.LogicalInitialize statements to place.NewLogicalQubit allocations.
class RewriteLogicalInitializeToNewLogicalHandles both qubit.stmts.New (un-pinned, no location_address) and gemini.operations.NewAt (pinned, with location_address built from constant-folded args).
methodrewrite_Statement¶source
bloqade.lanes.rewrite.circuit2place.RewriteLogicalInitializeToNewLogical.rewrite_Statement
def rewrite_Statement(node: ir.Statement) -> abc.RewriteResultParameters
| Name | Type | Description |
|---|---|---|
node | ir.Statement |
Returns
abc.RewriteResult