D-Wave Problem Inspector tool
Project description
D-Wave Inspector
A tool for visualizing problems submitted to, and answers received from, a D-Wave structured solver such as a D-Wave 2000Q quantum computer.
Example
This example shows the canonical usage: samples representing physical qubits on a quantum processing unit (QPU).
from dwave.system import DWaveSampler
import dwave.inspector
# Get solver
sampler = DWaveSampler(solver=dict(qpu=True))
# Define a problem (actual qubits depend on the selected QPU's working graph)
h = {}
J = {(0, 4): 1, (0, 5): 1, (1, 4): 1, (1, 5): -1}
assert all(edge in sampler.edgelist for edge in J)
# Sample
response = sampler.sample_ising(h, J, num_reads=100)
# Inspect
dwave.inspector.show(response)
Installation or Building
If D-Wave 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.
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_inspector-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 374cdb5baf75a53e6a1f992268a4d84434fb5e240c0fcb139707560e8169e5db |
|
MD5 | 4ae93a96156cfe1aa7d95ab7f5859c22 |
|
BLAKE2b-256 | 40b57acfc0c7c4684bee6beeceb59c17c1fdec4562cc2f7731ad6004cb771cc3 |