Symmetry of this system has been discussed here but I'm still confused.
Consider a $N$-dimensional isotropic harmonic oscillator, with hamiltonian
$$H = \hbar \omega \left(a^\dagger_i a_i + \frac{N}{2} \right).$$
$a^\dagger_i$ and $a_i$ being the creation and annihilation operators for dimension $i$, and using summation convention on repeated indices.
Some textbooks I've read say that the system possesses an $U(N)$ symmetry. The given justification is that if $M$ is an $N \times N$ unitary matrix then the transformation
$$ a_i \to a'_i = M_{ij} a_j \quad i=1,\dots,N \tag{1}$$
leaves the hamiltonian invariant, since $$ (M_{ij} a_j)^\dagger M_{ik} a_k = a^\dagger_j {M}^*_{ij} M_{ik} a_k = a^\dagger_j \delta_{jk} a_k = a^\dagger_j a_j .$$ However I've been taught that symmetries are realized in Quantum Mechanics through (anti-)unitary operators on a Hilbert space, $U : \mathcal{H} \to \mathcal{H}$. What I don't understand is how the previous symmetry trasformation is realized in practice.
I suspect it's something like an operator $U$ which acts on the annihilation operator as
\begin{equation}U a_i U^\dagger = M_{ij} a_j \tag{2} \\ \implies U a^\dagger_i U^\dagger = (U a_i U^\dagger)^\dagger = M^*_{ij} a^\dagger_j \end{equation}
where $M$ is a $N\times N$ unitary matrix, $M \in U(N)$. Which leaves me to a first question: does there exist, for every matrix $M \in U(N)$, a unitary operator $U:\mathcal{H} \to \mathcal{H}$ which transforms $a_i$ like (2)?
In some special cases, e.g. parity which changes sign of $x_i$ and $p_i$ and thus of $a_i$ and $a^\dagger_i$ the answer is obviously yes, but I'm not sure it works in the general case.
If it's true, I can understand the original claim, being: to each matrix $M \in U(N)$ we can define an "associated" operator $U$ in $\mathcal{H}$ such that $$ U H U^\dagger = H$$ because $$ U H U^\dagger = \hbar \omega \left( U a_i^\dagger a_i U^\dagger + \frac{N}{2} \right) = \hbar \omega \left( U a_i^\dagger U^\dagger U a_i U^\dagger + \frac{N}{2} \right) = \hbar \omega \left(a^\dagger_j a_j + \frac{N}{2} \right) = H$$ so there exists a group of unitary transformations homomorphic to $U(N)$ which leave $H$ invariant, i.e. which represent a symmetry of the system.
Perhaps, instead, the correct $U$ is not the one in eqn (2) but another one. Is the existence of a unitary transformation in $\mathcal{H}$ that "mimics" the "change of basis" in eqn (1) implied by Wigner's theorem somehow instead?