dimod.reference.samplers.NullSampler.sample#

NullSampler.sample(bqm: BinaryQuadraticModel, **kwargs) SampleSet[source]#

Return an empty sample set.

Parameters:
  • bqm – Binary quadratic model (BQM) that determines the variables labels in the sample set.

  • kwargs – User-defined parameters specified when constructing the null sampler, with values that are ignored.

Returns:

Empty sample set with the same variables as the given BQM.