Polynomial-time simulation of pairing models on a quantum computer.