Counting with the quantum alternating operator ansatz
Julien Drapeau, Shreya Banerjee, Stefanos Kourtis
TL;DR
This paper introduces VQCount, a variational quantum counting framework that harnesses the JVV equivalence between approximate counting and random sampling by using GM-QAOA as a uniform solution sampler. It provides a formal integration of the GM-QAOA sampling state with the JVV self-reduction to obtain multiplicative-approximate counts for #P problems, achieving exponential reductions in required samples over naive approaches for large solution spaces. Through tensor-network simulations on positive #NAE3SAT and #1-in-3SAT, the authors reveal a tradeoff between sampling success and uniformity, showing that increasing circuit depth improves counting performance, albeit with practical limits due to nonuniformity and hardware constraints. While still behind state-of-the-art classical solvers in exact counting efficiency, VQCount demonstrates a viable near-term quantum heuristic for approximate counting and outlines clear avenues for improvement via deeper circuits and enhanced post-processing. The work highlights both the potential and current limitations of variational quantum approaches for tackling #P-hard counting problems.
Abstract
We introduce a variational algorithm based on the quantum alternating operator ansatz (QAOA) for the approximate solution of computationally hard counting problems. Our algorithm, dubbed VQCount, is based on the equivalence between random sampling and approximate counting and employs QAOA as a solution sampler. We first prove that VQCount improves upon previous work by reducing exponentially the number of samples needed to obtain an approximation within a multiplicative factor of the exact count. Using tensor network simulations, we then study the typical performance of VQCount with shallow circuits on synthetic instances of two #P-hard problems, positive #NAE3SAT and positive #1-in-3SAT. We employ the original quantum approximate optimization algorithm version of QAOA, as well as the Grover-mixer variant which guarantees a uniform solution probability distribution. We observe a tradeoff between QAOA success probability and sampling uniformity, which we exploit to achieve an exponential gain in efficiency over naive rejection sampling. Our results highlight the potential and limitations of variational algorithms for approximate counting.
