iqm.qaoa.transpiler.sparse.two_color_mapper

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)

Finds an initial mapping between logical and hardware qubits.