Approximating the #P-Hard Matrix Permanent

This direction is split into other directions: simply exponential approximation, matrix permanent complexity. Its last version stays readable and citable here.

Version 1 of 133 papers40 conceptsfrozen 2026-10-04

At first glance, the permanent of a matrix looks almost identical to the determinant. Both are sums over all possible permutations of the matrix entries. The only difference is a single minus sign: while the determinant alternates signs based on the permutation's parity, the permanent sums everything with a positive sign.

Yet this tiny algebraic shift creates a massive computational chasm. While the determinant can be calculated in polynomial time via Gaussian elimination, the permanent is #P-hard—a complexity class even more daunting than NP. As Scott Aaronson demonstrated in A Linear-Optical Proof that the Permanent is #P-Hard, even determining the sign of a permanent or approximating it within a multiplicative factor is computationally intractable.

Because the permanent is central to quantum optics (simulating bosons), graph theory (counting perfect matchings), and spatial statistics, researchers have spent decades searching for "islands of tractability" and efficient approximation schemes.

The Complexity of Summing Without Cancellation

The reason the determinant is "easy" is cancellation. The alternating signs allow us to use row operations to reduce the matrix to a triangular form. The permanent, lacking these signs, requires summing $n!$ terms with no obvious way to simplify the work. This makes the exact calculation of the permanent a bottleneck for classical systems Generalizing and Derandomizing Gurvits's Approximation Algorithm for the Permanent.

To navigate this, the research community focuses on three main frontiers:

  1. Deterministic Approximations: Finding provable bounds on the permanent's value.
  2. Randomized Sampling: Using Monte Carlo methods to estimate the sum.
  3. Structural Exploitation: Identifying specific matrix properties (like sparsity) that lower the complexity.

Deterministic Bounds and the Bethe Approximation

One way to handle #P-hardness is to settle for an estimate that is guaranteed to be within a certain factor of the truth. Nima Anari and Alireza Rezaei provided a breakthrough in this area by analyzing the Bethe approximation A Tight Analysis of Bethe Approximation for Permanent. They showed that the permanent of a nonnegative matrix can be deterministically approximated within an exponential factor of $\sqrt{2}^n$. While an exponential error sounds large, in the context of #P-hard problems, this represents a significant narrowing of the gap between what we can calculate and what remains hidden.

Speeding Up Sampling with Nesting and Depth

Randomized algorithms, particularly rejection sampling and importance sampling, offer a different path. The goal is to treat the permanent as an expected value and sample permutations to estimate it. However, standard sampling often fails because the "weight" of the permanent might be concentrated in a tiny fraction of permutations.

Recent work by Juha Harviainen and Mikko Koivisto has significantly optimized these methods:

  • DeepAR: By using dynamic programming to look "deeper" into the recursion tree of the matrix, the algorithm can generate tighter upper bounds, leading to orders-of-magnitude faster sampling Approximating the Permanent with Deep Rejection Sampling.
  • Nesting Importance Sampling (NIS): This hybrid approach provides rigorous $(\epsilon, \delta)$-accuracy guarantees—meaning the estimate is highly likely to be very close to the true value—while achieving 100x speedups over previous state-of-the-art methods Estimating the Permanent by Nesting Importance Sampling.

Exploiting Matrix Structure

When a matrix is not "dense" (i.e., it has many zeros), the underlying graph structure can be exploited. Diego Cifuentes and Pablo A. Parrilo introduced a framework using tree decomposition An efficient tree decomposition method for permanents and mixed discriminants. If the matrix's sparsity pattern has a low "treewidth," the permanent can be computed much more efficiently. This shifts the difficulty from the size of the matrix to the complexity of its internal connections.

The Quantum Connection and Generalizations

The permanent is not just a combinatorial curiosity; it is the mathematical language of Boson Sampling, a primary candidate for demonstrating quantum supremacy. Zhengfeng Ji and colleagues have explored how the permanent behaves for random matrices with vanishing means, a key step in evaluating quantum hardness conjectures Approximating Permanent of Random Matrices with Vanishing Mean: Made Better and Simpler.

Furthermore, researchers are looking at generalizations like $\alpha$-permanents A note on $α$-permanent and loop soup and quantum determinants ($q$-permanents). As En-Jui Kuo and Shih-Han Hung show, these functions act as a bridge between the "easy" determinant and the "hard" permanent. Mapping the complexity of these intermediate functions helps theorists understand exactly where classical computation breaks down and quantum advantage begins The Computational Complexity of Quantum Determinants.

Papers in this version

History & citationVersion 1 · 2026-10-04

Split into other directions · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_approximating_the_p_hard_matrix_permanen_36aacb99,
  title = {Approximating the #P-Hard Matrix Permanent},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/approximating-the-p-hard-matrix-permanent/rdr_36aacb99bbc744e9bb2a25f2d18969d3},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-25},
}

This exact version (version 1, frozen text):

@misc{lacuna_approximating_the_p_hard_matrix_permanen_36aacb99_v1,
  title = {Approximating the #P-Hard Matrix Permanent},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/approximating-the-p-hard-matrix-permanent/rdr_36aacb99bbc744e9bb2a25f2d18969d3/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-25},
}