dimod.reference.samplers.ExactDQMSolver.sample_dqm

ExactDQMSolver.sample_dqm(dqm: dimod.discrete.discrete_quadratic_model.DiscreteQuadraticModel, **kwargs) dimod.sampleset.SampleSet[source]

Sample from a discrete quadratic model.

Parameters

dqm – Discrete quadratic model to be sampled from.

Returns

All possible solutions to the discrete quadratic model.