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 (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 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

SampleSet

Examples

See the example in LeapHybridDQMSampler.