Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

importing inspector causes qpu call to fail with chain break warning. #451

Open
AustinJRoberts opened this issue May 6, 2022 · 0 comments

Comments

@AustinJRoberts
Copy link

Description
Including from dwave import inspector causes qpu call to fail, even though inspector is not used.
Returns KeyError: 542
Gives messages along the way:
warninghandler.chain_break(response, embedding)
broken = broken_chains(ground, chains)

To Reproduce
An example bqm and embedding are included in zip file. The keys in the embedding may need to be changed from string to tuple first.
`
from dwave.system import DWaveSampler
from dwave.preprocessing.composites import FixVariablesComposite
from dwave import inspector

qpu = DWaveSampler()
sampler = FixedEmbeddingComposite(qpu, embedding=embedding)
sample_set = sampler.sample(bqm, num_reads=num_reads)
`

Expected behavior
Returns dimod sample set

Environment:

  • OS: Mac OS 11.5.2
  • Python version: 3.8

Austin-Roberts-bqm-embedding.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant