Answered
Can I determine the embedding from the response?
Given this code:
sampler = EmbeddingComposite(DWaveSampler(endpoint=URL, token=TOKEN, solver=SOLVER))
response = sampler.sample(bqm, num_reads=60)
Is there a way to determine (from the response variable) the embedding that was used?
Comments
Hi Thomas,
Right now there is no way to get the embedding, though there is a feature request on github to return it as part of the response https://github.com/dwavesystems/dwave-system/issues/76 . Note that we use github issues for feature requests and bugs specific to the open source tools, for questions (like yours) this community is the correct place.
The current 'best practice' for those who wish to work with embeddings is to use the FixedEmbeddingComposite. See the below code snippet:
Very helpful - thanks!
Please sign in to leave a comment.