StochasticSwap.run¶
- StochasticSwap.run(dag)[source]¶
Run the StochasticSwap 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 –