You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using Estimator to compute the expectation value of some observables, however I noticed that for some observables composed only by X, the result obtained with Estimator does not match with the result by the method expectation_value() from Statevector and calculations done by hand. The expectation value for some cases should be +1 or -1, but the results are equal to 0.
The expectation value of the SparsePauliOp(data=["XXXX"], coeffs=np.array([1.0])) should be equal to +1.0 when we calculate it with Estimator and with a quantum circuit that creates the following quantum state $\vert\psi\rangle = \frac{1}{\sqrt{2}}(\vert0000\rangle + \vert1111\rangle)$.
Any suggestions?
No response
The text was updated successfully, but these errors were encountered:
Environment
What is happening?
I was using Estimator to compute the expectation value of some observables, however I noticed that for some observables composed only by
X
, the result obtained with Estimator does not match with the result by the methodexpectation_value()
fromStatevector
and calculations done by hand. The expectation value for some cases should be +1 or -1, but the results are equal to 0.How can we reproduce the issue?
What should happen?
The expectation value of the$\vert\psi\rangle = \frac{1}{\sqrt{2}}(\vert0000\rangle + \vert1111\rangle)$ .
SparsePauliOp(data=["XXXX"], coeffs=np.array([1.0]))
should be equal to+1.0
when we calculate it with Estimator and with a quantum circuit that creates the following quantum stateAny suggestions?
No response
The text was updated successfully, but these errors were encountered: