dwave_networkx.pegasus_coordinates.nice_to_pegasus#

static pegasus_coordinates.nice_to_pegasus(n)[source]#

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

Parameters:

n (5-tuple) – Nice coordinate.

Examples

>>> dnx.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.