dimod.decorators.bqm_structured#
- bqm_structured(f)[source]#
Decorator to raise an error if the given BQM does not match the sampler’s structure.
Designed to be applied to
Sampler.sample()
. Expects the wrapped function or method to accept aBinaryQuadraticModel
as the second input and for theSampler
to also beStructured
.