Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Log inSign up
Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Blog
Job Board
Q3AS

© 2026 Aqora Quantum S.A.S.

TermsPrivacyLegal Notice

arXiv:2509.15705

Triplet Loss Based Quantum Encoding for Class Separability

Marco Mordacci, Mahul Pandey, Santini, Paolo, Michele Amoretti

Published Sep 19, 2025• 0 citations
arXivHTMLPDF

Abstract

An efficient and data-driven encoding scheme is proposed to enhance the performance of variational quantum classifiers. This encoding is specially designed for complex datasets like images and seeks to help the classification task by producing input states that form well-separated clusters in the Hilbert space according to their classification labels. The encoding circuit is trained using a triplet loss function inspired by classical facial recognition algorithms, and class separability is measured via average trace distances between the encoded density matrices. Benchmark tests performed on various binary classification tasks on MNIST and MedMNIST datasets demonstrate considerable improvement over amplitude encoding with the same VQC structure while requiring a much lower circuit depth.

DOI
10.48550/arxiv.2509.15705

Related papers

Empowering complex-valued data classification with the variational quantum classifier

Jianing Chen, Yan Li

The evolution of quantum computers has encouraged research into how to handle tasks with significant computation demands in the past few years. Due to the unique advantages of quantum parallelism and entanglement, various types of quantum machine learning (QML) methods, especially variational quantum classifiers (VQCs), have attracted the attention of many researchers and have been developed and evaluated in numerous scenarios. Nevertheless, most of the research on VQCs is still in its early stages. For instance, as a consequence of the mathematical constraints imposed by the properties of quantum states, the majority of research has not fully taken into account the impact of data formats on the performance of VQCs. In this paper, considering a significant number of data in the real world exist in the form of complex numbers, i.e., phasor data in power systems and the result of Fourier transform on image processing, we develop two categories of data encoding methods, including coupling data encoding and splitting data encoding. This paper features the coupling data encoding method to encode complex-valued data in a way of amplitude encoding. By leveraging the property of quantum states living in a complex Hilbert space, the complex-valued data is embedded into the amplitude of quantum states to comprehensively characterize complex-valued information. Optimizers will be utilized to iteratively tune a parameterized ansatz, with the aim of minimizing the value of loss functions defined with respect to the specific classification task. In addition, distinct factors in VQCs have been explored in detail to investigate the performance of VQCs, including data encoding methods, loss functions, and optimizers. The experimental result shows that the proposed data encoding method outperforms other typical encoding methods on a given classification task. Moreover, different loss functions are tested, and the capability of finding the minimum value is evaluated for gradient-free and gradient-based optimizers, which provides valuable insights and guidelines for practical implementations.

Frontiers in Quantum Science and Technology•Feb 7, 2024•6 citations

Quantum Binary Classification (Student Abstract)

CARLA VANESSA DA SILVA, Ana Aguiar, Inês Dutra

We implement a quantum binary classifier where given a dataset of pairs of training inputs and target outputs our goal is to predict the output of a new input. The script is based in a hybrid scheme inspired in an existing PennyLane's variational classifier and to encode the classical data we resort to PennyLane's amplitude encoding embedding template. We use the quantum binary classifier applied to the well known Iris dataset and to a car traffic dataset. Our results show that the quantum approach is capable of performing the task using as few as 2 qubits. Accuracies are similar to other quantum machine learning research studies, and as good as the ones produced by classical classifiers.

Proceedings of the AAAI Conference on Artificial Intelligence•May 18, 2021•1 citation

A quantum computing approach for brain tumor image classification using amplitude encoding technique

K. P. Maheswari, Kalaiselvi Thiruvenkadam, Sriramakrishnan Pathmanaban

Brain tumor image classification is an essential pre-processing task for tumor diagnosis and treatment planning. In medical imaging, quantum computing analyse medical imaging data, offering potential speedups and new representations compared to classical methods. The brain images are transformed through resizing and normalization to a uniform 32 × 32 × 3 resolution. Subsequently, these processed images are converted into vectors to enable encoding into quantum states. The feature set is reduced using Principal Component Analysis (PCA) to ensure compatibility with the restricted qubit count in the quantum circuits. Through amplitude encoding, these vectors are mapped to quantum states, allowing for a compact and efficient data representation within the quantum domain. A parameterized Variational Quantum Circuit(VQC), consisting of entangling gates and trainable rotations, processes the encoded quantum states to learn features that can effectively discriminate between classes. The loss is calculated from the measured expectation values of Pauli-Z observables and optimized using classical gradient descent, where the objective function is the mean squared error. The trained quantum model is designed for multi-class classification, specifically distinguishing between meningioma, glioma tumors, pituitary tumors, and the absence of a tumor. The outcome of this proposed work demonstrates the VQC’s advantage over classical baselines, including Random Forest, and Support Vector Machine (SVM) and Multi-Layer Perceptron (MLP). The VQC achieved the highest accuracy of 95% and the best robustness (Specificity 0.983). Crucially, the VQC accomplished this using only 24 trainable parameters, showcasing a significant increase in parameter efficiency compared to the classical models. The novelty of this work is the quantitative demonstration that a custom-designed, resource-efficient quantum model can outperform established classical deep learning methods in both performance and efficiency for complex medical image classification. The VQC provides a 3.5-fold gain in parameter efficiency, achieving the highest accuracy of 95% using only 24 trainable parameters. This efficiency is enabled by the novel application of amplitude encoding to the medical images, which compresses 16 features into just 4 qubits. The VQC demonstrates robustness vital for medical diagnostics, achieving a Specificity of 0.983. Its shallow architecture is also NISQ-friendly and remains stable by avoiding the Barren Plateau issue (Gradient Norm: 0.11), validating the path toward quantum advantage in diagnostic tools. The results of this approach highlight the potential amplitude encoding in quantum machine learning, as a feasible and effective method for classifying real-world medical images. This work also opens avenues for future hybrid quantum-classical diagnostic systems that could utilize richer quantum state encodings for significant gains in computational efficiency and accuracy.

Discover Quantum Science•Mar 3, 2026•0 citations

Tensor-Based Binary Graph Encoding for Variational Quantum Classifiers

Shiwen An, Konstantinos Slavakis

Quantum computing has been a prominent research area for decades, inspiring transformative fields such as quantum simulation, quantum teleportation, and quantum machine learning (QML), which are undergoing rapid development. Within QML, hybrid classical-quantum algorithms like Quantum Neural Networks (QNNs) and Variational Quantum Classifiers (VQCs) have shown promise in leveraging quantum circuits and classical optimizers to classify classical data efficiently. Simultaneously, classical machine learning has made significant strides in graph classification, employing Graph Neural Networks (GNNs) to analyze systems ranging from large-scale structures like the Large Hadron Collider to molecular and biological systems like proteins and DNA. Combining the advancements in quantum computing and graph classification presents a unique opportunity to develop quantum algorithms capable of extracting features from graphs and performing their classification effectively. In this paper, we propose a novel quantum encoding framework for graph classification using VQCs. Unlike existing approaches such as PCA-VQC, which rely on dimensionality reduction techniques like Principal Component Analysis (PCA) and may lead to information loss, our method preserves the integrity of graph data. Furthermore, our encoding approach is optimized for Noise-Intermediate Scale Quantum (NISQ) devices, requiring a limited number of qubits while achieving comparable or superior classification performance to PCA-VQC. By constructing slightly more complex circuits tailored for graph encoding, we demonstrate that VQCs can effectively classify graphs within the constraints of current quantum hardware.

arXiv:2501.14185•International Conference on Quantum Communications, Networking, and Computing (QCNC)•Mar 31, 2025•1 citation

MORE: Measurement and Correlation Based Variational Quantum Circuit for Multi-Classification

Jindi Wu, Tianjie Hu, Qun Li

Quantum computing has shown considerable promise for compute-intensive tasks in recent years. For instance, classification tasks based on quantum neural networks (QNN) have garnered significant interest from researchers and have been evaluated in various scenarios. However, the majority of quantum classifiers are currently limited to binary classification tasks due to either constrained quantum computing resources or the need for intensive classical post-processing. In this paper, we propose an efficient quantum multi-classifier called MORE, which stands for measurement and correlation based variational quantum multi-classifier. MORE adopts the same variational ansatz as binary classifiers while performing multi-classification by fully utilizing the quantum information of a single readout qubit. To extract the complete information from the readout qubit, we select three observables that form the basis of a two-dimensional Hilbert space. We then use the quantum state tomography technique to reconstruct the readout state from the measurement results. Afterward, we explore the correlation between classes to determine the quantum labels for classes using the variational quantum clustering approach. Next, quantum label-based supervised learning is performed to identify the mapping between the input data and their corresponding quantum labels. Finally, the predicted label is determined by its closest quantum label when using the classifier. We implement this approach using the Qiskit Python library and evaluate it through extensive experiments on both noise-free and noisy quantum systems. Our evaluation results demonstrate that MORE, despite using a simple ansatz and limited quantum resources, achieves advanced performance.

arXiv:2307.11875•IEEE International Conference on Quantum Computing and Engineering (QCE)•Sep 17, 2023•12 citations

Variational Quantum Neural Networks (VQNNS) in Image Classification

Meghashrita Das, Tirupati Bolisetti

Quantum machine learning has established as an interdisciplinary field to overcome limitations of classical machine learning and neural networks. This is a field of research which can prove that quantum computers are able to solve problems with complex correlations between inputs that can be hard for classical computers. This suggests that learning models made on quantum computers may be more powerful for applications, potentially faster computation and better generalization on less data. The objective of this paper is to investigate how training of quantum neural network (QNNs) can be done using quantum optimization algorithms for improving the performance and time complexity of QNNs. A classical neural network can be partially quantized to create a hybrid quantum-classical neural network which is used mainly in classification and image recognition. In this paper, a QNN structure is made where a variational parameterized circuit is incorporated as an input layer named as Variational Quantum Neural Network (VQNNs). We encode the cost function of QNNs onto relative phases of a superposition state in the Hilbert space of the network parameters. The parameters are tuned with an iterative quantum approximate optimisation (QAOA) mixer and problem hamiltonians. VQNNs is experimented with MNIST digit recognition (less complex) and crack image classification datasets (more complex) which converges the computation in lesser time than QNN with decent training accuracy.

arXiv:2303.05860•Mar 10, 2023•19 citations
An efficient and data-driven encoding scheme is proposed to enhance the performance of variational quantum classifiers. This encoding is specially designed for complex datasets like images and seeks to help the classification task by producing input states that form well-separated clusters in the Hilbert space according to their classification labels. The encoding circuit is trained using a triplet loss function inspired by classical facial recognition algorithms, and class separability is measured via average trace distances between the encoded density matrices. Benchmark tests performed on various binary classification tasks on MNIST and MedMNIST datasets demonstrate considerable improvement over amplitude encoding with the same VQC structure while requiring a much lower circuit depth.
The evolution of quantum computers has encouraged research into how to handle tasks with significant computation demands in the past few years. Due to the unique advantages of quantum parallelism and entanglement, various types of quantum machine learning (QML) methods, especially variational quantum classifiers (VQCs), have attracted the attention of many researchers and have been developed and evaluated in numerous scenarios. Nevertheless, most of the research on VQCs is still in its early stages. For instance, as a consequence of the mathematical constraints imposed by the properties of quantum states, the majority of research has not fully taken into account the impact of data formats on the performance of VQCs. In this paper, considering a significant number of data in the real world exist in the form of complex numbers, i.e., phasor data in power systems and the result of Fourier transform on image processing, we develop two categories of data encoding methods, including coupling data encoding and splitting data encoding. This paper features the coupling data encoding method to encode complex-valued data in a way of amplitude encoding. By leveraging the property of quantum states living in a complex Hilbert space, the complex-valued data is embedded into the amplitude of quantum states to comprehensively characterize complex-valued information. Optimizers will be utilized to iteratively tune a parameterized ansatz, with the aim of minimizing the value of loss functions defined with respect to the specific classification task. In addition, distinct factors in VQCs have been explored in detail to investigate the performance of VQCs, including data encoding methods, loss functions, and optimizers. The experimental result shows that the proposed data encoding method outperforms other typical encoding methods on a given classification task. Moreover, different loss functions are tested, and the capability of finding the minimum value is evaluated for gradient-free and gradient-based optimizers, which provides valuable insights and guidelines for practical implementations.
We implement a quantum binary classifier where given a dataset of pairs of training inputs and target outputs our goal is to predict the output of a new input. The script is based in a hybrid scheme inspired in an existing PennyLane's variational classifier and to encode the classical data we resort to PennyLane's amplitude encoding embedding template. We use the quantum binary classifier applied to the well known Iris dataset and to a car traffic dataset. Our results show that the quantum approach is capable of performing the task using as few as 2 qubits. Accuracies are similar to other quantum machine learning research studies, and as good as the ones produced by classical classifiers.
Brain tumor image classification is an essential pre-processing task for tumor diagnosis and treatment planning. In medical imaging, quantum computing analyse medical imaging data, offering potential speedups and new representations compared to classical methods. The brain images are transformed through resizing and normalization to a uniform 32 × 32 × 3 resolution. Subsequently, these processed images are converted into vectors to enable encoding into quantum states. The feature set is reduced using Principal Component Analysis (PCA) to ensure compatibility with the restricted qubit count in the quantum circuits. Through amplitude encoding, these vectors are mapped to quantum states, allowing for a compact and efficient data representation within the quantum domain. A parameterized Variational Quantum Circuit(VQC), consisting of entangling gates and trainable rotations, processes the encoded quantum states to learn features that can effectively discriminate between classes. The loss is calculated from the measured expectation values of Pauli-Z observables and optimized using classical gradient descent, where the objective function is the mean squared error. The trained quantum model is designed for multi-class classification, specifically distinguishing between meningioma, glioma tumors, pituitary tumors, and the absence of a tumor. The outcome of this proposed work demonstrates the VQC’s advantage over classical baselines, including Random Forest, and Support Vector Machine (SVM) and Multi-Layer Perceptron (MLP). The VQC achieved the highest accuracy of 95% and the best robustness (Specificity 0.983). Crucially, the VQC accomplished this using only 24 trainable parameters, showcasing a significant increase in parameter efficiency compared to the classical models. The novelty of this work is the quantitative demonstration that a custom-designed, resource-efficient quantum model can outperform established classical deep learning methods in both performance and efficiency for complex medical image classification. The VQC provides a 3.5-fold gain in parameter efficiency, achieving the highest accuracy of 95% using only 24 trainable parameters. This efficiency is enabled by the novel application of amplitude encoding to the medical images, which compresses 16 features into just 4 qubits. The VQC demonstrates robustness vital for medical diagnostics, achieving a Specificity of 0.983. Its shallow architecture is also NISQ-friendly and remains stable by avoiding the Barren Plateau issue (Gradient Norm: 0.11), validating the path toward quantum advantage in diagnostic tools. The results of this approach highlight the potential amplitude encoding in quantum machine learning, as a feasible and effective method for classifying real-world medical images. This work also opens avenues for future hybrid quantum-classical diagnostic systems that could utilize richer quantum state encodings for significant gains in computational efficiency and accuracy.
Quantum computing has been a prominent research area for decades, inspiring transformative fields such as quantum simulation, quantum teleportation, and quantum machine learning (QML), which are undergoing rapid development. Within QML, hybrid classical-quantum algorithms like Quantum Neural Networks (QNNs) and Variational Quantum Classifiers (VQCs) have shown promise in leveraging quantum circuits and classical optimizers to classify classical data efficiently. Simultaneously, classical machine learning has made significant strides in graph classification, employing Graph Neural Networks (GNNs) to analyze systems ranging from large-scale structures like the Large Hadron Collider to molecular and biological systems like proteins and DNA. Combining the advancements in quantum computing and graph classification presents a unique opportunity to develop quantum algorithms capable of extracting features from graphs and performing their classification effectively. In this paper, we propose a novel quantum encoding framework for graph classification using VQCs. Unlike existing approaches such as PCA-VQC, which rely on dimensionality reduction techniques like Principal Component Analysis (PCA) and may lead to information loss, our method preserves the integrity of graph data. Furthermore, our encoding approach is optimized for Noise-Intermediate Scale Quantum (NISQ) devices, requiring a limited number of qubits while achieving comparable or superior classification performance to PCA-VQC. By constructing slightly more complex circuits tailored for graph encoding, we demonstrate that VQCs can effectively classify graphs within the constraints of current quantum hardware.
Quantum computing has shown considerable promise for compute-intensive tasks in recent years. For instance, classification tasks based on quantum neural networks (QNN) have garnered significant interest from researchers and have been evaluated in various scenarios. However, the majority of quantum classifiers are currently limited to binary classification tasks due to either constrained quantum computing resources or the need for intensive classical post-processing. In this paper, we propose an efficient quantum multi-classifier called MORE, which stands for measurement and correlation based variational quantum multi-classifier. MORE adopts the same variational ansatz as binary classifiers while performing multi-classification by fully utilizing the quantum information of a single readout qubit. To extract the complete information from the readout qubit, we select three observables that form the basis of a two-dimensional Hilbert space. We then use the quantum state tomography technique to reconstruct the readout state from the measurement results. Afterward, we explore the correlation between classes to determine the quantum labels for classes using the variational quantum clustering approach. Next, quantum label-based supervised learning is performed to identify the mapping between the input data and their corresponding quantum labels. Finally, the predicted label is determined by its closest quantum label when using the classifier. We implement this approach using the Qiskit Python library and evaluate it through extensive experiments on both noise-free and noisy quantum systems. Our evaluation results demonstrate that MORE, despite using a simple ansatz and limited quantum resources, achieves advanced performance.
Quantum machine learning has established as an interdisciplinary field to overcome limitations of classical machine learning and neural networks. This is a field of research which can prove that quantum computers are able to solve problems with complex correlations between inputs that can be hard for classical computers. This suggests that learning models made on quantum computers may be more powerful for applications, potentially faster computation and better generalization on less data. The objective of this paper is to investigate how training of quantum neural network (QNNs) can be done using quantum optimization algorithms for improving the performance and time complexity of QNNs. A classical neural network can be partially quantized to create a hybrid quantum-classical neural network which is used mainly in classification and image recognition. In this paper, a QNN structure is made where a variational parameterized circuit is incorporated as an input layer named as Variational Quantum Neural Network (VQNNs). We encode the cost function of QNNs onto relative phases of a superposition state in the Hilbert space of the network parameters. The parameters are tuned with an iterative quantum approximate optimisation (QAOA) mixer and problem hamiltonians. VQNNs is experimented with MNIST digit recognition (less complex) and crack image classification datasets (more complex) which converges the computation in lesser time than QNN with decent training accuracy.