Code Swendsen-Wang Dynamics Achieves Rapid Mixing for 4D Toric Code Gibbs States at Any Temperature

Understanding how quickly computer simulations can accurately represent complex physical systems remains a fundamental challenge in computational physics, particularly when dealing with systems at low temperatures. Dominik Hangleiter, Nathan Ju, and Umesh Vazirani, all from the University of California at Berkeley, have made a significant advance in this area by developing a new method, termed Code Swendsen-Wang dynamics, for creating accurate simulations of a wide range of physical systems. This innovative approach, inspired by a technique used in statistical mechanics, overcomes previous limitations by demonstrating rapid and reliable simulation even for systems with complex, thermally stable properties, including the notoriously difficult 4D toric code, and at any temperature. The team’s work represents a substantial step forward in the ability to model complex systems efficiently and accurately, potentially unlocking new avenues for research in materials science, condensed matter physics, and beyond.

The research introduces Code Swendsen-Wang dynamics, a simple Markov chain for preparing Gibbs states of commuting Hamiltonians. The team proves this chain mixes rapidly for both quantum and classical Hamiltonians exhibiting thermally stable phases, including the 4D toric code, at any temperature. This methodology connects classical code sampling with its quantum counterpart, effectively applying classical techniques to the quantum realm. This allows the construction of quantum Markov chains that surpass the limitations of standard code Hamiltonians, opening avenues for exploring more complex quantum systems and their associated Gibbs states.

Efficient Sampling of Even Subgraphs

This research details a Markov Chain Monte Carlo (MCMC) algorithm for sampling from a distribution related to graph codes and error correction. The algorithm efficiently samples from the distribution of even subgraphs of a graph, crucial for analyzing and constructing effective error-correcting codes based on graphical models. The team designed the algorithm to overcome challenges faced by traditional MCMC methods, which can suffer from slow convergence and high correlation between samples. The core of the algorithm involves constructing canonical paths, sequences of edges that efficiently explore the space of even subgraphs.

These paths define a Markov chain designed to efficiently sample from the desired distribution. The research focuses on analyzing the flow of this Markov chain, measuring the rate at which it transitions between states, to demonstrate its efficiency and rapid convergence. The team provides mathematical bounds on the flow, mixing time, and autocorrelation of the algorithm, using techniques from linear algebra, graph theory, and probability theory. These bounds rigorously establish the algorithm’s efficiency and demonstrate its ability to quickly converge to the desired distribution. The results demonstrate a fast mixing time and low autocorrelation, indicating the algorithm efficiently generates relatively independent samples.

Efficient Gibbs State Preparation via Markov Chains

This research presents a new Markov chain, termed Code Swendsen-Wang dynamics, designed for efficiently preparing Gibbs states of commuting Hamiltonians. The team demonstrates rapid mixing of this chain for a broad range of Hamiltonians, including those with thermally stable properties, such as the 4D toric code, across all temperatures. This achievement extends beyond previous work, which often struggled to generalize results beyond the 2D toric code or faced limitations at low temperatures. The demonstrated efficiency stems from the algorithm’s ability to rapidly converge to the global Gibbs distribution from any starting state, a capability not shared by all existing methods.

The researchers suggest the algorithm performs particularly well for Hamiltonians close to being graphic or cographic, and they propose similar efficiency for all classical and quantum stabilizer codes, excluding systems near first-order phase transitions. Further research could explore the algorithm’s behaviour with regular matroids, building on connections to approximation algorithms for the Tutte polynomial and the duality properties of matroids. The findings also extend existing approximation results to matroids that are close to being graphic or cographic, offering potential advancements in related computational fields. This research represents a significant step forward in the development of efficient methods for preparing Gibbs states, with potential applications in quantum simulation and materials science.

👉 More information
🗞 Code Swendsen-Wang Dynamics
🧠 ArXiv: https://arxiv.org/abs/2510.08446

Rohail T.

Rohail T.

As a quantum scientist exploring the frontiers of physics and technology. My work focuses on uncovering how quantum mechanics, computing, and emerging technologies are transforming our understanding of reality. I share research-driven insights that make complex ideas in quantum science clear, engaging, and relevant to the modern world.

Latest Posts by Rohail T.:

Os-Marathon Achieves Robust Agent Benchmarking across 242 Long-Horizon Repetitive Tasks

Os-Marathon Achieves Robust Agent Benchmarking across 242 Long-Horizon Repetitive Tasks

January 30, 2026
Ferromagnetism Achieved in -Orbital Hexagonal Lattice Fermions Via Double-Exchange at Half-Filling

Ferromagnetism Achieved in -Orbital Hexagonal Lattice Fermions Via Double-Exchange at Half-Filling

January 30, 2026
Mixed Precision Advances Variational Monte Carlo with 64-Bit Error Bounds

Mixed Precision Advances Variational Monte Carlo with 64-Bit Error Bounds

January 30, 2026