When using LeapHybridCQMSamplerhybrid solution using the number of qubits
Hello
As shown in the title, I use the LeapHybridCQMSamplerhybrid solver to solve some problems of your company, but I don't know how can you know how I use the qubits, looking forward to receive your reply. Thank you.
Comments
Hello,
When using the CQM hybrid solver, every submitted problem goes through the quantum processing unit (QPU). You can find the time your problem spent on the QPU with the info property of the sample sets. For example:
Hello ken
Thank you very much for your answer, but I think it is not the answer I need, I ran the code you gave, only QPU running time, but I was wondering how many qubits I actually used most of the time.There is another question, given the topology I am using now, I want to know how many qubits out of 5000 can be used by me?As a final question, I would like to know which part of minmize and subject to the CQM hybrid solver is solved using QPU and which part is solved using CPU
Apologies for my misunderstanding. The BQM, DQM and CQM hybrid solvers use the QPU and CPU in nontrivial and proprietary ways so Ocean does not include a function to show how the problem maps to the QPU when using hybrid solvers.
If you want to use the qubits directly, you'll need to use the QPU with DWaveSampler() from the dwave.system package. Doing so allows you to control the mapping of variables to qubits ("embedding") in the QPU. To get a visual representation of this, import the dwave.inspector package and run dwave.inspector.show(sampleset).
Thank you very much for your answer. I think I know roughly what to do
Please sign in to leave a comment.