BasicSwap.run¶
- BasicSwap.run(dag)[source]¶
Run the BasicSwap pass on dag.
- Parameters
dag (DAGCircuit) – DAG to map.
- Returns
A mapped DAG.
- Return type
- Raises
TranspilerError – if the coupling map or the layout are not
compatible with the DAG. –
Run the BasicSwap pass on dag.
dag (DAGCircuit) – DAG to map.
A mapped DAG.
TranspilerError – if the coupling map or the layout are not
compatible with the DAG. –