Simulating fermions on a quantum computer