French
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.transpiler.CouplingMap.shortest_undirected_path

CouplingMap.shortest_undirected_path(physical_qubit1, physical_qubit2)[source]

Returns the shortest undirected path between physical_qubit1 and physical_qubit2.

Paramètres
  • physical_qubit1 (int) – A physical qubit

  • physical_qubit2 (int) – Another physical qubit

Renvoie

The shortest undirected path

Type renvoyé

List

Lève

CouplingError – When there is no path between physical_qubit1, physical_qubit2.