dimod.bqm.adjarraybqm.AdjArrayBQM.energies

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

Determine the energies of the given samples.

Parameters
  • samples_like (samples_like) – Collection of raw samples. samples_like is an extension of NumPy’s array_like structure. See as_samples().

  • dtype (data-type, optional, default=None) – Desired NumPy data type for the energies. Matches dtype by default.

Returns

The energies.

Return type

numpy.ndarray