-
Notifications
You must be signed in to change notification settings - Fork 381
QAOA with ideal noise returns wrong result #1509
Comments
This is related to : #1434 |
In the above notebook just changing from SLSQP() to COBYLA(), I got the correct results. |
Thank you for the hint @manoelmarques !
I get a solution sample containing multiple values and value 0. Using 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. The same issue into the third project: Any idea why? |
@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. |
Closing as solved according to above discussion. |
Information
What is the current behavior?
QAOA applied to the linear equation: minimize obj(x1 + x2+ x3 + ..x20) returns wrong result: 2
Steps to reproduce the problem
What is the expected behavior?
minimum value must be 0, and the solution 00000000000000000000
Suggested solutions
I replaced the problem in QAOA example https://qiskit.org/textbook/ch-applications/qaoa.html and the result looks good.
n = 20
V = np.arange(0,n,1)
E =[]
QAOA-algorithm.ipynb.zip
QAOA-bug.ipynb.zip
The text was updated successfully, but these errors were encountered: