Git Product home page Git Product logo

Comments (5)

iuliazidaru avatar iuliazidaru commented on July 17, 2024

This is related to : #1434

from qiskit-aqua.

manoelmarques avatar manoelmarques commented on July 17, 2024

In the above notebook just changing from SLSQP() to COBYLA(), I got the correct results.

from qiskit-aqua.

iuliazidaru avatar iuliazidaru commented on July 17, 2024

Thank you for the hint @manoelmarques !
I have 3 tests for the same scenario in 3 projects. The test I created in qiskit-aqua worked with COBYLA.
Using

        quantum_instance = QuantumInstance(QasmSimulator(method='automatic', noise_model=NoiseModel()),
                                           seed_simulator=aqua_globals.random_seed,
                                           seed_transpiler=aqua_globals.random_seed,
                                           shots=1024)

I get a solution sample containing multiple values and value 0.
SolutionSample_QsamSimultator

Using
BasicAer.get_backend('qasm_simulator')

Solution_sample_BasicAir_qasm_simulator

In the Jupyter Notebook the solution is not found in the samples at all. It returns a huge amount of samples, but not the right one even if I choose COBYLA.
Screenshot 2021-01-27 at 10 51 25

The same issue into the third project:
Screenshot 2021-01-27 at 11 20 08

Any idea why?

from qiskit-aqua.

iuliazidaru avatar iuliazidaru commented on July 17, 2024

@manoelmarques when I set the initial point, as you said in email, I didn't get the random result anymore and the result is correct so far.
Thank you!

from qiskit-aqua.

woodsp-ibm avatar woodsp-ibm commented on July 17, 2024

Closing as solved according to above discussion.

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.