Quantum simulation of the Dirac equation