-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QAOA algorithms not working with IBM's latest update #81
Comments
I found quite useful information on slack. One way to possibly fix this:
|
This slack thread has additional doubts that might arise https://qiskit.slack.com/archives/C7SS31917/p1713377308386869 |
Something like this is likely necessary |
The problem is solved on my fork https://github.com/BrunoRosendo/qiskit-algorithms, although this only works for minimum eigen value case. The reason for this is the fix only works for SparsePauliOp, while SamplingVQE supports all kinds of BaseOperator I tested in IBM runtime with and without warm start. The Queue is currently very long so I'll wait a bit to complete #44 |
This issue came up in #44, and it's related to an update made recently by IBM (March 2024): https://docs.quantum.ibm.com/run/primitives-examples
The issue was created 1 month ago without much track qiskit-community/qiskit-algorithms#164 . I have commented on it and I saw more people complain about the same issue on slack. This happens not only on qiskit-algorithms but also other libraries, such as qiskit-machine-learning and qiskit-optimization.
The problem does not happen when using BackendSampler instead of SamplerV1 of qiskit-ibm-runtime. SamplerV2 is not yet supported by the library. The problem with using BackendSampler is the lack of sessions, making it unfeasible to run the algorithms (check #44 for details).
Based on the announcement and the thread below, I tried transpiling the ansatz and adding a padding to the operator (observable) as to match the number of qubits in the backend. However, I can't find a way to add the padding. Even if I did, I think there would be more problems. I made a fork with that approach, used in feature/qaoa-fork
https://quantumcomputing.stackexchange.com/questions/29332/how-to-avoid-delays-must-be-a-multiple-of-16-samples-error-with-estimator-sa
For now, I'm going to wait for a potential fix on qiskit's part. If that doesn't happen, I will try once again to fix their library
The text was updated successfully, but these errors were encountered: