Skip to content

Improved Quantum Algorithms for Subset Sum and k-SUM

Nikolai Chukhin, Alexander S. Kulikov, Maksim Levitskii, Ivan Mihajlin

cs.CCarXiv:2608.07309

Abstract

The Subset Sum problem asks whether, given n integers and a target, some subset of the integers sums to the target. Its best known worst-case running time is O*(2n/2) (Horowitz and Sahni, 1974), whereas the best quantum upper bound is O*(2n/3) (Bernstein, Jeffery, Lange, and Meurer, 2013). The k-SUM problem is a parameterized version of Subset Sum asking whether there are k integers that sum to the target. The best classical upper bound for it is O(n k/2), whereas the best quantum running time is O(nk/3) (Tani, 2009). For random instances, a quantum algorithm with running time O(nΦk) is known, where Φk=2k- k/7- (k+3)/76 (Schrottenloher, 2021). We present a new quantum algorithm solving worst-case k-SUM in time O(nΨk), where Ψk=Φk-[k 3 7]9-[k 6 7]18. The algorithm is not only faster for all k congruent to 3 or 6 modulo 7, but also gives a worst-case guarantee rather than a guarantee restricted to single-solution random instances. Combining our algorithm for 7-SUM with the standard block reduction technique yields an O*(22n/7) quantum algorithm for Subset Sum, improving the previously known O*(2n/3) algorithm.

Create a lesson