In combinatorics and statistical physics, counting discrete structures—such as the number of valid graph colorings, independent sets, or matchings—is notoriously difficult. Formally, many of these problems are $\#\text{P}$-hard, meaning we cannot expect to compute them exactly in polynomial time. To bypass this barrier, researchers traditionally turn to randomized algorithms, such as Markov Chain Monte Carlo (MCMC) simulations, which sample configurations to build an approximation.
However, a powerful alternative paradigm has emerged that allows us to count deterministically. By treating the counting problem as a polynomial and extending its parameters into the complex plane, we can leverage complex analysis to design Fully Polynomial-Time Approximation Schemes (FPTAS). The core intuition of this approach relies on a simple but profound fact: the speed at which a polynomial's logarithm can be approximated depends entirely on how far away its complex roots are.
The Partition Function as a Polynomial
To see how this works, we can frame our counting problem as a partition function, $Z(z)$. Suppose we want to count the independent sets of a graph. We can define a polynomial where each independent set $I$ contributes a weight based on a complex parameter $z$:
$$Z(z) = \sum_{I} z^{|I|}$$
If we evaluate $Z(1)$, we get the exact count of all independent sets. If we evaluate it at a small value of $z$, the calculation is heavily weighted toward smaller, simpler configurations.
Evaluating $Z(1)$ directly is hard because the polynomial has exponentially many terms. But what if we instead look at the function $f(z) = \ln Z(z)$? If we can compute the Taylor expansion of $\ln Z(z)$ around the origin $z=0$, we can estimate $\ln Z(1)$ by evaluating the first few terms of the series:
$$\ln Z(1) \approx \sum_{k=0}^{m} \frac{f^{(k)}(0)}{k!} (1)^k$$
Crucially, the low-order derivatives $f^{(k)}(0)$ can often be computed efficiently in polynomial time because they only depend on local, small-scale structures of the graph.
Why Zeros Dictate Convergence
The catch with Taylor series is that they do not always converge. A Taylor series for a complex function converges inside a disk centered at the origin, and the boundary of this disk is strictly limited by the closest singularity of the function.
For the function $f(z) = \ln Z(z)$, a singularity occurs wherever the partition function equals zero ($Z(z) = 0$). If $Z(z)$ has a complex root (a "zero") sitting close to the origin, the radius of convergence will be small, and our Taylor series will fail to compute $Z(1)$.
Conversely, if we can prove that $Z(z)$ has no zeros within a region of the complex plane that encompasses both $z=0$ and our target point $z=1$, then $\ln Z(z)$ is perfectly analytic (smooth and well-behaved) throughout that region. This absence of zeros guarantees that the Taylor series converges geometrically. By truncating the series after a logarithmic number of terms, we obtain a highly accurate, deterministic approximation of the partition function in polynomial time. This strategy is known as Barvinok's polynomial interpolation paradigm.
Connecting Physics to Algorithms
Proving that a multivariate polynomial has no roots in a specific complex domain sounds daunting, but it maps directly to a classical concept in statistical physics: phase transitions.
In physical systems, phase transitions (like water turning to ice) correspond to non-analyticities in the system's free energy, which is proportional to $\ln Z(z)$. In the 1950s, physicists Tsung-Dao Lee and Chen-Ning Yang showed that these phase transitions occur precisely where the zeros of the partition function pinch the real axis in the complex plane. If a system is in a stable phase where correlations between distant particles decay rapidly, the system cannot undergo a phase transition, meaning the partition function must be zero-free.
Modern computer science leverages this connection to build algorithms. In a foundational breakthrough, Jingcheng Liu et al. (2017) bridged the gap between these classical physics theorems and algorithmic complexity. In The Ising Partition Function: Zeros and Deterministic Approximation, the authors demonstrated that the absence of "Lee-Yang zeros" can be systematically exploited to construct deterministic FPTAS for the Ising model, even in regimes where traditional randomized local search methods fail to converge efficiently.
To generalize this beyond the Ising model, researchers began mapping out the zero-free regions of other combinatorial frameworks. For instance, Chao Liao et al. (2018) analyzed the locations of complex zeros for Holant problems in Zeros of Holant problems: locations and algorithms. By identifying a zero-free strip in the complex plane, the authors proved that a wide class of symmetric counting problems remain stable and computationally tractable via Taylor expansions.
Proving Zero-Freeness via Contraction
How do we actually prove that a partition function is zero-free for an arbitrary graph? The most prominent technique involves analyzing how the roots of the polynomial evolve under recursive graph operations, a property known as contraction.
When computing a partition function on a tree or a graph, one can compute marginal probabilities recursively from the leaves up to the root. If we extend the parameters to complex numbers, these recurrences become mappings in the complex plane. If the recurrence relation acts as a strict contraction—meaning it shrinks any input domain into a smaller, bounded region—it prevents the marginals from behaving erratically. This contraction ensures that the partition function can never evaluate to zero.
Shuai Shao 0001 et al. (2019) established a formal equivalence between this geometric contraction and the physical decay of correlations in Contraction: a Unified Perspective of Correlation Decay and Zero-Freeness of 2-Spin Systems. This unification meant that any system exhibiting spatial mixing could automatically be converted into a zero-free polynomial framework.
This mathematical machinery allowed researchers to tackle increasingly difficult systems:
- Ferromagnetic Systems: Heng Guo et al. (2020) combined complex contraction with Barvinok's method in Zeros of ferromagnetic 2-spin systems, providing a unified deterministic framework for 2-spin systems under external fields.
- Negative Interactions: When graph weights can be negative, the partition function can cancel out, making even determining its sign $\text{\#P}$-hard. Yumou Fei et al. (2023) used recursive contraction in Two-State Spin Systems with Negative Interactions to map out the exact boundaries where zero-free disks still exist, carving out new tractable regimes in previously unreachable parameter spaces.
Unifying the Algorithmic Landscape
For a long time, the approximate counting community was split into two camps: those designing randomized algorithms via MCMC Markov chains, and those designing deterministic algorithms via correlation decay and zero-free regions. Recent work has shown that these two perspectives are fundamentally looking at the same underlying phenomenon.
David Gamarnik (2023) closed the loop between these approaches in Correlation decay and the absence of zeros property of partition functions. The author proved that if Barvinok's interpolation method is applicable to a family of graphs, the system must exhibit a strong form of correlation decay known as Strong Spatial Mixing.
This deep equivalence means that whenever a randomized algorithm can sample a system efficiently, a deterministic algorithm should theoretically be able to count it. For example, Jingcheng Liu 0001 et al. (2024) lifted probabilistic percolation tools into the complex plane in Phase Transitions via Complex Extensions of Markov Chains, demonstrating that hypergraph partition functions remain zero-free precisely up to the threshold where Markov chains mix rapidly.
Ultimately, this paradigm has allowed deterministic counting to catch up to its randomized counterparts. In Correlation Decay and Partition Function Zeros: Algorithms and Phase Transitions, Jingcheng Liu 0001 et al. (2025) utilized this analytic continuation framework to design deterministic algorithms for graph colorings, matching the phase transition boundaries achieved by the best randomized sampling methods. By viewing counting through the lens of complex zeros, the boundary between physical phase transitions and algorithmic tractability has become one and the same.
Key Foundational Work
The Ising Partition Function: Zeros and Deterministic Approximation (2017) — contributed 3 concept elements to this direction.
Fisher zeros and correlation decay in the Ising model (2018) — contributed 2 concept elements to this direction.
Zeros of Holant problems: locations and algorithms (2018) — contributed 2 concept elements to this direction.