Tamil
மொழிகள்
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

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

DAGCircuit

Raises

TranspilerError -- if dag wider than self.coupling_map