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://ci.appveyor.com/api/projects/status/c8ofdgyiy4w38lu3?svg=true https://circleci.com/gh/dwavesystems/dwave-ocean-sdk.svg?style=svg

Ocean 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. Leap provides a browser-based integrated development environment (IDE) with Ocean preinstalled.

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 Ocean 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


Release history Release notifications | RSS feed

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-4.4.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dwave_ocean_sdk-4.4.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file dwave-ocean-sdk-4.4.0.tar.gz.

File metadata

  • Download URL: dwave-ocean-sdk-4.4.0.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for dwave-ocean-sdk-4.4.0.tar.gz
Algorithm Hash digest
SHA256 310dada89a2f936d5bccf787327de495847d7f156bbac75b438ea1752c8d394e
MD5 60bce170e58e8947a2e5cb6f9fde4844
BLAKE2b-256 f018f881a036aa6524440300abcd5e74d85899996d4e4d47fcc25d61a6ad12d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dwave_ocean_sdk-4.4.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for dwave_ocean_sdk-4.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f13ff44b80a3e245defa0867016cffda049b3625ac4b5b3e5e36fc030e8257c7
MD5 53ad7f9144484a8ede0fe4002a029552
BLAKE2b-256 8c084b8734b8402bff08f8c755c3ccf683f4c57d153b6265cba5c2e27447562f

See more details on using hashes here.

Supported by

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