graph_processing_tools#
Full path: iqm.qrisp_iqm.passes.routing.core.graph_processing_tools
Graph processing tools for plasma-sabre routing passes.
This module implements functions that operate on two different graphs:
The hardware topology graph
QPUTopology.The quantum circuit in DAG form
CircuitDAG.
Module Attributes
|
Describes the QPU topology. |
|
Describes the quantum circuit as a DAG. |
Functions
|
Take a connectivity list and compute the QPU topology. |
|
Convert a quantum circuit into a DAG. |
|
Reconstruct the shortest path between two qubits. |
|
Return the shortest-path distance between two qubit indices. |
|
Generate deduplicated swap candidates for the front layer. |
|
Apply a qubit layout permutation to an instruction DAG. |
|
Prune instructions below a threshold from an instruction DAG. |
|
Count how many nodes each node can reach in a CSR-encoded DAG. |
|
Build a backward instruction DAG by reversing the topological order. |
Classes
Describes the quantum circuit as a DAG. |
|
Describes the QPU topology. |
Inheritance
