dimod.reference.samplers.ExactSolver.sample#

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

Sample from a binary quadratic model.

Parameters:

bqm – Binary quadratic model to be sampled from.

Returns:

All possible solutions to the binary quadratic model.