-
Notifications
You must be signed in to change notification settings - Fork 154
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
ZNE is incompatible with AdaptVQE() #793
Labels
bug
Something isn't working
Comments
Python script to reproduce the issue
retry_primitives.py:
|
MarcoBarroca
changed the title
ZNE is incompatible AdaptVQE()
ZNE is incompatible with AdaptVQE()
Apr 6, 2023
transferred to qiskit-algorithms: qiskit-community/qiskit-algorithms#191 since it looks like AdaptVQE is not passing the correct extrapolators |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I have been trying to use AdaptVQE() with ZNE by setting the resilience_level but have been running into the following error:
This seems related to the way that the results from the job are formatted as the error happens during the extrapolation procedure while it tries to read the results.
Steps to reproduce
I'll attach a python script in the next comment to reproduce the issue. Note that it requires PySCF and qiskit-nature.
The retry_primitves.py is so that it can implement a max_retries option on the estimator and was taken from #598. The problem persists even if you use the standard Runtime Estimator().
Expected behavior
Ideally, it would work like it does when you use standard VQE. You can modify the attached script to use Standard VQE and it runs without issues.
Suggested solutions
I'm unsure if the modification would need to be in AdaptVQE() or in the ZNE files. I've taken a look at the files in the zne-prototype repo hoping they would be similar but it didn't help to come up with a solution.
Additional Information
The text was updated successfully, but these errors were encountered: