iqm.qrisp_iqm.passes.routing.core.graph_processing_tools.find_path

Contents

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 topology to reconstruct the shortest path from node a to node b.

Parameters:
Return type:

ndarray