bloqade.lanes.rewrite.fuse_gates
fuse_gates¶
bloqade.lanes.rewrite.fuse_gates
FuseAdjacentGates: fuse adjacent same-op same-params R/Rz/StarRz/CZ statements.
A place-dialect → place-dialect rewrite that operates on the body of a
place.StaticPlacement. Within that body, runs of textually-adjacent
quantum statements with the same opcode, identical non-qubit SSA arguments,
and pairwise-disjoint qubit sets are collapsed into a single statement
covering the union of the qubits.
See docs/superpowers/specs/2026-04-28-place-stage-gate-fusion-design.md
for the full design.
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
T | — | TypeVar('T', place.R, place.Rz, place.StarRz, place.CZ) |
View bloqade.lanes.rewrite.fuse_gates.GateGroup →View bloqade.lanes.rewrite.fuse_gates.GateGroup.statements →View bloqade.lanes.rewrite.fuse_gates.GateGroup.all_qubits →View bloqade.lanes.rewrite.fuse_gates.GateGroup.append →View bloqade.lanes.rewrite.fuse_gates.GateGroup.merge_in_place →View bloqade.lanes.rewrite.fuse_gates.GateGroup.can_extend →View bloqade.lanes.rewrite.fuse_gates.RGroup →View bloqade.lanes.rewrite.fuse_gates.RGroup.can_extend →View bloqade.lanes.rewrite.fuse_gates.RzGroup →View bloqade.lanes.rewrite.fuse_gates.RzGroup.can_extend →View bloqade.lanes.rewrite.fuse_gates.StarRzGroup →View bloqade.lanes.rewrite.fuse_gates.StarRzGroup.can_extend →View bloqade.lanes.rewrite.fuse_gates.CZGroup →View bloqade.lanes.rewrite.fuse_gates.CZGroup.can_extend →View bloqade.lanes.rewrite.fuse_gates.FuseAdjacentGates →View bloqade.lanes.rewrite.fuse_gates.FuseAdjacentGates.rewrite_Statement →