Closed amitracal closed 2 years ago
Since QAOA is a heuristic algorithm, results of QAOA do not always match those of Numpy minimum eigen solver (exact algorithm).
True but this is consistently inconsistent, which is not the case when I create a custom shell program for runtime on QAOA method instead of QAOAProgram method.
@Cryoris Do you have any thought?
@amitracal The zip file you included doesn't work for me, could you check that it's the right file? Without more description it's a bit difficult to say more.
So far, I don't think there are known bugs with the VQE/QAOA programs. Are your reference results also from real devices or from simulations? How large are the circuits you're running?
@Cryoris any updates ? I think you confirmed that you got the zip file.
@Cryoris We have a quantum accelerator delivery for which this notebook is waiting for the defect https://github.com/Qiskit/qiskit-optimization/issues/281, do we have any ETA on this please ?
I've looked at your notebook @amitracal and I think there might be two reasons that you've seen different results locally and on the runtime:
I updated the notebook a bit to run COBYLA on the runtime too, with the same settings as locally, and I'm seeing the same results for both. Actually, also QN-SPSA does work locally with the settings I used (note: it doesn't work on the runtime right now, that's a bug with the new QAOA runtime program but shouldn't have been an issue with earlier versions!). So I think that everything works as expected (aside that the new QAOA program doesn't support QN-SPSA).
I've attached the notebook with my changes. qaoa_local_vs_runtime.zip
Not sure if its fixed but working most of the times right now, closing as requested by @Cryoris
Environment
What is happening?
Results are inconsistent when using QAOAProgram method as shown in the attached notebook
How can we reproduce the issue?
Run the attached notebook QAOA Runtime.zip
What should happen?
result should match with Numpy Minimum Eigen solver - global minima at 11100 optimized value 179
Any suggestions?
No response