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.
- প্যারামিটার
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.