-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
AerPauliExpectation.compute_variance returns zero variance #5743
Comments
Which variance do you mean exactly? As far as I know, the variance argument in the |
Yeah, The variance here is |
Is this still valid, and if so should it be moved to Terra repo given that opflow has been moved and is being maintained there now? Or should this be closed? |
It's an Aer thing. As commented above, the variance should be equal to 0, since this is not an estimator. But it is perhaps about to change, @chriseclectic should know more. |
This will be resolved by using
Move to Terra and we need to update opflow.AerPauliExpectation after SaveExpVal. |
If this issue replaces SnapshotExpectationValue with SaveExpectationValue in AerPauliExpectation, then it will also fix #6504 |
Close once. Please reopen if you want. |
What is the expected enhancement?
AerPauliExpectation.compute_variance returns zero variance as the comment said.
https://qiskit.org/documentation/stubs/qiskit.aqua.operators.expectations.AerPauliExpectation.compute_variance.html
However, AerPauliExpectation has a finite (=non-zero) variance in general. In
SnapshotExpectationValue
used here, an optional argument of variance isTrue
. It seems that this returns variance computed in Aer.The text was updated successfully, but these errors were encountered: