Gaussian processes for force fields and wave functions