World-line quantum Monte Carlo algorithm for a one-dimensional Bose model.