qiskit.transpiler.CouplingMap.shortest_undirected_path¶
- CouplingMap.shortest_undirected_path(physical_qubit1, physical_qubit2)[소스]¶
Returns the shortest undirected path between physical_qubit1 and physical_qubit2.
- 매개변수
physical_qubit1 (int) – A physical qubit
physical_qubit2 (int) – Another physical qubit
- 반환
The shortest undirected path
- 반환 형식
List
- 예외 발생
CouplingError – When there is no path between physical_qubit1, physical_qubit2.