qat.core.spins.spins_to_integer

qat.core.spins.spins_to_integer(solution_configuration)

A function to translate from a spin configuration with 1 and -1 to a binary configuration with 0 and 1, to the corresponding decimal integer.

Parameters

spins_array (1D numpy array) – array of spins

Returns

the corresponding integer representing the state

Return type

int