When Quantum Computing Meets Database: A Hybrid Sampling Framework for Approximate Query Processing

Sai Wu,Meng Shi,Dongxiang Zhang,Junbo Zhao,Gongsheng Yuan,Gang Chen
DOI: https://doi.org/10.1109/tkde.2024.3480278
IF: 9.235
2024-01-01
IEEE Transactions on Knowledge and Data Engineering
Abstract:Quantum computing represents a next-generation technology in data processing, promising to transcend the limitations of traditional computation. In this paper, we undertake an early exploration of the potential integration of quantum computing with database query optimization. We introduce a pioneering hybrid classical-quantum algorithm for sampling-based approximate query processing (AQP). The core concept of the algorithm revolves around identifying rare groups, which often follow a long-tail distribution, and applying distinct sampling methodologies to normal and rare groups. By leveraging the quantum capabilities of the diffusion gate and QRAM, the algorithm defines a novel quantum sampling approach that iteratively amplifies the signals of these infrequent groups. The algorithm operates without the need for preprocessing or prior knowledge of workloads or data. It utilizes the power of quadratic acceleration to achieve well-balanced sampling across various data categories. Experimental results demonstrate that in the context of AQP, the new sampling scheme provides higher accuracy at the same sampling cost. Additionally, the benefits of quantum computing become more pronounced as query selectivity increases.
What problem does this paper attempt to address?