I simulated the circuit below in qiskit and used the statevector simulator to extract the statevector:
The resulting statevector that it gave me was:
array([ 0.5+0.j, -0.5+0.j, 0.5+0.j, 0.5+0.j])
The problem here is that it is assigning a minus sign to the second component which is for the state |01>, while it should actually assign the minus sign to the third component, which is for the state |10>, so I was expecting to get instead:
array([ 0.5+0.j, 0.5+0.j, -0.5+0.j, 0.5+0.j])
Can anyone help to clarify this. I was using qiskit for statevector simulation and need to check this.