Queue job functionality

Jonathan Ortega 21 Reputation points
2022-03-20T05:54:10.89+00:00

Hello, I know this has the opportunity to be misused so I'm not hopeful, but I was wondering if there's any sort of functionality to queue several jobs for IonQ. I've got a loop creating different 8 qubit circuits and am having to spend a lot of time waiting for each iteration to submit a job, is there any way to speed this up?

Azure Quantum
Azure Quantum
An Azure service that provides quantum computing and optimization solutions.
71 questions
0 comments No comments
{count} votes

Accepted answer
  1. vipullag-MSFT 26,411 Reputation points
    2022-03-24T05:34:13.677+00:00

    @Jonathan Ortega

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    You can queue multiple jobs to run on any of our providers using the submit method of a target; optionally, if you are using our Qiskit plugin, you can call the backend.run method to submit the job asynchronously.

    For example:

    jobs = []  
    for circuit in circuits:  
        jobs.append(backend.run(circuit, shots=N))  
      
    results = []  
    for job in jobs:  
        results.append(job.result())  
    

    We are working on bringing more advanced functionality, like batching jobs on a single call. If you would like to get early access to new Azure Quantum features, please register at https://aka.ms/AQ/Preview

    Hope this helps.
    Please 'Accept as answer' if the provided information is helpful, so that it can help others in the community looking for help on similar topics.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.