qiskit.transpiler.CouplingMap.shortest_undirected_path¶
- CouplingMap.shortest_undirected_path(physical_qubit1, physical_qubit2)[código fonte]¶
Returns the shortest undirected path between physical_qubit1 and physical_qubit2.
- Parâmetros
physical_qubit1 (int) – A physical qubit
physical_qubit2 (int) – Another physical qubit
- Retorno
The shortest undirected path
- Tipo de retorno
List
- Levanta
CouplingError – When there is no path between physical_qubit1, physical_qubit2.