Quantum Ensemble for Classification

Antonio Macaluso, Luca Clissa, Stefano Lodi, Claudio Sartori
7/2/2020
cs.LGquant-phstat.ML

Official code: amacaluso/Quantum-algorithm-for-ensemble-using-bagging (5 stars, Jupyter Notebook, Apache-2.0, last commit 2024-02-26).

Abstract

A powerful way to improve performance in machine learning is to construct an ensemble that combines the predictions of multiple models. Ensemble methods are often much more accurate and lower variance than the individual classifiers that make them up but have high requirements in terms of memory and computational time.

Show full abstract

In fact, a large number of alternative algorithms is usually adopted, each requiring to query all available data. We propose a new quantum algorithm that exploits quantum superposition, entanglement and interference to build an ensemble of classification models. Thanks to the generation of the several quantum trajectories in superposition, we obtain $B$ transformations of the quantum state which encodes the training set in only $log\left(B\right)$ operations. This implies exponential growth of the ensemble size while increasing linearly the depth of the correspondent circuit. Furthermore, when considering the overall cost of the algorithm, we show that the training of a single weak classifier impacts additively the overall time complexity rather than multiplicatively, as it usually happens in classical ensemble methods. We also present small-scale experiments on real-world datasets, defining a quantum version of the cosine classifier and using the IBM qiskit environment to show how the algorithms work.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

This repository contains the code to reproduce the results in the paper Quantum Ensemble for Classification. All the quantum implementations use the IBM qiskit package.

51Jupyter Notebook, PythonApr 27, 20202 years agoApache-2.0
machine-learning-algorithmsquantum-computingquantum-ensemblequantum-machine-learning

Similar Papers

Cite this paper

@article{macaluso2020quantum,
  title  = {Quantum Ensemble for Classification},
  author = {Antonio Macaluso and Luca Clissa and Stefano Lodi and Claudio Sartori},
  year   = {2020},
  eprint = {2007.01028},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2007.01028}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2007.01028.svg)](https://codeofpaper.com/paper/2007.01028)

Discussion