Skip to content

dwavesystems/dwave-ocean-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9dfc755 · Mar 26, 2025
Mar 26, 2025
Aug 10, 2023
Mar 26, 2025
Mar 26, 2025
Mar 26, 2025
Mar 26, 2025
Mar 26, 2025
Mar 26, 2025
Mar 26, 2025
Mar 26, 2025
Mar 26, 2025
Mar 26, 2025
Mar 26, 2025
Mar 26, 2025
Mar 26, 2025
Mar 26, 2025
Mar 26, 2025
Dec 3, 2024
Oct 26, 2020
Mar 26, 2025
Mar 26, 2025
Mar 26, 2025
Feb 26, 2025
Dec 6, 2023
Jul 5, 2024
Dec 6, 2024
Dec 3, 2021
Mar 26, 2025
Dec 3, 2021

Repository files navigation

docs/_static/Ocean_SDK_Banner.png

https://readthedocs.com/projects/d-wave-systems-dwave-ocean-sdk/badge 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.

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.