Efficient molecular dynamics and hybrid Monte Carlo algorithms for path integrals | Synapse