1: \begin{abstract}
2: We provide a detailed description of the path-integral Monte Carlo worm
3: algorithm used to exactly calculate the thermodynamics of Bose systems in the canonical
4: ensemble. The algorithm is fully consistent with periodic boundary conditions,
5: that are applied to simulate homogeneous phases of bulk systems, and it does not
6: require any limitation in the length of the Monte Carlo moves realizing the sampling
7: of the probability distribution function in the space of path configurations.
8: The result is achieved adopting a representation of the path coordinates where
9: only the initial point of each path is inside the simulation box, the remaining
10: ones being free to span the entire space. Detailed balance can thereby be
11: ensured for any update of the path configurations without the ambiguity of
12: the selection of the periodic image of the particles involved.
13: We benchmark the algorithm using the non-interacting Bose gas model for which
14: exact results for the partition function at finite number of particles can be derived.
15: Convergence issues and the approach to the thermodynamic limit are also addressed
16: for interacting systems of hard spheres in the regime of high density.
17: \end{abstract}
18: