Use StateVectorStateVector
class to get the state vector. Then convert the StatevectorStatevector
into array to do matrix operations.
U = Statevector(result.get_statevector())
U = Statevector(result.get_statevector())
U_array = U.data.reshape(-1, 1)
U_conj_transpose = U_array.conj().T will works
This would work.