For a given unitary, I want to know whether this unitary gate is correctly evolved in the circuit. In the simulator, I can use "statevector" to get the state vector to check the correctness of the evolution.
But I don't know whether such a unitary can still evolve correctly on a real quantum computer. Is there a corresponding way to check its correctness?
In more detail, I give a Hamiltonian H, then I get unitary U=expm(-1t*H)
. Then I add this unitary gate to the circuit usingqc.unitary(U, [0,1])
. So how can I check whether it evolves correctly in the real quantum computer?