dimod.AdjMapBQM.energies

AdjMapBQM.energies(self, samples, dtype=None)

Determine the energies of the given samples.

Parameters:
  • samples_like (samples_like) – A collection of raw samples. samples_like is an extension of NumPy’s array_like structure. See as_samples().
  • dtype (data-type, optional, default=None) – The desired NumPy data type for the energies. Matches dtype by default.
Returns:

The energies.

Return type:

numpy.ndarray