Imaginary-part Hadamard test (source code)

= Imaginary-part Hadamard test

Adding a phase gate to the Hadamard test rotates the interference signal and measures the imaginary part of $\langle\psi|U|\psi\rangle$.