dwave.system.samplers.LeapHybridDQMSampler.sample_dqm#
- LeapHybridDQMSampler.sample_dqm(dqm, time_limit=None, compress=False, compressed=None, **kwargs)[source]#
Sample from the specified discrete quadratic model.
- Parameters:
dqm (
DiscreteQuadraticModel
) – Discrete quadratic model (DQM). Ifdqm
is aCaseLabelDQM
class, use themap_sample()
method to restore case labels in the returned sample set.time_limit (int, optional) – Maximum run time, in seconds, to allow the solver to work on the problem. Must be at least the minimum required for the number of problem variables, which is calculated and set by default.
min_time_limit()
calculates (and describes) the minimum time for your problem.compress (binary, optional) – Compresses the DQM data when set to True. Use if your problem somewhat exceeds the maximum allowed size. Compression tends to be slow and more effective on homogenous data; for example, it is more likely to help on DQMs with many identical integer-valued biases than ones with random float-valued biases.
compressed (binary, optional) – Deprecated; please use
compress
instead.**kwargs – Optional keyword arguments for the solver, specified in
parameters
.
- Returns:
Sample set constructed from a (non-blocking)
Future
-like object.- Return type:
Examples
See the example in
LeapHybridDQMSampler
.