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

**Authors:** Alexander Engelsberger, Magdalena Pšeničkova, Thomas Villmann

PMC · DOI: 10.3390/e28020229 · 2026-02-16

## TL;DR

This paper explores how quantum computing can be used to improve prototype-based classification by implementing efficient search and optimization algorithms.

## Contribution

The paper introduces quantum oracles for nearest prototype search and prototype selection without requiring binary optimization formulations.

## Key findings

- Quantum circuits for winner determination in prototype-based classification were designed and implemented.
- The proposed oracles reduce the number of auxiliary variables needed for prototype selection.
- The algorithms were validated using the PennyLane framework on synthetic datasets.

## 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.

## Full-text entities

- **Diseases:** injury to (MESH:D014947)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Figures

3 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12939936/full.md

---
Source: https://tomesphere.com/paper/PMC12939936