Classical simulation of the Fermi gas