utility.graph#
Contains graph algorithm utility functions (mainly for placement and routing steps)
Functions#
|
Defines a score for a node by using cz fidelities on neighbouring couplers and state 1 readout fidelity |
|
builds a bidirectional graph from the two qubits gates in a circuit |
|
Finds the neighbour to a node which has the highest mean fidelity |
|
find node with highest degree in graph |
|
Returns the biggest array of connected components in the graph |
|
find node in graph that is closest to given node, while skipping nodes from the excluding list |
|
Uses IMAGS to find the largest common graph between two graphs |
|
Uses vf2 and combinations to find the largest common graph between two graphs |
|
Checks if a 2 qubits operation is mapped to a coupler in the machine |
|
builds a bidirectional graph from the qubits and coupler of a machine |
find the unmapped node node in graph minus mapped nodes that has shortest path to given source node |
|
|
the length of a path |
|
find the shortest path between node start and end |