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

Applying a Parameterized Quantum Circuit to Anomaly Detection

Jehn‐Ruey Jiang, Jyun-Sian Li

Published Apr 10, 2025• 1 citation
Publisher

Abstract

In this study, a parameterized quantum circuit (PQC) is applied for anomaly detection, a crucial process to identify unusual patterns or outliers in data. PQC is a quantum circuit with trainable parameters linked to quantum gates, which are iteratively optimized by classical optimizers to ensure that the circuit’s output fulfills its objectives. This is analogous to the way of using trainable parameters, such as weights adjusted in classical machine learning and neural network models. We used the amplitude−embedding mechanism with classical data into quantum states of qubits. These states are fed into PQC, which contains strongly entangled layers, and the circuit is trained to determine whether an anomaly exists. As anomaly detection datasets are often imbalanced, resampling techniques, such as random oversampling, the synthetic minority oversampling technique (SMOTE), random undersampling, and Tomek-Link undersampling, are applied to reduce the imbalance. The proposed PQC and various resampling techniques were compared using the public Musk dataset for anomaly detection. Their combination was also compared with the combination of the classical autoencoder and the classical isolation forest model in terms of the F1 score. By analyzing the comparison results, the advantages and disadvantages of PQC for future research studies were determined.

DOI
10.3390/engproc2025092003

Related papers

Quantumboost: Leveraging Parameterized Quantum Circuits for Imbalanced Dataset Oversampling

D. Gowtham Chakravarthy, S. Kannimuthu, P. M. Arunkumar

Imbalanced datasets in machine learning often result in biased models, particularly in classification problems when certain classes are un‎der-represented. Traditional oversampling techniques like Synthetic Minority Over-sampling Technique (SMOTE), although popular, have ‎difficulty producing synthetic samples of high quality when working in high-dimensional spaces or non-linear feature spaces. Existing techniques, such as SMOTE, do not fully account for the inherent complexity of non-linear structures of a minority class's distribution, which can ‎produce negatively biased classifiers with poor generalization and the risk of overfitting to the minority class. This is further complicated by ‎the reliance of traditional oversampling techniques on linear interpolation, which limits the possibilities of generating realistic or diverse and ‎non-redundant synthetic samples. The proposed technique, QGOPQC, describes Quantum Generative Oversampling using Parameterized ‎Quantum Circuits (PQCs). This approach describes using a quantum circuit, utilizing a novel implementation of a PQCs to overcome the non-‎linear problem. The development of synthetic samples of high fidelity using parameterized quantum circuits would better reflect the true data ‎manifold of the generated class, allowing for a better learning process in a quantum training process, and using quantum state encoding, quantum circuit training, and classical optimization to produce diverse samples of synthetic classes while not compromising on information that ‎maintains feature correlations. Demonstrated through a variety of results, the method achieved consistently higher AUC scores, reaching up to ‎‎0.92 compared to SMOTE’s 0.53, especially in high-dimensional scenarios. The proposed process of using QGOPQC has had a related beneficial effect on classifier performance when trained on imbalanced data, allowing for the process of generating non-redundant high-quality ‎samples through a quantum method of sampling‎.

International Journal of Basic and Applied Sciences•Oct 14, 2025•0 citations

Hybrid Quantum - Classical Neural Networks for Enhanced Network Anomaly Detection

Bokka Ramya Satya Priya, Odugu Srinivasa Rao

There is a pressing need for anomaly detection algorithms that can handle large amounts of diverse traffic data due to the quick growth of networked systems and the sophistication of contemporary cyberattacks. Despite the widespread use of conventional machine learning techniques for network intrusion detection, feature representation constraints, dataset imbalance, and the computational expense of scaling to vast problem spaces sometimes restrict their efficacy. In the meantime, new developments in quantum-assisted computation have opened up exciting possibilities for using quantum state changes to improve the feature learning process. Using the NF-UNSWNB15-v2 benchmark, this research presents HybridQCNN, a unique quantum-classical computing framework for binary classification of network traffic.The proposed architecture combines standard preprocessing techniques with an 8-qubit Parameterized Quantum Circuit (PQC) featuring multiple variational layers, where IsingXX and IsingYY entangling operations are applied to encode interfeature correlations, and a subsequent fully connected classical layer handles the final binary decision. A rigorous leakage-free data partitioning protocol was enforced, ensuring that all preprocessing transformations—including feature encoding, normalization, and threshold computation—were derived exclusively from the training subset, thereby preventing any information leakage from held-out partitions during evaluation. Experimental validation on a class-balanced subset of 60,000 traffic records yielded a classification accuracy of 97.33%, an F1-score of 0.9730, and a malicious traffic detection precision of 98.38%. Furthermore, the model achieved an AUC-ROC of 0.9861, reflecting strong class-level discriminability. Despite this performance, the entire model contains only 489 trainable parameters, underscoring the parameter efficiency of hybrid architectures relative to conventional deep learning baselines. These results suggest that integrating variational quantum circuits with classical inference modules provides an effective and scalable solution for network anomaly detection.

•Jan 1, 2026•0 citations

Quantum circuit autoencoders for anomalous image detection

Yedong Jiang

In the NISQ era, exploring quantum approaches capable of addressing real-world data analytics tasks has been a focal point of research. The detection of anomalous images is one of the classic data processing problems that can be considered to tackle using quantum computing. Inspired by the proposal of quantum circuit autoencoders (QCAE), we design a quantum method to tackle image anomaly detection tasks. In this work, we propose a method for encoding an image into a quantum circuit. Then, we employ the QCAE model to detect the anomalous images. Moreover, we create a scoring function to predict whether test data is an outlier. Finally, combining the trained QCAE with the scoring function, we obtain an anomaly detector. We use the handwritten digit image dataset to train detectors under various training setups and validate their performance on a test set. Our method achieves an f1-score of 0.8190 and a recall of 0.8600. The experimental results demonstrate the potential of quantum computing in handling data anomalies in the classical world, encouraging further exploration of QCAE applications in practical problems.

International Conference on Advanced Electronic Materials, Computers and Software Engineering (AEMCSE)•Aug 7, 2024•0 citations

Quantum Anomaly Detection in network traffic using Variational Quantum Classifiers

Mir H M Ilham, Hardique Dasore, Abdulrahman Ababneh +5 more

The increasingly complex cybersecurity landscape requires more advanced network anomaly detection systems. Although, classical machine learning models are known to be effective, they reach computational bottlenecks when processing high-dimensional data. This study investigates the potential of Quantum Machine Learning (QML) for network traffic anomaly detection by evaluating four distinct Variational Quantum Classifier (VQC) architectures. A synthetic network traffic dataset is generated for the evaluations. The VQC models systematically varied feature encoding methods, parameterized ansatz circuits, quantum neural network types, and classical optimizers. Experimental results show that a trade-off exists between circuit expressivity and optimization stability. Deeper circuits (VQC-4) achieved higher accuracy of upto 89.0\%, while simultaneously being sensitive to training conditions. A shallower variant (VQC-1) under performed, although it had consistent and stable optimization curves. Class-dependent biases were also observed such as in VQC-2, where the model struggled to find an effective decision boundary, and produced a large number of false negatives. The best performing model in this study (VQC-3) combined ZFeatureMap with RealAmplitudes ansatz, optimized using ADAM. Comparative analysis against classical machine learning models such as Support Vector Machine and Random Forest reveal a performance gap, where classical models are able to achieve perfect classification performance on the synthetic data. It is concluded that classical algorithms remain dominant in their ability to classify structured data with relatively simple class separations. However, due to the observed potential of certain VQC configurations to learn decision boundaries to classify data, their utility for future applications in noisier, higher-dimensional problems is highlighted.

quant-pharXiv:2610.34635•Oct 27, 2026•0 citations

Fine-Tuned Variational Quantum Classifiers for Cyber Attacks Detection Based on Parameterized Quantum Circuits and Optimizers

Md Abdur Rahman, Mst Shapna Akter, Emily Miller +4 more

Recent investigations into Quantum Machine Learning (QML) techniques have unveiled methodologies that accelerate training in established machine learning models to provide an alternative for capturing complex patterns. This study focuses on implementing a practical QML Algorithm, Variational Quantum Classification (VQC) for cybersecurity dataset so that detecting anomalies can be improved and faster by reducing number of attributes$\log_{2} M$while training the model using Qiskit. Also, we study quantum algorithms to understand how it impacts on cyber datasets to detect anomalies in a improved way as it follows logarithms in the dimensionality reduction of quantum states which opens new horizons to quantum big data applications. Most importantly, we aim to also investigate the impact of various parameterized quantum circuits on VQC using quantum data as quantum states encoded by the cyber security dataset, NSL-KDD. In this research, we train VQC with various structures and parameters of quantum circuits as well as optimizers to adjust parameters of quantum circuits (ansatz) to minimize the objective function values so as to improve accuracy of the model in which quantum circuit, EfficientSU2, along with optimizer, COBYLA, outperforms the accuracy than other circuits and optimizers which shows great potential for improving cybersecurity systems. The research could effectively bridge in the gap between theory and implementation based quantum machine learning on cybersecurity systems.

IEEE Annual International Computer Software and Applications Conference (COMPSAC)•Jul 2, 2024•18 citations

Towards Personalized Quantum Federated Learning for Anomaly Detection

Ratun Rahman, Sina Shaham, Dinh C. Nguyen

Anomaly detection has a significant impact on applications such as video surveillance, medical diagnostics, and industrial monitoring, where anomalies frequently depend on context and anomaly-labeled data are limited. Quantum federated learning (QFL) overcomes these concerns by distributing model training among several quantum clients, consequently eliminating the requirement for centralized quantum storage and processing. However, in real-life quantum networks, clients frequently differ in terms of hardware capabilities, circuit designs, noise levels, and how classical data is encoded or preprocessed into quantum states. These differences create inherent heterogeneity across clients - not just in their data distributions, but also in their quantum processing behaviors. As a result, training a single global model becomes ineffective, especially when clients handle imbalanced or non-identically distributed (non-IID) data. To address this, we propose a new framework called personalized quantum federated learning (PQFL) for anomaly detection. PQFL enhances local model training at quantum clients using parameterized quantum circuits and classical optimizers, while introducing a quantum-centric personalization strategy that adapts each client's model to its own hardware characteristics and data representation. Extensive experiments show that PQFL significantly improves anomaly detection accuracy under diverse and realistic conditions. Compared to state-of-the-art methods, PQFL reduces false errors by up to 23%, and achieves gains of 24.2% in AUROC and 20.5% in AUPR, highlighting its effectiveness and scalability in practical quantum federated settings.

cs.LGCross-listedarXiv:2511.07471•Nov 11, 2025•0 citations
In this study, a parameterized quantum circuit (PQC) is applied for anomaly detection, a crucial process to identify unusual patterns or outliers in data. PQC is a quantum circuit with trainable parameters linked to quantum gates, which are iteratively optimized by classical optimizers to ensure that the circuit’s output fulfills its objectives. This is analogous to the way of using trainable parameters, such as weights adjusted in classical machine learning and neural network models. We used the amplitude−embedding mechanism with classical data into quantum states of qubits. These states are fed into PQC, which contains strongly entangled layers, and the circuit is trained to determine whether an anomaly exists. As anomaly detection datasets are often imbalanced, resampling techniques, such as random oversampling, the synthetic minority oversampling technique (SMOTE), random undersampling, and Tomek-Link undersampling, are applied to reduce the imbalance. The proposed PQC and various resampling techniques were compared using the public Musk dataset for anomaly detection. Their combination was also compared with the combination of the classical autoencoder and the classical isolation forest model in terms of the F1 score. By analyzing the comparison results, the advantages and disadvantages of PQC for future research studies were determined.
Imbalanced datasets in machine learning often result in biased models, particularly in classification problems when certain classes are un‎der-represented. Traditional oversampling techniques like Synthetic Minority Over-sampling Technique (SMOTE), although popular, have ‎difficulty producing synthetic samples of high quality when working in high-dimensional spaces or non-linear feature spaces. Existing techniques, such as SMOTE, do not fully account for the inherent complexity of non-linear structures of a minority class's distribution, which can ‎produce negatively biased classifiers with poor generalization and the risk of overfitting to the minority class. This is further complicated by ‎the reliance of traditional oversampling techniques on linear interpolation, which limits the possibilities of generating realistic or diverse and ‎non-redundant synthetic samples. The proposed technique, QGOPQC, describes Quantum Generative Oversampling using Parameterized ‎Quantum Circuits (PQCs). This approach describes using a quantum circuit, utilizing a novel implementation of a PQCs to overcome the non-‎linear problem. The development of synthetic samples of high fidelity using parameterized quantum circuits would better reflect the true data ‎manifold of the generated class, allowing for a better learning process in a quantum training process, and using quantum state encoding, quantum circuit training, and classical optimization to produce diverse samples of synthetic classes while not compromising on information that ‎maintains feature correlations. Demonstrated through a variety of results, the method achieved consistently higher AUC scores, reaching up to ‎‎0.92 compared to SMOTE’s 0.53, especially in high-dimensional scenarios. The proposed process of using QGOPQC has had a related beneficial effect on classifier performance when trained on imbalanced data, allowing for the process of generating non-redundant high-quality ‎samples through a quantum method of sampling‎.
There is a pressing need for anomaly detection algorithms that can handle large amounts of diverse traffic data due to the quick growth of networked systems and the sophistication of contemporary cyberattacks. Despite the widespread use of conventional machine learning techniques for network intrusion detection, feature representation constraints, dataset imbalance, and the computational expense of scaling to vast problem spaces sometimes restrict their efficacy. In the meantime, new developments in quantum-assisted computation have opened up exciting possibilities for using quantum state changes to improve the feature learning process. Using the NF-UNSWNB15-v2 benchmark, this research presents HybridQCNN, a unique quantum-classical computing framework for binary classification of network traffic.The proposed architecture combines standard preprocessing techniques with an 8-qubit Parameterized Quantum Circuit (PQC) featuring multiple variational layers, where IsingXX and IsingYY entangling operations are applied to encode interfeature correlations, and a subsequent fully connected classical layer handles the final binary decision. A rigorous leakage-free data partitioning protocol was enforced, ensuring that all preprocessing transformations—including feature encoding, normalization, and threshold computation—were derived exclusively from the training subset, thereby preventing any information leakage from held-out partitions during evaluation. Experimental validation on a class-balanced subset of 60,000 traffic records yielded a classification accuracy of 97.33%, an F1-score of 0.9730, and a malicious traffic detection precision of 98.38%. Furthermore, the model achieved an AUC-ROC of 0.9861, reflecting strong class-level discriminability. Despite this performance, the entire model contains only 489 trainable parameters, underscoring the parameter efficiency of hybrid architectures relative to conventional deep learning baselines. These results suggest that integrating variational quantum circuits with classical inference modules provides an effective and scalable solution for network anomaly detection.
In the NISQ era, exploring quantum approaches capable of addressing real-world data analytics tasks has been a focal point of research. The detection of anomalous images is one of the classic data processing problems that can be considered to tackle using quantum computing. Inspired by the proposal of quantum circuit autoencoders (QCAE), we design a quantum method to tackle image anomaly detection tasks. In this work, we propose a method for encoding an image into a quantum circuit. Then, we employ the QCAE model to detect the anomalous images. Moreover, we create a scoring function to predict whether test data is an outlier. Finally, combining the trained QCAE with the scoring function, we obtain an anomaly detector. We use the handwritten digit image dataset to train detectors under various training setups and validate their performance on a test set. Our method achieves an f1-score of 0.8190 and a recall of 0.8600. The experimental results demonstrate the potential of quantum computing in handling data anomalies in the classical world, encouraging further exploration of QCAE applications in practical problems.
The increasingly complex cybersecurity landscape requires more advanced network anomaly detection systems. Although, classical machine learning models are known to be effective, they reach computational bottlenecks when processing high-dimensional data. This study investigates the potential of Quantum Machine Learning (QML) for network traffic anomaly detection by evaluating four distinct Variational Quantum Classifier (VQC) architectures. A synthetic network traffic dataset is generated for the evaluations. The VQC models systematically varied feature encoding methods, parameterized ansatz circuits, quantum neural network types, and classical optimizers. Experimental results show that a trade-off exists between circuit expressivity and optimization stability. Deeper circuits (VQC-4) achieved higher accuracy of upto 89.0\%, while simultaneously being sensitive to training conditions. A shallower variant (VQC-1) under performed, although it had consistent and stable optimization curves. Class-dependent biases were also observed such as in VQC-2, where the model struggled to find an effective decision boundary, and produced a large number of false negatives. The best performing model in this study (VQC-3) combined ZFeatureMap with RealAmplitudes ansatz, optimized using ADAM. Comparative analysis against classical machine learning models such as Support Vector Machine and Random Forest reveal a performance gap, where classical models are able to achieve perfect classification performance on the synthetic data. It is concluded that classical algorithms remain dominant in their ability to classify structured data with relatively simple class separations. However, due to the observed potential of certain VQC configurations to learn decision boundaries to classify data, their utility for future applications in noisier, higher-dimensional problems is highlighted.
Recent investigations into Quantum Machine Learning (QML) techniques have unveiled methodologies that accelerate training in established machine learning models to provide an alternative for capturing complex patterns. This study focuses on implementing a practical QML Algorithm, Variational Quantum Classification (VQC) for cybersecurity dataset so that detecting anomalies can be improved and faster by reducing number of attributeslog⁡2M\log_{2} Mlog2​Mwhile training the model using Qiskit. Also, we study quantum algorithms to understand how it impacts on cyber datasets to detect anomalies in a improved way as it follows logarithms in the dimensionality reduction of quantum states which opens new horizons to quantum big data applications. Most importantly, we aim to also investigate the impact of various parameterized quantum circuits on VQC using quantum data as quantum states encoded by the cyber security dataset, NSL-KDD. In this research, we train VQC with various structures and parameters of quantum circuits as well as optimizers to adjust parameters of quantum circuits (ansatz) to minimize the objective function values so as to improve accuracy of the model in which quantum circuit, EfficientSU2, along with optimizer, COBYLA, outperforms the accuracy than other circuits and optimizers which shows great potential for improving cybersecurity systems. The research could effectively bridge in the gap between theory and implementation based quantum machine learning on cybersecurity systems.
Anomaly detection has a significant impact on applications such as video surveillance, medical diagnostics, and industrial monitoring, where anomalies frequently depend on context and anomaly-labeled data are limited. Quantum federated learning (QFL) overcomes these concerns by distributing model training among several quantum clients, consequently eliminating the requirement for centralized quantum storage and processing. However, in real-life quantum networks, clients frequently differ in terms of hardware capabilities, circuit designs, noise levels, and how classical data is encoded or preprocessed into quantum states. These differences create inherent heterogeneity across clients - not just in their data distributions, but also in their quantum processing behaviors. As a result, training a single global model becomes ineffective, especially when clients handle imbalanced or non-identically distributed (non-IID) data. To address this, we propose a new framework called personalized quantum federated learning (PQFL) for anomaly detection. PQFL enhances local model training at quantum clients using parameterized quantum circuits and classical optimizers, while introducing a quantum-centric personalization strategy that adapts each client's model to its own hardware characteristics and data representation. Extensive experiments show that PQFL significantly improves anomaly detection accuracy under diverse and realistic conditions. Compared to state-of-the-art methods, PQFL reduces false errors by up to 23%, and achieves gains of 24.2% in AUROC and 20.5% in AUPR, highlighting its effectiveness and scalability in practical quantum federated settings.