I know that an $R_z (\theta)$ gate is equivalent to the unitary transformation $e^{-iZ * \theta/2}$ but I'm not sure how we get there.
I know that for every Hermitian matrix there is a corresponding Unitary matrix as $ U = e^{iH} $ where the eigenvalues are exponentiated and the eigenstates remain the same. But I don't see how in this case, it leads to the matrix $$\left(\begin{array}{cc}e^{-i \frac{\lambda}{2}} & 0 \\ 0 & e^{i \frac{\lambda}{2}}\end{array}\right)$$
and not: $$\left(\begin{array}{cc}e^{i} & 0 \\ 0 & e^{-i}\end{array}\right)$$
I feel like I'm missing something really obvious