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
When using method="statevector" with AerSimulator, a circuit with an initialize of |00> (i.e. [1,0,0,0]) returns a different statevector than the same circuit without explicitly initializing the |00> state.
Informations
What is the current behavior?
When using method="statevector" with AerSimulator, a circuit with an
initialize
of |00> (i.e. [1,0,0,0]) returns a different statevector than the same circuit without explicitly initializing the |00> state.Steps to reproduce the problem
results in
What is the expected behavior?
Circuits "X" and "zero+X" should return the same statevector (i.e. [0, 1, 0, 0]) but "zero+X" returns [0,-1j,0,0].
Suggested solutions
I don't know the code well enough to determine where this bug is coming from. But it is new as of 0.13.0
The text was updated successfully, but these errors were encountered: