NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Novel Clustering Algorithm Based on Quantum Random Walk

Qiang Li, Yan He, Jiang Jing-pingarXiv 2008 · DOI

Abstract

The enormous successes have been made by quantum algorithms during the last decade. In this paper, we combine the quantum random walk (QRW) with the problem of data clustering, and develop two clustering algorithms based on the one dimensional QRW. Then, the probability distributions on the positions induced by QRW in these algorithms are investigated, which also indicates the possibility of obtaining better results. Consequently, the experimental results have demonstrated that data points in datasets are clustered reasonably and efficiently, and the clustering algorithms are of fast rates of convergence. Moreover, the comparison with other algorithms also provides an indication of the effectiveness of the proposed approach.

Introduction

Clustering is a fundamental task in unsupervised learning, aimed at grouping unlabeled data points such that similarity is maximized within groups and minimized between them. While classical algorithms like K-means are widely used, they often struggle with non-spherical data distributions and local optima. This research explores the application of Quantum Random Walks (QRW)—the quantum analogue of classical random walks—to overcome these limitations. By leveraging quantum interference and parallelism, the proposed algorithms allow data points to explore the feature space more efficiently than classical methods.

Methodology

The core of the proposed approach is to treat each data point in an $m$-dimensional dataset as a movable particle. These particles interact with their $k$-nearest neighbors and "walk" toward them based on transition probabilities. The paper introduces two variants:

  1. 1D-scms (Single-Coin-Multi-Step): This algorithm identifies the neighbor with the highest transition probability to construct a biased quantum coin, which dictates the particle's movement over $r$ steps before measurement.
  2. 1D-mcms (Multi-Coin-Multi-Step): A more sophisticated version that utilizes all transition probabilities to neighbors to construct a sequence of quantum transformations, allowing for a more nuanced exploration of the feature space.
System architecture of the quantum clustering control loop.

The system architecture, as shown in Figure 1, utilizes a feedback loop where a controller ($C_n$) manages the transition probability matrix ($P_n$) to update the position matrix ($X_n$) of the particles. Unitary transformations, such as the Hadamard gate, are employed to ensure the evolution remains quantum, facilitating interference patterns that are absent in classical walks.

Key Insights and Ideas

Quantum Parallelism and Interference

Unlike classical walks that spread linearly, QRWs spread quadratically faster. This is due to constructive interference, which helps particles "find" the center of dense data regions more efficiently. As illustrated in Figure 2, the probability distribution of a quantum walk differs significantly from the Gaussian distribution of a classical walk, exhibiting peaks that allow for broader exploration.

Probability distribution comparison: Classical vs. Quantum Random Walk.

Parameter Tuning

  • The $k$-NN Resolution: The number of nearest neighbors ($k$) acts as a control for cluster granularity. A small $k$ results in local clusters, while a larger $k$ merges points into fewer, larger clusters.
  • The "r-Step" Sweet Spot: The authors found that applying the quantum transformation for $r=5$ or $6$ steps provides the optimal balance between exploration and accurate convergence. Excessive steps can lead to performance degradation.

Experimental Results

The algorithms were evaluated against six benchmark datasets from the UCI Machine Learning Repository, including Soybean, Iris, and Breast Cancer Wisconsin. The 1D-mcms algorithm consistently outperformed classical benchmarks:

  • Soybean Dataset: Achieved 97.87% accuracy, significantly higher than K-means (68.1%) and PCA-Kmeans (72.3%).
  • Breast Cancer Dataset: Reached an accuracy of 95.42%.
  • Convergence: The algorithms demonstrated fast rates of convergence, with particles automatically gathering into reasonable clusters.

Conclusion

This research demonstrates that quantum random walks can be effectively adapted for data clustering, offering superior accuracy and faster convergence on complex datasets compared to traditional classical methods. While currently simulated on classical hardware, the true potential of these algorithms lies in their future implementation on actual quantum computers. Future work will focus on further refining the probability distributions induced by QRW to enhance clustering precision.

Summary updated

BibTeX
@misc{li2008novel,
  author = {Qiang Li and Yan He and Jiang Jing-ping},
  title = {{A Novel Clustering Algorithm Based on Quantum Random Walk}},
  year = {2008},
  eprint = {0812.1357},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/0812.1357},
  howpublished = {arXiv},
}
Figure