Skip to main content

D-Wave Problem Inspector tool

Project description

Latest version on PyPI Linux/MacOS build status Coverage report

dwave-inspector

A tool for visualizing problems submitted to, and answers received from, a D-Wave structured solver such as an AdvantageTM quantum computer.

This example shows a typical usage: a binary quadratic model minor-embedded onto a quantum processing unit (QPU).

from dwave.system import DWaveSampler, EmbeddingComposite
import dimod
import dwave.inspector

# Get sampler
sampler = EmbeddingComposite(DWaveSampler())

# Define a problem
x, y, z = dimod.Binaries(['x', 'y', 'z'])
bqm = x*y - x*z + 2*y

# Sample
sampleset = sampler.sample(bqm, num_reads=100)

# Inspect
dwave.inspector.show(sampleset)

Installation or Building

If Ocean SDK 2.0+ is installed:

dwave install inspector

Otherwise, install the package from PyPI:

pip install dwave-inspector

and then install the closed-source dependency with:

pip install dwave-inspectorapp --extra-index=https://pypi.dwavesys.com/simple

Please note this closed-source dependency is released under the D-Wave EULA license.

Alternatively, clone and build from source:

git clone https://github.com/dwavesystems/dwave-inspector.git
cd dwave-inspector
pip install -r requirements.txt
python setup.py install

When building from source, the closed-source component still needs to be installed as above.

License

Released under the Apache License 2.0. See LICENSE file.

Visualization component released under the D-Wave EULA.

Contributing

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

Release Notes

D-Wave Inspector uses reno to manage its release notes.

When making a contribution to D-Wave Inspector that will affect users, create a new release note file by running:

reno new your-short-descriptor-here

You can then edit the file created under releasenotes/notes/. Remove any sections not relevant to your changes. Commit the file along with your changes.

See reno’s user guide for details.

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_inspector-0.5.5.tar.gz (35.3 kB view details)

Uploaded Source

Built Distribution

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

dwave_inspector-0.5.5-py3-none-any.whl (30.5 kB view details)

Uploaded Python 3

File details

Details for the file dwave_inspector-0.5.5.tar.gz.

File metadata

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

File hashes

Hashes for dwave_inspector-0.5.5.tar.gz
Algorithm Hash digest
SHA256 fb8273c72bdac907761d0f8c10b23ce516b6d2e5e7f608d5b168d17bccd1ce96
MD5 030008aeee48a2dddeb6a7a511cfbb4a
BLAKE2b-256 f2582d5f02a4a44c6074bc3f82bf883bc6391cbfd40dfe7db3df3377e499d5a2

See more details on using hashes here.

File details

Details for the file dwave_inspector-0.5.5-py3-none-any.whl.

File metadata

File hashes

Hashes for dwave_inspector-0.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 77aff77948e8b61cce42ff5230a4cf9b7397cd55141055c559d7407c9e825d95
MD5 868e3aa4df9dd53d807f34ce049281f4
BLAKE2b-256 2f93d5be9efd8403596ea022d0b9b748217b7ac12aeda3ea63e4ba0228f29dad

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