Odd error message when embedding BQM on DWaveSampler
I am trying to embed a binary quadratic model onto a dwave graph. I generate a particular embedding using minorminer.find_embedding(), but when I call embed_bqm using this embedding, I get the following error:
"chain for z_0 contains a node label True not contained in the target graph"
I don't understand what "node label True" could be referring to, as neither my embedding nor BQM have any "True" values anywhere in them.
Also, this ONLY happens when I try and run it on a real dwave architecture. i.e.
qpu = DWaveSampler()
chimera = qpu.edgelist
will break, but if I use
chimera = dnx.chimera_graph(16)
I get no errors.
What could be the problem here?
Comments
I found the problem.
When I was calling embed_bqm with the DWaveSampler I was getting the adjacencies by calling
instead of
Hello,
That's great!
Our apologies it took so long to get back to you!
I'm so glad that you were able to solve the issue!
Thank you so much for posting the solution so others who run into it can benefit from your experience!
Please feel free to reach out to us with any additional questions.
Best regards,
Dave.
Please sign in to leave a comment.