Do you know what q-means?
Abstract
Clustering is one of the most important tools for analysis of large datasets, and perhaps the most popular clustering algorithm is Lloyd's algorithm for -means. This algorithm takes vectors and outputs centroids ; these partition the vectors into clusters based on which centroid is closest to a particular vector. We present a classical --means algorithm that performs an approximate version of one iteration of Lloyd's algorithm with time complexity , exponentially improving the dependence on the data size and matching that of the "-means" quantum algorithm originally proposed by Kerenidis, Landman, Luongo, and Prakash (NeurIPS'19). Moreover, we propose an improved -means quantum algorithm with time complexity that quadratically improves the runtime of our classical --means algorithm in several parameters. Our quantum algorithm does not rely on quantum linear algebra primitives of prior work, but instead only uses QRAM to prepare simple states based on the current iteration's clusters and multivariate quantum amplitude estimation. Finally, we provide classical and quantum query lower bounds, showing that our algorithms are optimal in most parameters.
Cite
@article{arxiv.2308.09701,
title = {Do you know what q-means?},
author = {Arjan Cornelissen and Joao F. Doriguello and Alessandro Luongo and Ewin Tang},
journal= {arXiv preprint arXiv:2308.09701},
year = {2025}
}
Comments
21 pages. v2: improved the quantum complexity, references added; v3: new co-author added, new algorithms and upper bounds, improved old upper bounds, new lower bounds, references added