qiskit.transpiler.passes.DenseLayout.run¶
-
DenseLayout.
run
(dag)[source]¶ Run the DenseLayout pass on dag.
Pick a convenient layout depending on the best matching qubit connectivity, and set the property layout.
- Parameters
dag (DAGCircuit) – DAG to find layout for.
- Raises
TranspilerError – if dag wider than self.coupling_map