dwave_networkx.chimera_coordinates.chimera_to_linear#

chimera_coordinates.chimera_to_linear(q)[source]#

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

Parameters:

q (4-tuple) – Chimera coordinate.

Examples

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