iqm.qrisp_iqm.passes.routing.core.graph_processing_tools.find_path#
- iqm.qrisp_iqm.passes.routing.core.graph_processing_tools.find_path(a: int, b: int, topology: QPUTopology) ndarray#
Reconstruct the shortest path between two qubits.
Uses the predecessor matrix from
topologyto reconstruct the shortest path from nodeato nodeb.- Parameters:
a (int)
b (int)
topology (QPUTopology)
- Return type: