dwave.cloud.solver.DQMSolver.upload_dqm#

DQMSolver.upload_dqm(dqm)[source]#

Upload the specified DQM to SAPI, returning a Problem ID that can be used to submit the DQM to this solver (i.e. call the .sample_dqm method).

Parameters:

dqm (DiscreteQuadraticModel/bytes-like/file-like) – A discrete quadratic model given either as an in-memory DiscreteQuadraticModel object, or as raw data (encoded serialized model) in either a file-like or a bytes-like object.

Returns:

Problem ID in a Future. Problem ID can be used to submit problems by reference.

Return type:

concurrent.futures.Future[str]

Note

To use this method, dimod package has to be installed.