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.

0

Comments

4 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:

    sampleset = sampler.sample_cqm(cqm, label='code_for_zhang')
    print(sampleset.info)
    This will print out a dictionary of information about the sample set, including time spent on the QPU. 
     
    Does this answer your question?
    Ken
    0
    Comment actions Permalink
  • 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

    0
    Comment actions Permalink
  • 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).

     

    0
    Comment actions Permalink
  • Thank you very much for your answer. I think I know roughly what to do

    0
    Comment actions Permalink

Please sign in to leave a comment.

Didn't find what you were looking for?

New post