bloqade.lanes.rewrite.place2move.RewriteGates
← Module overview
class
method
sourcemethod
sourcemethod
source
classRewriteGates¶source
bloqade.lanes.rewrite.place2move.RewriteGates
Bases: RewriteRule
Rewrite R circuit statements to move R statements.
Signature
class RewriteGates(placement_analysis: dict[ir.SSAValue, placement.AtomState])Parameters
| Name | Type | Description |
|---|---|---|
placement_analysis | dict[ir.SSAValue, placement.AtomState] |
Attributes
| Name | Type | Description |
|---|---|---|
placement_analysis | dict[ir.SSAValue, placement.AtomState] |
methodstmts_to_insert¶source
bloqade.lanes.rewrite.place2move.RewriteGates.stmts_to_insert
Signature
def stmts_to_insert(node: ir.Statement, state_after: placement.AtomState) -> list[ir.Statement] | NoneParameters
| Name | Type | Description |
|---|---|---|
node | ir.Statement | |
state_after | placement.AtomState |
Returns
list[ir.Statement] | None
methodis_global¶source
bloqade.lanes.rewrite.place2move.RewriteGates.is_global
Signature
def is_global(node: place.R | place.Rz, state_after: placement.ConcreteState) -> boolParameters
| Name | Type | Description |
|---|---|---|
node | place.R | place.Rz | |
state_after | placement.ConcreteState |
Returns
bool
methodrewrite_Statement¶source
bloqade.lanes.rewrite.place2move.RewriteGates.rewrite_Statement
def rewrite_Statement(node: ir.Statement) -> RewriteResultParameters
| Name | Type | Description |
|---|---|---|
node | ir.Statement |
Returns
RewriteResult