Skip to main content
Latest version on PyPI Linux/MacOS/Windows build status Coverage report

dwave-cloud-client

D-Wave Cloud Client is a minimal implementation of the REST interface used to communicate with D-Wave Sampler API (SAPI) servers.

SAPI is an application layer built to provide resource discovery, permissions, and scheduling for quantum annealing resources at D-Wave Systems. This package provides a minimal Python interface to that layer without compromising the quality of interactions and workflow.

The example below instantiates a D-Wave Cloud Client and solver based on the local system’s auto-detected default configuration file and samples a random Ising problem tailored to fit the solver’s graph.

import random
from dwave.cloud import Client

# Connect using the default or environment connection information
with Client.from_config() as client:

    # Load the default solver
    solver = client.get_solver()

    # Build a random Ising model to exactly fit the graph the solver supports
    linear = {index: random.choice([-1, 1]) for index in solver.nodes}
    quad = {key: random.choice([-1, 1]) for key in solver.undirected_edges}

    # Send the problem for sampling, include solver-specific parameter 'num_reads'
    computation = solver.sample_ising(linear, quad, num_reads=100)

    # Print the first sample out of a hundred
    print(computation.samples[0])

Installation

Requires Python 3.11+:

pip install dwave-cloud-client

During development, install from source in editable mode (available on GitHub in dwavesystems/dwave-cloud-client repo):

pip install -e .

License

Released under the Apache License 2.0. See LICENSE file.

Contributing

Ocean’s contributing guide has guidelines for contributing to Ocean packages.

Metadata

Release files for dwave-cloud-client 0.14.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dwave-cloud-client 0.14.10
File Size Uploaded Provenance Actions
dwave_cloud_client-0.14.10.tar.gz 211.6 kB Without provenance Details for dwave_cloud_client-0.14.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dwave-cloud-client 0.14.10
File Interpreter ABI Platform Actions
dwave_cloud_client-0.14.10-py3-none-any.whl Python 3 none any Details for dwave_cloud_client-0.14.10-py3-none-any.whl

Total release size: 384.4 kB

Release files / dwave_cloud_client-0.14.10.tar.gz

Download URL dwave_cloud_client-0.14.10.tar.gz
Size 211.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b8ddcc5590a0fece4a8a50816eddd6c371f885736c6374fd8c53aad2adf8280f
BLAKE2b-256 checksum
How to use checksums
79d9ed00d0d7334d55457e82d365c64759456c06a911a9ff59895d5c491b3ce8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / dwave_cloud_client-0.14.10-py3-none-any.whl

Download URL dwave_cloud_client-0.14.10-py3-none-any.whl
Size 172.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bbb9bf3abb1a9b4b454b6b4365183da525a5b438ea4e4eded9b1c57c20eb166c
BLAKE2b-256 checksum
How to use checksums
4d3e1f77b80f015313c9ba2bba6f84895bef91486cb696277ccde9d86f4b4da5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for dwave-cloud-client 0.14.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.14.10 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page