- LeapHybridDQMSampler.sample_dqm(dqm, time_limit=None, compress=False, compressed=None, **kwargs)¶
Sample from the specified discrete quadratic model.
dimod.DiscreteQuadraticModel) – Discrete quadratic model (DQM).
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, which in this case means it is more likely to help on DQMs with many identical integer-valued biases than ones with random float-valued biases, for example.
compressed (binary, optional) – Deprecated; please use
**kwargs – Optional keyword arguments for the solver, specified in
Sample set constructed from a (non-blocking)
- Return type
See the example in