exa.core.util.topology.get_naive_coloring#
- get_naive_coloring(components)#
Get a naive coloring out of given component lists.
Going in order, find a set of tuples of qubits which does not overlap on any qubit. Remove these tuples, and repeat, obtaining effectively an edge coloring of a hypergraph. Solving this problem optimally is NP-complete.