topology

topology#

Full path: exa.core.util.topology

Topology and layout functions.

Functions

get_chip_graph_matcher(layout_graph, ...[, ...])

Get a networkx GraphMatcher between the specific experiment graph and the used QPU connectivity graph.

get_connectivity_graph(chip_topology[, ...])

Get QPU connectivity graph from the chip topology, restricted to certain components.

get_matching_from_morphisms(morphisms, ...)

Convert morphisms into matching.

get_naive_coloring(components)

Get a naive coloring out of given component lists.

get_naive_layer_from_subsets(all_subsets)

Get a single naive layer of a coloring.

get_naive_morphisms(layout_graph, chip_topology)

Get a list of non-overlapping layouts compatible with the given experiment layout graph.

is_valid_homomorphism(rev_mapping, ...)

Check if the mapping corresponds to a valid injective homomorphism between two graphs.

make_bitsets(all_subsets)

Convert a list of subsets into list of bitsets.

validate_components(components, ...)

Validate each experiment specification to be possible using the layout graph.