Запис е-пошти: A variational quantum algorithm for the Feynman-Kac formula