In Yang mills theory (including maxwell's theory), the generators of $SU(n)$ are complex matrices acting on the spinor $\psi$.
Now the phase of $\psi$ is also given by $e^{i\theta}$.
Why do we use this same $i$ in both cases? In other words, for the $SU(n)$ it would be possible to define a different $i$ to the phase, by choosing a matrix $$\begin{bmatrix} 0 & 1 \\ -1 & 0\end{bmatrix}$$ And adding some extra parameter to the spinor $\psi^a$.
Is there some close link which explains why Yang-Mills has to affect the phase like this?
Long story short, in QM we make the change $k\rightarrow i \partial$, and I'm wondering what the explanation (mathematical or physical) why this is the same $i$ that appears in the complex generators of $SU(n)$. Because from first sight these seem like they don't have anything to do with each other.