dwave-cloud-client
dwave-cloud-client copied to clipboard
A minimal implementation of the REST interface used to communicate with D-Wave Solver API (SAPI) servers.
We could switch from Python's config INI format to YAML (or JSON), enabling easy nesting of options. For example: ``` client: qpu solver: num_active_qubits: gt: 4000 topology: type: pegasus ```...
I've been running an algorithm for the last couple weeks and keep getting a 'RemoteDisconnected' error. The linked issue claims that the main cause of the issue is the large...
Implements https://github.com/dwavesystems/dwave-system/issues/398.
 **What** Currently there's no endpoint to query in order to know how much time is remaining for a particular account. If there is an internal endpoint that already exists,...
``` In [2]: data = open('/tmp/solvers', 'rb').read() In [3]: import json, orjson, simplejson In [4]: len(data) Out[4]: 1410747 In [5]: %%timeit ...: d=json.loads(data) ...: 41.6 ms ± 761 µs per...
In memory/network-starved environment, with (multipart) upload failures occurring, aggressive retry strategy might actually contribute to resource exhaustion. We should try increasing `http_retry_backoff_factor`, decreasing number of concurrent upload threads and increasing...
For example: ``` $ DWAVE_API_CLIENT=sw python ... >>> dwave.cloud.qpu.Client.from_config() ```
``` >>> client = Client.from_config(solver={'num_qubits__gt': 8000}) >>> len(client.get_solvers()) 9 >>> client = Client.from_config(solver="no_such_solver") >>> len(client.get_solvers()) 9 ``` https://docs.ocean.dwavesys.com/en/stable/docs_cloud/reference/generated/dwave.cloud.client.Client.from_config.html#dwave.cloud.client.Client.from_config states that `from_config()` accepts "**kwargs (dict) – Client constructor options" and https://docs.ocean.dwavesys.com/en/stable/docs_cloud/reference/resources.html#dwave.cloud.client.Client...
On fast networks, it's preferable to turn compression off with `Accept-Encoding: identity` header on all requests to SAPI. Accepting `gzip` encoding (current default) will slow-down encoding/transmission on SAPI side, and...
Something like: ``` sampler = DWaveSampler() with dwave.cloud.events.handle('before_sample', lambda event_name, obj, args: print(args)): sampler.sample(...) sampler.sample(...) ``` would print the sampling args only for the first call to sample above.