A quantum binary classifier based on cosine similarity
- URL: http://arxiv.org/abs/2104.02975v1
- Date: Wed, 7 Apr 2021 07:55:49 GMT
- Title: A quantum binary classifier based on cosine similarity
- Authors: Davide Pastorello and Enrico Blanzieri
- Abstract summary: The proposed quantum algorithm evaluates the classifier on a set of data vectors with time complexity that is logarithmic in the product of the set cardinality and the dimension of the vectors.
We present a simple implementation of the considered classifier on the IBM quantum processor ibmq_16_melbourne.
- Score: 0.0
- License: http://creativecommons.org/licenses/by/4.0/
- Abstract: We introduce the quantum implementation of a binary classifier based on
cosine similarity between data vectors. The proposed quantum algorithm
evaluates the classifier on a set of data vectors with time complexity that is
logarithmic in the product of the set cardinality and the dimension of the
vectors. It is based just on a suitable state preparation like the retrieval
from a QRAM, a SWAP test circuit (two Hadamard gates and one Fredkin gate), and
a measurement process on a single qubit. Furthermore we present a simple
implementation of the considered classifier on the IBM quantum processor
ibmq_16_melbourne. Finally we describe the combination of the classifier with
the quantum version of a K-nearest neighbors algorithm within a hybrid
quantum-classical structure.
Related papers
- Supervised binary classification of small-scale digits images with a trapped-ion quantum processor [56.089799129458875]
We show that a quantum processor can correctly solve the basic classification task considered.
With the increase of the capabilities quantum processors, they can become a useful tool for machine learning.
arXiv Detail & Related papers (2024-06-17T18:20:51Z) - Quantum Subroutine for Variance Estimation: Algorithmic Design and Applications [80.04533958880862]
Quantum computing sets the foundation for new ways of designing algorithms.
New challenges arise concerning which field quantum speedup can be achieved.
Looking for the design of quantum subroutines that are more efficient than their classical counterpart poses solid pillars to new powerful quantum algorithms.
arXiv Detail & Related papers (2024-02-26T09:32:07Z) - Indirect Quantum Approximate Optimization Algorithms: application to the
TSP [1.1786249372283566]
Quantum Alternating Operator Ansatz takes into consideration a general parameterized family of unitary operators to efficiently model the Hamiltonian describing the set of vectors.
This algorithm creates an efficient alternative to QAOA, where: 1) a Quantum parametrized circuit executed on a quantum machine models the set of string vectors; 2) a Classical meta-optimization loop executed on a classical machine; 3) an estimation of the average cost of each string vector computing.
arXiv Detail & Related papers (2023-11-06T17:39:14Z) - Majorization-based benchmark of the complexity of quantum processors [105.54048699217668]
We numerically simulate and characterize the operation of various quantum processors.
We identify and assess quantum complexity by comparing the performance of each device against benchmark lines.
We find that the majorization-based benchmark holds as long as the circuits' output states have, on average, high purity.
arXiv Detail & Related papers (2023-04-10T23:01:10Z) - A hybrid quantum-classical classifier based on branching multi-scale
entanglement renormalization ansatz [5.548873288570182]
This paper proposes a quantum semi-supervised classifier based on label propagation.
Considering the difficulty of graph construction, we develop a variational quantum label propagation (VQLP) method.
In this method, a locally parameterized quantum circuit is created to reduce the parameters required in the optimization.
arXiv Detail & Related papers (2023-03-14T13:46:45Z) - Quantum Clustering with k-Means: a Hybrid Approach [117.4705494502186]
We design, implement, and evaluate three hybrid quantum k-Means algorithms.
We exploit quantum phenomena to speed up the computation of distances.
We show that our hybrid quantum k-Means algorithms can be more efficient than the classical version.
arXiv Detail & Related papers (2022-12-13T16:04:16Z) - Compilation of algorithm-specific graph states for quantum circuits [55.90903601048249]
We present a quantum circuit compiler that prepares an algorithm-specific graph state from quantum circuits described in high level languages.
The computation can then be implemented using a series of non-Pauli measurements on this graph state.
arXiv Detail & Related papers (2022-09-15T14:52:31Z) - Variational Quantum and Quantum-Inspired Clustering [0.0]
We present a quantum algorithm for clustering data based on a variational quantum circuit.
The algorithm allows to classify data into many clusters, and can easily be implemented in few-qubit Noisy Intermediate-Scale Quantum (NISQ) devices.
arXiv Detail & Related papers (2022-06-20T17:02:19Z) - Benchmarking Small-Scale Quantum Devices on Computing Graph Edit
Distance [52.77024349608834]
Graph Edit Distance (GED) measures the degree of (dis)similarity between two graphs in terms of the operations needed to make them identical.
In this paper we present a comparative study of two quantum approaches to computing GED.
arXiv Detail & Related papers (2021-11-19T12:35:26Z) - Quantum K-medians Algorithm Using Parallel Euclidean Distance Estimator [0.0]
This paper proposes an efficient quantum k-medians clustering algorithm using the powerful quantum Euclidean estimator algorithm.
The proposed quantum k-medians algorithm has provided an exponential speed up as compared to the classical version of it.
arXiv Detail & Related papers (2020-12-21T06:38:20Z) - Polyadic Quantum Classifier [0.0]
We introduce here a supervised quantum machine learning algorithm for multi-class classification on NISQ architectures.
A parametric quantum circuit is trained to output a specific bit string corresponding to the class of the input datapoint.
We train and test it on an IBMq 5-qubit quantum computer and the algorithm shows good accuracy.
arXiv Detail & Related papers (2020-07-28T08:00:12Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.