Skip to content

bloqade.lanes.rewrite.circuit2place.gate_only_merge

← Module overview

functiongate_only_mergesource

bloqade.lanes.rewrite.circuit2place.gate_only_merge

Signature
def gate_only_merge(sp1: place.StaticPlacement, sp2: place.StaticPlacement) -> bool

Merge placements whose bodies contain only R, Rz, CZ, and Yield.

Parameters

NameTypeDescription
sp1place.StaticPlacement
sp2place.StaticPlacement

Returns

bool

source