qat.pbo.collections.manager_from_target
- qat.pbo.collections.manager_from_target(target_entangling_gate)
Build a PatternManager from a target gate name.
It can turn CNOT and CZ/CSIGN into any of the following gates:
CNOT (key:
'CNOT') : turn CZ into CNOTCZ (key:
'CSIGN') : turn CNOT into CZZZ(pi/2) (key:
'ZZ') : turn CNOT into CZ, then CZ to ZZXX(pi/2) (key:
'XX') : turn CNOT into CZ, then CZ to ZZ, then ZZ to XXRXX (key:
'RXX') : turn CNOT into CZ, then CZ to ZZ, then ZZ to XX, then XX to RXXPMS (key:
'MS') : turn CNOT into CZ, then CZ to ZZ, then ZZ to XX, then XX to RXX, then RXX to PMSRZZ (key:
'RZZ') : turn CNOT into CZ, then CZ to ZZ, then ZZ to RZZECR (key:
'ECR') : turn CZ into CNOT, then CNOT into ECR
- Parameters:
target_entangling_gate (str) – a key in (‘CNOT’, ‘CSIGN’, ‘ZZ’, ‘XX’, ‘RXX’, ‘RZZ’, ‘ECR’, ‘PMS’)
- Returns:
Preconfigured pattern manager.
- Return type: