dwave.cloud.solver.BQMSolver.upload_bqm#

BQMSolver.upload_bqm(bqm)[source]#

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

Parameters:

bqm (BinaryQuadraticModel/bytes-like/file-like) – A binary quadratic model given either as an in-memory BinaryQuadraticModel 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:

:class:`concurrent.futures.Future`[str]

Note

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