Coder Social home page Coder Social logo

Comments (4)

guenp avatar guenp commented on September 28, 2024

It is currently not possible to use e.g. VQEProgram because backend.run(circuit) currently only accepts a single circuit, not a list of circuits:
error_screen

from azure-quantum-python.

anpaz avatar anpaz commented on September 28, 2024

@guenp
Adding support for job batching is a great idea, and it's on our road-map, but to be perfectly clear it is not a pre-requisite for qiskit-experiments, QAOA or VQE.

We were recently debugging the submission of StateTomography in qiskit-experiments and found that the problem was not a lack of support for job batching as the qiskit-experiment module takes care of submitting all the necessary jobs and keep track of their state; the problem was that the experiments depend on the circuit metadata to be part of the job's result object. This is fixed in #278; with this StateTomography is working correctly (albeit a couple of submission warnings for unsupported parameters).

With the change in place I've also tested the QAOA and VQE examples in qiskit-tutorials and they also ran successfully.

So, I'm thinking we should close this enhancement since the main scenarios you were trying to cover are working correctly. Thoughts?

from azure-quantum-python.

guenp avatar guenp commented on September 28, 2024

Great, glad to hear that the workaround already exists in qiskit! I'll close this issue then.

from azure-quantum-python.

guenp avatar guenp commented on September 28, 2024

After some more investigation as per @anpaz's comment above, we figured out that what is missing in the above example is not batch job support, but metadata on the submitted Jobs. This is addressed in this PR #278.
However, there is clearly value for submitting multiple circuits as part of a single Job and this is not completely addressed in the above PR, so am reopening this issue for now so we can continue the discussion. I will also rename it to more accurately describe the problem.

from azure-quantum-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.