Quantum theory and simulation