ParaToric 1.0-beta: Continuous-time quantum Monte Carlo for the toric code in a parallel field
Simon M. Linsel, Lode Pollet
TL;DR
ParaToric delivers a versatile, sign-problem-free CT-QMC solver for the extended toric code in a parallel field, supporting square, triangular, honeycomb, and cubic lattices with open or periodic boundaries at finite temperature. By extending the Wu, Deng, and Prokof'ev algorithm, it enables robust thermalization, production sampling, and hysteresis studies while providing a rich set of diagonal observables, Fredenhagen-Marcu loops, percolation metrics, and snapshot extraction in both X- and Z-bases. The package offers seamless integrations via C++, C, Python interfaces, and a CLI, with outputs in HDF5 and GraphML, and includes extensive diagnostics for autocorrelation and error estimation. These features make ParaToric a practical tool for exploring topological order, finite-temperature transitions, and benchmarking data for lattice gauge theories, quantum simulators, and quantum error correction studies, all under an MIT-compatible license.
Abstract
We introduce ParaToric, a C++ package for simulating the toric code in a parallel field (i.e., $X$- and $Z$-fields) at finite temperature. We implement and extend the continuous-time quantum Monte Carlo algorithm of Wu, Deng, and Prokof'ev on the square, triangular, honeycomb, and cubic lattices with open and periodic boundaries, respectively. The package is expandable to arbitrary lattice geometries and custom observables diagonal in either the $X$- or $Z$-basis. ParaToric also supports snapshot extraction in both bases, making it ideal for generating training/benchmarking data for other methods, such as lattice gauge theories, cold atom or other quantum simulators, quantum spin liquids, artificial intelligence, and quantum error correction. The software provides bindings to C/C++ and Python, and is thus almost universally integrable into other software projects.
