Department of Information Engineering and Computer Science, University of Trento, Trento, Italy.
Trento Institute for Fundamental Physics and Applications, Trento, Italy.
PLoS One. 2023 Nov 13;18(11):e0287869. doi: 10.1371/journal.pone.0287869. eCollection 2023.
In the current era, quantum resources are extremely limited, and this makes difficult the usage of quantum machine learning (QML) models. Concerning the supervised tasks, a viable approach is the introduction of a quantum locality technique, which allows the models to focus only on the neighborhood of the considered element. A well-known locality technique is the k-nearest neighbors (k-NN) algorithm, of which several quantum variants have been proposed; nevertheless, they have not been employed yet as a preliminary step of other QML models. Instead, for the classical counterpart, a performance enhancement with respect to the base models has already been proven. In this paper, we propose and evaluate the idea of exploiting a quantum locality technique to reduce the size and improve the performance of QML models. In detail, we provide (i) an implementation in Python of a QML pipeline for local classification and (ii) its extensive empirical evaluation. Regarding the quantum pipeline, it has been developed using Qiskit, and it consists of a quantum k-NN and a quantum binary classifier, both already available in the literature. The results have shown the quantum pipeline's equivalence (in terms of accuracy) to its classical counterpart in the ideal case, the validity of locality's application to the QML realm, but also the strong sensitivity of the chosen quantum k-NN to probability fluctuations and the better performance of classical baseline methods like the random forest.
在当前时代,量子资源极其有限,这使得量子机器学习(QML)模型的使用变得困难。对于监督任务,一种可行的方法是引入量子局域性技术,该技术允许模型仅关注所考虑元素的邻域。一种著名的局域性技术是 k-最近邻(k-NN)算法,已经提出了几种量子变体;然而,它们尚未被用作其他 QML 模型的初步步骤。相反,对于经典对应物,已经证明了相对于基础模型的性能增强。在本文中,我们提出并评估了利用量子局域性技术来减小 QML 模型的大小和提高其性能的想法。具体来说,我们提供了(i)用于局部分类的 QML 管道的 Python 实现,以及(ii)其广泛的经验评估。关于量子管道,它是使用 Qiskit 开发的,它由量子 k-NN 和量子二进制分类器组成,这两个都已经在文献中可用。结果表明,量子管道在理想情况下(在准确性方面)与经典对应物等效,局域性在 QML 领域中的应用是有效的,但所选择的量子 k-NN 对概率波动的强烈敏感性以及随机森林等经典基线方法的更好性能。