dwave_networkx.chimera_coordinates.chimera_to_linear#

chimera_coordinates.chimera_to_linear(q)[source]#

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

Parameters:

q (4-tuple) – Chimera coordinate.

Returns:

r – Linear index.

Return type:

int

Examples

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