dwave-inspector#
Reference documentation for dwave-inspector:
About 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)
Usage Information#
Concepts for terminology.
Minor Embedding for an introduction to minor embedding.
Minor-Embedding: Best Practices for advanced information.
Using the Problem Inspector for an end-to-end example of using the problem inspector on a problem.