English

Quantum (Inspired) $D^2$-sampling with Applications

Quantum Physics 2025-05-20 v2 Data Structures and Algorithms

Abstract

D2D^2-sampling is a fundamental component of sampling-based clustering algorithms such as kk-means++. Given a dataset VRdV \subset \mathbb{R}^d with NN points and a center set CRdC \subset \mathbb{R}^d, D2D^2-sampling refers to picking a point from VV where the sampling probability of a point is proportional to its squared distance from the nearest center in CC. Starting with empty CC and iteratively D2D^2-sampling and updating CC in kk rounds is precisely kk-means++ seeding that runs in O(Nkd)O(Nkd) time and gives O(logk)O(\log{k})-approximation in expectation for the kk-means problem. We give a quantum algorithm for (approximate) D2D^2-sampling in the QRAM model that results in a quantum implementation of kk-means++ that runs in time O~(ζ2k2)\tilde{O}(\zeta^2 k^2). Here ζ\zeta is the aspect ratio (i.e., largest to smallest interpoint distance), and O~\tilde{O} hides polylogarithmic factors in N,d,kN, d, k. It can be shown through a robust approximation analysis of kk-means++ that the quantum version preserves its O(logk)O(\log{k}) approximation guarantee. Further, we show that our quantum algorithm for D2D^2-sampling can be 'dequantized' using the sample-query access model of Tang (PhD Thesis, Ewin Tang, University of Washington, 2023). This results in a fast quantum-inspired classical implementation of kk-means++, which we call QI-kk-means++, with a running time O(Nd)+O~(ζ2k2d)O(Nd) + \tilde{O}(\zeta^2k^2d), where the O(Nd)O(Nd) term is for setting up the sample-query access data structure. Experimental investigations show promising results for QI-kk-means++ on large datasets with bounded aspect ratio. Finally, we use our quantum D2D^2-sampling with the known D2 D^2-sampling-based classical approximation scheme (i.e., (1+ε)(1+\varepsilon)-approximation for any given ε>0\varepsilon>0) to obtain the first quantum approximation scheme for the kk-means problem with polylogarithmic running time dependence on NN.

Cite

@article{arxiv.2405.13351,
  title  = {Quantum (Inspired) $D^2$-sampling with Applications},
  author = {Poojan Shah and Ragesh Jaiswal},
  journal= {arXiv preprint arXiv:2405.13351},
  year   = {2025}
}

Comments

arXiv admin note: substantial text overlap with arXiv:2308.08167. This new version fixes minor bugs in the previous version

R2 v1 2026-06-28T16:35:13.711Z