-
Notifications
You must be signed in to change notification settings - Fork 369
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
Estimator on SparsePauliOp(["XY", "XX"], ...) and SparsePauliOp([Pauli("XYZ"), Pauli("XX")], ...) have different result #1948
Comments
The fluctuation is due to sampling errors in the measurement. In other words, it is not
estimator2 = e2(approximation=True) is correct. However, this does not support non-Hermitian operator. Actually, whether Estimator supports non-Hermitian operator is implementation-dependent. |
I specified both in the
I replaced the Upon retrying several times, I did get different number each time. So it seems that it is not doing exact computation according to qiskit-aer/qiskit_aer/primitives/estimator.py Lines 45 to 46 in 73f0847
|
I confirmed that |
Oh... It's a typo. Thank you for finding. |
Closed via Qiskit/qiskit#10966. |
Informations
What is the current behavior?
"XX" and Pauli("XX") as an argument on
SparsePauliOp
has different results forqiskit_aer.primitives
, whileqiskit.primitives
results are correct.Steps to reproduce the problem
Output:
What is the expected behavior?
They should all be the same number, but
qiskit_aer.primitives
output are inconsistent.The text was updated successfully, but these errors were encountered: