qiskit.transpiler.passes.SabreLayout.run¶
- SabreLayout.run(dag)[source]¶
Run the SabreLayout pass on dag.
- Parameters
dag (DAGCircuit) -- DAG to find layout for.
- Returns
- The output dag if swap mapping was run
(otherwise the input dag is returned unmodified).
- Return type
- Raises
TranspilerError -- if dag wider than self.coupling_map