Code Monkey home page Code Monkey logo

Comments (5)

chunfuchen avatar chunfuchen commented on June 14, 2024

Hi, the issue should come from the potential issue fixed by c92b777. (The created Operator is not valid)

do you mind checking that does QAOA encounter this issue after this commit?

Thanks.

from qiskit-aqua.

Epulsar avatar Epulsar commented on June 14, 2024

Hi, the issue should come from the potential issue fixed by c92b777. (The created Operator is not valid)

do you mind checking that does QAOA encounter this issue after this commit?

Thanks.

I tried it with QAOA and VQE and it gave the same error message as before.
Also, I tried different minimizer functions form scipy, such as TNC, and got the same error message as before.

from qiskit-aqua.

woodsp-ibm avatar woodsp-ibm commented on June 14, 2024

What version of qiskit are you using? With the latest Aqua master, that it seems you are using, the latest qiskit master is reqd. With the above fix, using the logic you provided, I can run ExactEigensolver and VQE to completion. QAOA also runs, but at size 10 I encounter a performance problem, it runs at smaller graph sizes ok and I do not see any of the issues you reported above.

from qiskit-aqua.

Epulsar avatar Epulsar commented on June 14, 2024

I tried this on a different computer, using only qiskit and qiskit_aqua files directly from the Github repository, and it did work for ExactEigensolver, VQE, and QAOA. Although I had to use QAOA.Variational in place of QAOA. And given that I didn't optimize the number of steps, the results weren't accurate, but I didn't encounter the error. Thanks!
As an aside, what is the difference between QAOA.Variational and QAOA?

from qiskit-aqua.

woodsp-ibm avatar woodsp-ibm commented on June 14, 2024

We renamed and re-organized algorithms since the last official release. What we then called QAOA became QAOA.Variational as it uses a variational approach but its the same algorithm. As things are now working for you I will close this issue.

from qiskit-aqua.

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.