Software development kit for open source D-Wave tools
Project description
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:
System Documentation to learn about quantum computers and how to use them.
Getting Started with Ocean to install and start coding with Ocean software.
dwave-examples for code examples and Jupyter Notebooks.
Resource Library on D-Wave website for whitepapers and additional 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.
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:
Leap user community to converse with a large community of D-Wave users.
Leap help center to search the Leap knowledge base.
SDK GitHub repo to open issues or request features on the Ocean SDK or on any one of its packages.
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
Built Distribution
Hashes for dwave_ocean_sdk-7.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e863e92edf938d7c6ad9cefc4ac86009517ae05bad9f1a747574b8091fa4d8d2 |
|
MD5 | 346e4916e21faa0a4a379d7192765363 |
|
BLAKE2b-256 | 215de58ff73d25bb37e9fa2786e89a4cb44495118e2ebf303d1948da1072a528 |