Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2026 Feb 16;28(2):229.
doi: 10.3390/e28020229.

Prototype-Based Classifiers and Vector Quantization on a Quantum Computer-Implementing Integer Arithmetic Oracles for Nearest Prototype Search

Affiliations

Prototype-Based Classifiers and Vector Quantization on a Quantum Computer-Implementing Integer Arithmetic Oracles for Nearest Prototype Search

Alexander Engelsberger et al. Entropy (Basel). .

Abstract

The superposition principle in quantum mechanics enables the encoding of an entire solution space within a single quantum state. By employing quantum routines such as amplitude amplification or the Quantum Approximate Optimization Algorithm (QAOA), this solution space can be explored in a computationally efficient manner to identify optimal or near-optimal solutions. In this article, we propose quantum circuits that operate on binary data representations to address a central task in prototype-based classification and representation learning, namely the so-called winner determination, which realizes the nearest prototype principle. We investigate quantum search algorithms to identify the closest prototype during prediction, as well as quantum optimization schemes for prototype selection in the training phase. For these algorithms, we design oracles based on arithmetic circuits that leverage quantum parallelism to apply mathematical operations simultaneously to multiple inputs. Furthermore, we introduce an oracle for prototype selection, integrated into a learning routine, which obviates the need for formulating the task as a binary optimization problem and thereby reduces the number of required auxiliary variables. All proposed oracles are implemented using the Python 3-based quantum machine learning framework PennyLane and empirically validated on synthetic benchmark datasets.

Keywords: prototype-based learning; quantum machine learning; vector quantization.

PubMed Disclaimer

Conflict of interest statement

The authors declare no conflicts of interest.

Figures

Figure 1
Figure 1
Circuit of the threshold oracle. The red dottet lines seperate forward pass and uncomputation from the phase shift.
Figure 2
Figure 2
Absolute Difference Operator.
Figure 3
Figure 3
Circuit that implements the Best Selection Oracle for two prototypes per class and a data width of four. The vertical lines seperate the steps: data loading, distance calculation, distance comparison and uncomputation.

References

    1. Schuld M., Petruccione F. Machine Learning with Quantum Computers. Springer International Publishing; Cham, Switzerland: 2021. Quantum Science and Technology. - DOI
    1. Schuld M., Bocharov A., Svore K., Wiebe N. Circuit-Centric Quantum Classifiers. Phys. Rev. A. 2020;101:032308. doi: 10.1103/PhysRevA.101.032308. - DOI
    1. Shi J., Wang W., Lou X., Zhang S., Li X. Parameterized Hamiltonian Learning with Quantum Circuit. IEEE Trans. Pattern Anal. Mach. Intell. 2023;45:6086–6095. doi: 10.1109/TPAMI.2022.3203157. - DOI - PubMed
    1. Feng Y.Y., Li Y., Li J., Zhou J., Shi J.J. Variational Shadow Quantum Circuits Assisted Quantum Convolutional Neural Network. Adv. Quantum Technol. 2025;8:2400510. doi: 10.1002/qute.202400510. - DOI
    1. McClean J.R., Boixo S., Smelyanskiy V.N., Babbush R., Neven H. Barren Plateaus in Quantum Neural Network Training Landscapes. Nat. Commun. 2018;9:4812. doi: 10.1038/s41467-018-07090-4. - DOI - PMC - PubMed