Estimating the Density of States of Boolean Satisfiability Problems on Classical and Quantum Computing Platforms

Tuhin Sahai, Anurag Mishra, Jose Miguel Pasini, Susmit Jha

Abstract

Characterizing the Density of States (DOS)—the distribution of unsatisfied clauses—is critical for understanding the hardness and design flexibility of Boolean Satisfiability (SAT) problems. However, exact calculation is computationally prohibitive as it generalizes #SAT and MAX-SAT. This study introduces a method to estimate the DOS using concentration of measure inequalities, specifically McDiarmid’s Inequality. By transforming the calculation of the function's diameter into a Quadratic Unconstrained Binary Optimization (QUBO) problem, we leverage quantum annealing hardware to provide rapid bounds on the solution space. Benchmarking against classical solvers like Z3 and the Hamze-de Freitas-Selby (HFS) algorithm on random 3-SAT instances shows that quantum annealers can efficiently find high-quality diameter solutions, offering a scalable path for analyzing complex logical systems.

Introduction

In Boolean Satisfiability (SAT), the primary objective is typically to find a single variable assignment that makes a formula true. However, in high-assurance fields like aerospace requirements engineering, a single solution is often insufficient. Engineers require a comprehensive understanding of the Density of States (DOS): a distribution representing the number of assignments that violate exactly $e$ clauses for all possible values of $e$. This distribution reveals the "hardness" of the problem and the robustness of the design space.

Density of States histograms showing the distribution of unsatisfied clauses for random 3-SAT instances.

Calculating the exact DOS is computationally intensive, often taking days for moderately sized problems using Markov Chain Monte Carlo (MCMC) methods. This research proposes a faster estimation technique utilizing advanced probability theory and modern quantum hardware.

Methodology

Concentration of Measure

The core of the proposed approach is the application of Concentration of Measure principles, specifically McDiarmid’s Inequality. This mathematical framework provides bounds on how much a random function—in this case, the number of unsatisfied clauses—deviates from its mean.

Diameter as a QUBO Problem

A critical parameter in these bounds is the "diameter" ($D_i$), which quantifies the maximum possible change in the number of satisfied clauses resulting from flipping a single variable. The authors demonstrate that for 3-SAT problems, finding this diameter can be reformulated as a Quadratic Unconstrained Binary Optimization (QUBO) problem.

This reformulation is pivotal because QUBO is the native input format for Quantum Annealers, such as the D-Wave 2X. By solving $2N$ optimization tasks (where $N$ is the number of variables), the method constructs a tight "envelope" or bound around the DOS histogram.

Experimental Evaluation

The approach was tested on 560 random 3-SAT instances with variable counts $N$ ranging from 30 to 200. Clause densities ($\alpha$) were varied between 4.0 and 5.0 to cover the critical phase transition region where SAT problems are most difficult. Performance was compared against several baselines, including the MCMC-FlatSAT algorithm for ground truth, the Hamze-de Freitas-Selby (HFS) classical heuristic, and the Z3 SMT solver.

Key Results

The D-Wave quantum annealer demonstrated significant potential in solving the diameter optimization tasks. In 306 out of 560 instances, the D-Wave found higher-quality solutions (larger diameters) than the classical HFS algorithm. On average, D-Wave's solutions were 0.7% better, with peak improvements reaching 7%.

Correlation between diameter values obtained by D-Wave and the classical HFS algorithm for N=150 and N=200.

While the Z3 solver provided the tightest theoretical bounds, its scalability was limited; computation times increased exponentially with $N$, reaching hours or days for larger instances. In contrast, the D-Wave approach maintained high efficiency, utilizing a 5 $\mu s$ annealing time per task. Furthermore, while the MCMC baseline required 3 to 10 days to converge for larger instances, the concentration-of-measure approach provided a rapid and reliable approximation of the distribution.

Discussion and Conclusion

The study successfully demonstrates that "counting" problems can be effectively addressed through "optimization" by leveraging concentration of measure inequalities. This shift allows quantum annealers to contribute to tasks previously considered outside their primary domain.

Despite these successes, challenges remain. The use of Noisy Intermediate-Scale Quantum (NISQ) devices requires "minor embedding" due to limited qubit connectivity, which consumes additional physical qubits. Additionally, the current bounds rely on empirical constants that require further theoretical derivation. Future work will focus on generalizing the QUBO formulation for higher-order $k$-SAT problems and using this DOS framework as a benchmark for evaluating successive generations of quantum hardware.

Summary updated

BibTeX
@inproceedings{sahai2020estimating,
  author = {Tuhin Sahai and Anurag Mishra and Jose Miguel Pasini and Susmit Jha},
  title = {{Estimating the Density of States of Boolean Satisfiability Problems on Classical and Quantum Computing Platforms}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i02.5524},
}
Figure