dwave.system.samplers.LeapHybridNLSampler.sample#
- LeapHybridNLSampler.sample(model: Model, time_limit: float | None = None, **kwargs) concurrent.futures.Future[SampleResult][source]#
Sample from the specified nonlinear model.
- Parameters:
model (
Model) – Nonlinear model.time_limit (float, optional) – Maximum runtime, in seconds, the solver should work on the problem. Should be at least the estimated minimum required for the problem, which is calculated and set by default.
estimated_min_time_limit()estimates the minimum time for your problem. Fortime_limitvalues shorter than the estimated minimum, runtime (and charge time) is not guaranteed to be shorter than the estimated time.**kwargs – Optional keyword arguments for the solver, specified in
parameters.
- Returns:
Named tuple, in a Future, containing the nonlinear model and general result information such as timing and the identity of the problem data.
- Return type:
Future[SampleResult]
Changed in version 1.31.0: The return value includes timing information as part of the
infofield dictionary, which now replaces the previoustimingfield.