Customizing Node Order in "find_embedding" Function
Dear D-Wave Community,
I am currently exploring the implementation details of the "find_embedding" function.
As mentioned in the documentation/paper, the order in which the nodes of the problem graph are explored is randomized by default. However, I am interested in customizing this order to observe its impact on the results. I've only been able to find the demo implementation given in the examples folder in the github repo, and not the actual "find_embedding" code.
Could you please guide me to the actual code implementation of the "find_embedding" function or provide insights into whether it is possible to specify the order of nodes for exploration during the embedding process?
Thank you in advance for your time and support.
Best regards,
Susanna Caroppo
Comments
Hello,
You can find the source code for the minorminer.find_embedding function here:
https://github.com/dwavesystems/minorminer
You can see the parameters available to the find_embedding function here:
https://docs.ocean.dwavesys.com/projects/system/en/stable/reference/generated/minorminer.find_embedding.html
The miner class can be used to define variable order when finding an embedding.
It can be accessed like this:
from minorminer import miner
It has a find_embedding function like minorminer.
Here is a link to the source code:
https://github.com/dwavesystems/minorminer/blob/4cfa28fb2aa308420b8753689114ab80e878fcf0/minorminer/_minorminer.pyx#L445
Please sign in to leave a comment.