I have a problem minimizing this norm with respect to $\alpha$:
$\min_{\alpha}||e^{i\alpha}|\psi\rangle-|\phi\rangle ||^2$ (1)
The result is that this achieves min when $\alpha=-\measuredangle \langle\psi|\phi\rangle$
and the above is equal to $2-2\langle\psi|\phi\rangle$.
But when I take the derivative of (1) and set it to 0, I get $e^{i\alpha} = \langle\psi|\phi\rangle$, which is not the right desired result.
Can anyone help me with this, please? thanks in advance.