qat.pbo.collections.collection_from_target

qat.pbo.collections.collection_from_target(target_entangling_gate)

Build a list of pattern groups from a target gate name.

It can turn CNOT and CZ/CSIGN into any of the following gates: CNOT CZ (key: ‘CSIGN’) ZZ(pi/2) (key: ‘ZZ’) XX(pi/2) (key: ‘XX’)

Parameters

target_entangling_gate (str) – a key in (‘CNOT’, ‘CSIGN’, ‘ZZ’, ‘XX’)

Returns

a list of PatternGroup