Skip to main content

Software development kit for open source D-Wave tools

Project description

docs/_static/Ocean_SDK_Banner.png https://img.shields.io/pypi/v/dwave-ocean-sdk.svg https://img.shields.io/pypi/pyversions/dwave-ocean-sdk.svg https://readthedocs.com/projects/d-wave-systems-dwave-ocean-sdk/badge https://circleci.com/gh/dwavesystems/dwave-ocean-sdk.svg?style=svg

Ocean SDK is D-Wave’s suite of tools for solving hard problems with quantum computers.

Installation

Installation from PyPI:

pip install dwave-ocean-sdk

For more information, see the Ocean documentation’s installation page.

Getting Started

Sign up for the Leap quantum cloud service here: Leap signup.

Start learning with the following D-Wave resources:

Example Quantum Program

The following lines of code solve and visualize a random problem on a quantum computer.

import dimod
import dwave.inspector
import dwave.system

bqm = dimod.generators.ran_r(1, 20)
sampler = dwave.system.EmbeddingComposite(dwave.system.DWaveSampler())
sampleset = sampler.sample(bqm, num_reads=100)
dwave.inspector.show(sampleset)

The left side of the visualized solution represents the problem’s variables as circles, with white dots for variables assigned values of -1 and blue dots for values of +1; the colors of the connecting lines represent values of the quadratic coefficients for each pair of variables. The right side shows the qubits representing these variables on a quantum processing unit.

docs/_static/inspector_bqm_ran_r_20.png

You can find introductory examples in the documentation and dwave-examples GitHub repository, and many customer prototype applications on the D-Wave website.

Support

Find support here:

Contributing

Your contributions are welcome!

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

License

Released under the Apache License 2.0. See LICENSE file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dwave_ocean_sdk-8.4.0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

dwave_ocean_sdk-8.4.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file dwave_ocean_sdk-8.4.0.tar.gz.

File metadata

  • Download URL: dwave_ocean_sdk-8.4.0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for dwave_ocean_sdk-8.4.0.tar.gz
Algorithm Hash digest
SHA256 24642a1b70fd49b85d9d6dafb65a5dc6920f11c84f654da6bd4524cfb2219180
MD5 f23f0cd7c8ccbc0db9dd479173098ec5
BLAKE2b-256 ddaf262e11867f7b7f9662b05f1f0d18a0da6dc56a4d81bba4d014131bb53aca

See more details on using hashes here.

File details

Details for the file dwave_ocean_sdk-8.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dwave_ocean_sdk-8.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f87dec9451b5a0b2b6395be9c1a6ca8f6b0d2d4e699c1ad7be66dc061631eb00
MD5 336f249781d1ab8da729d0236f58a436
BLAKE2b-256 317d34fdc01d2aae7eb6d38307db3d3573f01fe09d08307c75c947efa57a6ba6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page