dwave_networkx.zephyr_coordinates.zephyr_to_linear#

zephyr_coordinates.zephyr_to_linear(q)[source]#

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

Parameters:

q (5-tuple) – Zephyr coordinate.

Examples

>>> dnx.zephyr_coordinates(2).zephyr_to_linear((0, 1, 2, 1, 0))
26