量子偏好查询
Quantum Preference Query
AI总结:
本文提出量子偏好查询(QPQ)问题,利用量子并行性在四种输入输出场景下设计了四种量子算法,在内存访问次数上比经典算法快平方级,实验中实现高达1000倍提升。
摘要:
给定一个包含许多元组的大型数据集,用户很难从中挑选出自己偏好的元组。因此,偏好查询问题,即从数据集中找出最受偏好的元组,在数据库领域被广泛讨论。在这个问题中,用户给出一个效用函数,用于评估用户对某个元组的偏好程度。然而,考虑一个由 N 个元组组成的数据集,现有算法需要 O(N) 的时间来回答一个查询,或者需要 O(N) 的时间进行冷启动来回答一个查询。原因在于,在经典计算机中,需要线性时间来通过效用函数评估 N 个元组的效用。在本文中,我们讨论了量子偏好查询(Quantum Preference Query, QPQ)问题,其中数据集存储在量子存储器中,我们使用量子计算机来返回答案。得益于量子并行性,量子算法在理论上可以比其经典竞争者表现得更好。我们讨论了不同输入和输出类型下的这一问题。在 QPQ 问题中,输入可以是一个数字 k 或一个阈值 theta。给定 k,问题是返回具有最高效用的 k 个元组。给定 theta,问题是返回所有效用高于 theta 的元组。此外,在 QPQ 问题中,输出可以是经典的(即一个元组列表)或量子的(即量子比特中的叠加态)。我们提出了四种量子算法来解决上述四种场景中的问题。我们分析了每种量子算法所需的内存访问次数,这表明所提出的量子算法比其经典竞争者至少快了平方级。在我们的实验中,我们表明在回答 QPQ 问题时,量子算法在内存访问次数上比其经典竞争者实现了高达 1000 倍的提升,这证明了 QPQ 问题可以成为偏好查询问题研究的未来方向。
英文摘要:
Given a large dataset of many tuples, it is hard for users to pick out their preferred tuples. Thus, the preference query problem, which is to find the most preferred tuples from a dataset, is widely discussed in the database area. In this problem, a utility function is given by the user to evaluate to what extent the user prefers a tuple. However, considering a dataset consisting of N tuples, the existing algorithms need O(N) time to answer a query, or need O(N) time for a cold start to answer a query. The reason is that in a classical computer, a linear time is needed to evaluate the utilities by the utility function for N tuples. In this paper, we discuss the Quantum Preference Query (QPQ) problem, where the dataset is given in a quantum memory, and we use a quantum computer to return the answers. Due to quantum parallelism, the quantum algorithm can theoretically perform better than their classical competitors. We discuss this problem in different kinds of input and output. In the QPQ problem, the input can be a number k or a threshold theta. Given k, the problem is to return k tuples with the highest utilities. Given theta, the problem is to return all the tuples with utilities higher than theta. Also, in QPQ problem, the output can be classical (i.e., a list of tuples) or quantum (i.e., a superposition in quantum bits). We proposed four quantum algorithms to solve the problems in the above four scenarios. We analyze the number of memory accesses needed for each quantum algorithm, which shows that the proposed quantum algorithms are at least quadratically faster than their classical competitors. In our experiments, we show that to answer a QPQ problem, the quantum algorithms achieve up to 1000x improvement in number of memory accesses than their classical competitors, which proved that QPQ problem could be a future direction of the study of preference query problems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。