dwave.cloud.solver.UnstructuredSolver.sample_problem#
- UnstructuredSolver.sample_problem(problem, problem_type=None, label=None, upload_params=None, **sample_params)[source]#
Sample from the specified problem.
- Parameters:
problem (model-like/str) – A quadratic model (e.g.
BQM,CQM,DQM), a nonlinear model (Model) or a reference to one (Problem ID returned byupload_problem()method).problem_type (str, optional) – Problem type, one of the handled problem types by the solver. If not specified, the first handled problem type is used.
label (str, optional) – Problem label you can optionally tag submissions with for ease of identification.
upload_params (dict) – Optional upload/encode parameters, solver specific.
**sample_params – Sampling parameters, solver-specific.
- Returns: