Quantum simulation of the Hubbard model