dwave_networkx.pegasus_coordinates.pegasus_to_nice#

static pegasus_coordinates.pegasus_to_nice(p)[source]#

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

Parameters:

p (4-tuple) – Pegasus coordinate.

Examples

>>> dnx.pegasus_coordinates.pegasus_to_nice((0, 0, 4, 0))
(0, 0, 0, 0, 0)

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