German
Sprachen
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.transpiler.passes.SabreSwap.run

SabreSwap.run(dag)[Quellcode]

Run the SabreSwap pass on dag.

Parameter

dag (DAGCircuit) – the directed acyclic graph to be mapped.

Rückgabe

A dag mapped to be compatible with the coupling_map.

Rückgabetyp

DAGCircuit

Verursacht
  • TranspilerError – if the coupling map or the layout are not

  • compatible with the DAG, or if the coupling_map=None