Spectral invariance and maximality properties of the frequency spectrum of quantum neural networks