Quantum simulation and machine learning