Skip to content
  • Adams, Austin Joel's avatar
    Consider SWAPs in swap-shortest-path · 71e1aefa
    Adams, Austin Joel authored
    Remove SWAP gates from the two-qubit gate whitelist for Staq placement
    also modified in f1eedf04. Otherwise, Swap instructions between
    non-adjacent qubits can slip through the swap-shortest-path
    IRTransformation. An example of this would be the QCOR qft() routine,
    which can generate a Swap between far-away qubits at the end.
    
    Combined with f1eedf04
    
    , fixes ORNL-QCI/qcor#199.
    
    Signed-off-by: default avatarAustin Adams <aja@gatech.edu>
    71e1aefa