Skip to content

bloqade.lanes.rewrite.transversal.RewriteStarRz

← Module overview

classRewriteStarRzsource

bloqade.lanes.rewrite.transversal.RewriteStarRz

Bases: rewrite_abc.RewriteRule

Lower logical STAR rotations to physical local Rz rotations.

Signature
class RewriteStarRz(transform_location: Callable[[LocationAddress], Iterable[LocationAddress] | None])

v1 supports the k=3 Steane STAR protocol. The logical target angle is stored in SQuIn IR turn units; the STAR formula converts through radians internally and returns the physical STAR angle in turns.

Parameters

NameTypeDescription
transform_locationCallable[[LocationAddress], Iterable[LocationAddress] | None]

Attributes

NameTypeDescription
transform_locationCallable[[LocationAddress], Iterable[LocationAddress] | None]

methodrewrite_Statementsource

bloqade.lanes.rewrite.transversal.RewriteStarRz.rewrite_Statement

def rewrite_Statement(node: ir.Statement)

Parameters

NameTypeDescription
nodeir.Statement
source