dwave_networkx.chimera_coordinates.linear_to_chimera#

chimera_coordinates.linear_to_chimera(r)[source]#

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

Parameters:

r (int) – Linear index.

Examples

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