Module: generalizers#
Bloq counting generalizers.
Bloq.get_bloq_counts_graph(...) takes a generalizer argument which can combine
multiple bloqs whose attributes differ in ways that do not affect the cost estimates
into one, more general bloq. The functions in this module can be used as generalizers
for this argument.
Functions#
cirq_to_bloqs(...): A generalizer that replaces Cirq gates with their equivalent bloq, where possible.
generalize_cswap_approx(...): A generalizer to replace CSwapApprox with a regular-old CSwap.
generalize_cvs(...): A generalizer that replaces control variables with a shared symbol.
generalize_rotation_angle(...): A generalizer that replaces rotation angles with a shared symbol.
ignore_alloc_free(...): A generalizer that ignores allocations and frees.
ignore_cliffords(...): A generalizer that ignores known clifford bloqs.
ignore_split_join(...): A generalizer that ignores split and join operations.