dwave_networkx.pegasus_coordinates.nice_to_linear#

pegasus_coordinates.nice_to_linear(n)[source]#

Convert a 5-term nice coordinate into a linear index.

Parameters:

n (5-tuple) – Nice coordinate.

Examples

>>> dnx.pegasus_coordinates(2).nice_to_linear((0, 0, 0, 0, 0))
4