dwave_networkx.chimera_coordinates.linear_to_chimera#

chimera_coordinates.linear_to_chimera(r)[source]#

Converts a linear index to a 4-term Chimera coordinate.

Parameters:

r (int) – Linear index.

Returns:

c – Chimera coordinates as defined in chimera_graph().

Return type:

4-tuple

Examples

>>> dnx.chimera_coordinates(16).linear_to_chimera(272)
(2, 2, 0, 0)