dwave.system.warnings.WarningHandler.too_few_samples#

WarningHandler.too_few_samples(sampleset)[source]#

Issue a warning if the number of samples is too low.

Issues a warning when the number of ground states found is under the sampling error threshold.

Parameters:

sampleset (dimod.SampleSet) – Sampleset to test.