How to extract the QUBO variables values from the list returned by the sampler? Ramy H August 07, 2021 22:06 Follow 0
Comments
Hi Ramy,
If I understood your question correctly, you’re looking for the data returned by the sampler.
Ocean stores the output from the sampler in dimod.SampleSet class object.
More specifically, SampleSet.record contains the samples, energies, number of occurrences, and other sample data.
Example
More information about SampleSet object returned by sampler is available here: https://docs.ocean.dwavesys.com/en/stable/docs_dimod/reference/sampleset.html
You may also find the information in this community post helpful. https://support.dwavesys.com/hc/en-us/community/posts/4405634414615-View-variable-value-after-execution-
Does the above answer what you meant by extracting the QUBO variable values returned by the sampler?
Please let us know if you have any questions.
Hello Mohammed,
yes it is exactly what I mean. Thank you!
I'm currently working on implementing the algorithm discussed in the following paper:
https://arxiv.org/pdf/2001.04014.pdf
I'm confused with how to implement equation (12) in appendix B. It is about embedding.
Could you please check it?
Regards
Since this question has been posted previously, I’m including the link to the original post for answer: https://support.dwavesys.com/hc/en-us/community/posts/4406225748119-Embedding-Ising-
Please sign in to leave a comment.