exa.core.util.topology.get_naive_morphisms#
- get_naive_morphisms(layout_graph, chip_topology, components=None)#
Get a list of non-overlapping layouts compatible with the given experiment layout graph.
Iteratively finds the first match between the needed layout and the QPU connectivity and removes the used qubits. Non-optimal, the general problem (finding a perfect morphisms in a k-regular hypergraph) is NP-complete.
- Parameters:
layout_graph (Graph) – The layout graph corresponding to the specific experiment.
chip_topology (ChipTopology) – Topology of the chip context.
components (list[str] | None) – List of components. If None, uses all the components.
- Returns:
List of layout morphisms with physical components.
- Return type: