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-memoryDiscreteQuadraticModel
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:
Note
To use this method, dimod package has to be installed.