# Fast counting with tensor networks

arXiv: https://arxiv.org/abs/1805.00475 · HTML: https://mlsanity.com/paper/1805.00475/

## Key facts

- Cited by 2 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 1 May 2018.

## Built on by (most cited first, 2 of 2)

- [Cons-training Tensor Networks: Embedding and Optimization Over Discrete Linear Constraints](https://mlsanity.com/paper/2405.09005/) (2024)
- [Degeneracy Counting Quantum Algorithm using Decoherence](https://mlsanity.com/paper/2608.14941/) (2026)

## Abstract (arXiv)

We introduce tensor network contraction algorithms for counting satisfying assignments of constraint satisfaction problems (#CSPs). We represent each arbitrary #CSP formula as a tensor network, whose full contraction yields the number of satisfying assignments of that formula, and use graph theoretical methods to determine favorable orders of contraction. We employ our heuristics for the solution of #P-hard counting boolean satisfiability (#SAT) problems, namely monotone #1-in-3SAT and #Cubic-Vertex-Cover, and find that they outperform state-of-the-art solvers by a significant margin.
