dwave_networkx.zephyr_coordinates.linear_to_zephyr#

zephyr_coordinates.linear_to_zephyr(r)[source]#

Converts a linear index into a 5-term Zephyr coordinate.

Parameters:

r (int) – Linear index.

Examples

>>> dnx.zephyr_coordinates(2).linear_to_zephyr(137)
(1, 3, 2, 0, 1)