dwave.system.samplers.LeapHybridSampler.min_time_limit¶
- LeapHybridSampler.min_time_limit(bqm)[source]¶
Return the minimum time_limit accepted for the given problem.
The minimum time for a hybrid BQM solver is specified as a piecewise-linear curve defined by a set of floating-point pairs, the minimum_time_limit field under
properties
. The first element in each pair is the number of problem variables; the second is the minimum required time. The minimum time for any number of variables is a linear interpolation calculated on two pairs that represent the relevant range for the given number of variables.Examples
For a solver where LeapHybridSampler().properties[“minimum_time_limit”] returns [[1, 0.1], [100, 10.0], [1000, 20.0]], the minimum time for a problem 50 variales is 5 seconds (the linear interpolation of the first two pairs that represent problems with between 1 to 100 variables).