How to use D-wave with qbsolv command?
I'm trying to use D-wave with qbsolv command.
But it worked on local PC by tabu search.
I read and did the following
https://docs.ocean.dwavesys.com/en/stable/overview/install.html
'dwave ping' command worked.
What do I need to do ?
Comments
Hello Masato,
The qbsolv tool uses a tabu solver by default unless you specify a D-Wave QPU solver in the argument. The qbsolv.sample documentation lists which parameters you can choose.
Here is some example code showing how you can use a D-Wave Sampler with qbsolv:
Note that qbsolv will only use the D-Wave QPU if the QUBO is large enough. In the above example, Q1 is small, so it will not require the QPU to solve. Q2 is large, so qbsolv uses the QPU to solve it.
We also recently released D-Wave Hybrid, which is a more powerful tool suite for solving large QUBOs with decomposition. I recommend using this if you are interested in hybrid applications.
Hi Masato,
As Luca has mentioned, although you are welcome to use QBSolv, we have a tool called D-Wave Hybrid that we would recommend using instead.
One major difference is that QBSolv does not process sub-problems asynchronously, which causes some noticeable slowdown.
After QBSolv breaks the problem into pieces and sends the pieces to the QPU to be processed, it waits for the response for each piece before continuing with the next one.
D-Wave Hybrid has solved this problem by sending all of the parts of the problem to the QPU asynchronously, so they are made available much sooner.
D-Wave Hybrid is very easy to install:
https://docs.ocean.dwavesys.com/projects/hybrid/en/latest/installation.html
Here is the reference documentation for using D-Wave Hybrid:
https://docs.ocean.dwavesys.com/projects/hybrid/en/latest/
Thank your very useful informations!
I didn't know D-Wave Hybrid.
I have a large QUBO file. I want to solve it with D-wave.
So, I think it useful for me.
I'll try to use it soon.
Thank you so much!
Hi Masato,
Yesterday we launched Leap 2 and I am happy to tell you that it is now much easier to solve problems that are larger than the QPU. Please try using our new hybrid solver, which you will see on your Leap Dashboard as hybrid_v1. It accepts problems of up to 10,000 variables fully connected!
Submit the problem through Ocean as you would any other problem to the D-Wave system, but specify the new LeapHybridSampler in your Python program:
Take a look at our Knapsack example in Github, which is designed to demonstrate the usage of the hybrid solver.
Let us know how it goes,
Fiona
Please sign in to leave a comment.