two_color_mapper

two_color_mapper#

Full path: iqm.qaoa.transpiler.sparse.two_color_mapper

Module containing the two_color_mapper() function, which creates the initial mapping.

The created Mapping is based on the edge coloring of the graph created by the find_edge_coloring() function.

Functions

two_color_mapper(problem_bqm, qpu, color_sets)

Finds an initial mapping between logical and hardware qubits.