dwave.graphs.pegasus_coordinates.nice_to_pegasus#

static pegasus_coordinates.nice_to_pegasus(n: tuple[int, int, int, int, int]) tuple[int, int, int, int][source]#

Converts a 5-term nice coordinate into a 4-term Pegasus coordinate.

Parameters:

n – Nice coordinate.

Examples

>>> dwave.graphs.pegasus_coordinates.nice_to_pegasus((0, 0, 0, 0, 0))
(0, 0, 4, 0)

Note that this method does not depend on the size of the Pegasus lattice.