Fourier spectral method on ensemble architectures