dimod.decorators.bqm_index_labels¶
-
bqm_index_labels(f)[source]¶ Decorator to convert a BQM to index-labels and relabel the sample set output.
Designed to be applied to
Sampler.sample(). Expects the wrapped function or method to accept aBinaryQuadraticModelas the second input and to return aSampleSet.