Closed riuriuriuriu closed 3 years ago
Thank you. Aqua was deprecated from the previous release, so the fix in Terra is enough. https://github.com/Qiskit/qiskit-terra/issues/6525
As per above - I don't think this is critical bug that needs fixing, which is the policy now Aqua has been deprecated. We are encouraging people to move off Aqua and use the code from where it now been relocated, so if anyone comes across this then it has been fixed already in the relocated code in Terra thanks to your reported issue there.
Information
What is the current behavior?
nakanishi_fujii_todo() optimizer fail to return
OptimizeResult
except in the case ofargs = ()
.Steps to reproduce the problem
I tried to run the following code
and then I got the following error
What is the expected behavior?
nakanishi_fujii_todo() should return
OptimizeResult
without errors.Suggested solutions
OptimizeResult(fun=fun(np.copy(x0)), x=x0, nit=niter, nfev=funcalls, success=(niter > 1))
should beOptimizeResult(fun=fun(np.copy(x0), *args), x=x0, nit=niter, nfev=funcalls, success=(niter > 1))