Skip to content

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

NameTypeDefaultDescription
T—TypeVar('T', place.R, place.Rz, place.StarRz, place.CZ)