dwave.graphs.pegasus_coordinates.graph_to_pegasus#

pegasus_coordinates.graph_to_pegasus(g: Graph) Graph[source]#

Returns a copy of the graph g relabeled to have Pegasus coordinates.

Parameters:

g – The Pegasus graph to be relabeled.

Returns:

A Pegaus graph relabeled with 4-term Pegasus coordinates.