Intrusion Detection Systems (IDS) play a fundamental role in safeguarding digital infrastructures against cyber threats. Quantum Machine Learning (QML) presents a promising frontier in this domain, offering potential computational speedups and improved management of complex datasets. However, its practical deployment is currently limited by the constraints of Noisy Intermediate-Scale Quantum (NISQ) devices. This work explores the application of various QML approaches, specifically Quantum Support Vector Classifiers (QSVC), Variational Quantum Classifiers (VQC), and hybrid quantum-classical neural networks for anomaly detection tasks. The models were fine-tuned and benchmarked using the ToN_IoT dataset, with performance assessed on IBM's noisy quantum simulators to evaluate their behavior under realistic noise conditions. Results indicate that the Pegasos-QSVC model outperformed others, reaching an accuracy of 93.05% and an F1 score of 93.73%. Through a comparative analysis of different circuit architectures, this study identifies strategies to improve the robustness of QML systems, emphasizing their emerging potential in cybersecurity scenarios.
Intrusion Detection Systems (IDS) play a fundamental role in safeguarding digital infrastructures against cyber threats. Quantum Machine Learning (QML) presents a promising frontier in this domain, offering potential computational speedups and improved management of complex datasets. However, its practical deployment is currently limited by the constraints of Noisy Intermediate-Scale Quantum (NISQ) devices. This work explores the application of various QML approaches, specifically Quantum Support Vector Classifiers (QSVC), Variational Quantum Classifiers (VQC), and hybrid quantum-classical neural networks for anomaly detection tasks. The models were fine-tuned and benchmarked using the ToN_IoT dataset, with performance assessed on IBM's noisy quantum simulators to evaluate their behavior under realistic noise conditions. Results indicate that the Pegasos-QSVC model outperformed others, reaching an accuracy of 93.05% and an F1 score of 93.73%. Through a comparative analysis of different circuit architectures, this study identifies strategies to improve the robustness of QML systems, emphasizing their emerging potential in cybersecurity scenarios.
Intrusion detection systems (IDS) are essential for identifying cyber threats in complex digital environments. Machine learning (ML) is widely used to improve IDS by detecting anomalies, but classical ML methods often struggle with high-dimensional data and evolving threats. Quantum machine learning (QML) has been proposed as a potential paradigm to overcome some of these limitations, but is constrained by noisy intermediate-scale quantum (NISQ) challenges, affecting quality. This study systematically evaluates three QML models, Pegasos Quantum Support Vector Classifier (QSVC), Variational Quantum Classifier (VQC), and a Hybrid Quantum–Classical Neural Network (HQNN), for network anomaly detection. The models were optimized and tested on the ToN_IoT and NSL-KDD datasets using IBM quantum simulators under both ideal and noisy conditions. Performance was analyzed through the F1-score distribution as a function of circuit complexity, revealing how entanglement and noise affect robustness across different backends. Comparisons with classical models contextualize the current maturity of QML for cybersecurity, while computational time was used as an indicator of model complexity to explore accuracy–efficiency trade-offs. Among all configurations, Pegasos-QSVC achieved the best results, with 94.60% accuracy and an F1-score of 94.13%. The findings provide practical guidelines for designing noise-resilient QML models and highlight their potential for reliable intrusion detection under realistic quantum conditions.
Intrusion Detection Systems (IDSs) are a cornerstone of modern cybersecurity; however, their performance is increasingly constrained by high-dimensional network traffic and the scalability limitations of classical machine learning approaches. Quantum Machine Learning (QML) has recently emerged as a promising paradigm by leveraging quantum feature spaces and hybrid quantum–classical optimization. In this work, we present a unified and reproducible benchmarking framework for QML-based intrusion detection under realistic Noisy Intermediate-Scale Quantum (NISQ) constraints. The proposed framework integrates hybrid Quantum Neural Networks (QNNs) and Quantum Support Vector Machines (QSVMs) within a consistent experimental pipeline, enabling a systematic comparison of quantum models, embedding strategies, and dimensionality reduction techniques. Experiments are conducted on the NSL-KDD benchmark dataset for both binary (normal versus attack) and multiclass intrusion detection tasks. Multiple quantum embedding strategies, including angle, amplitude, and Instantaneous Quantum Polynomial (IQP) embeddings, are evaluated in conjunction with PCA-based dimensionality reduction to analyze trade-offs between expressivity, circuit complexity, and computational cost. The proposed models are benchmarked against strong classical baselines under identical preprocessing and evaluation conditions. The results demonstrate that QNN- and QSVM-based IDS models achieve competitive and, in several scenarios, superior performance compared to classical approaches, particularly in multiclass settings characterized by nonlinear and imbalanced data distributions. In addition, we provide an in-depth analysis of scalability limitations, training complexity, and NISQ feasibility, highlighting practical considerations for real-world deployment. To ensure full reproducibility, all implementation details, datasets, and experimental configurations are publicly available at: https://github.com/raidanis/QML-IDS-NSLKDD. These findings position hybrid QML as a promising complementary paradigm for next-generation intrusion detection systems, particularly in low-dimensional and high-complexity feature spaces.
The escalating threat and impact of network-based attacks necessitate innovative intrusion detection systems. Machine learning has shown promise, with recent strides in Quantum Machine Learning (QML) offering new avenues. However, the potential of quantum computing is tempered by challenges in current noisy intermediate-scale quantum (NISQ) era machines. In this study, we explore Quantum Neural Networks (QNNs) for intrusion detection, optimizing their performance within current quantum computing limitations. Our approach includes efficient classical feature encoding, QNN classifier selection, and performance tuning leveraging current quantum computational power. This study culminates in an optimized multi-layered QNN architecture for network intrusion detection. A small version of the proposed architecture was implemented on IonQ's Aria-1 quantum computer, achieving a notable 0.86 F1 score using the NF-UNSW-NB15 dataset. Additionally, we introduce a novel metric, certainty factor, laying the foundation for future integration of uncertainty measures in quantum classification outputs. Moreover, this factor is used to predict the noise susceptibility of our quantum binary classification system.
Intrusion Detection Systems (IDS) rely on intelligent learning techniques to identify complex and evolving attack patterns within network traffic. This paper presents a comparative study of Support Vector Machines (SVM), Quantum Support Vector Machines (QSVM), and Variational Quantum Classifiers (VQC) in the context of intrusion detection. A unified evaluation framework is employed to compare these models based on feature representation, computational complexity, scalability, hardware requirements, and deployment feasibility. The analysis examines how QSVM and VQC utilize quantum feature mapping and parameterized quantum circuits to improve data representation capabilities. Nevertheless, their practical adoption remains limited by the constraints of current Noisy Intermediate-Scale Quantum (NISQ) devices, including hardware noise, restricted qubit resources, and scalability limitations. Conversely, SVM continues to be a dependable and scalable solution for present-day intrusion detection systems. The study further identifies the absence of a standardized framework for evaluating classical and quantum approaches as an important research gap. Overall, the findings suggest that hybrid quantum–classical learning frameworks provide the most realistic path toward adopting quantum machine learning for future cybersecurity solutions
In cybersecurity, protecting sensitive data from malicious attacks is of paramount importance. Classical machine learning algorithms have shown limitations in this domain due to their inability to handle complex, highly dynamic, and adversarial attack scenarios. Quantum machine learning (QML) algorithms, with their enhanced processing capacity and robustness against such attacks, offer a promising alternative to address these shortcomings. Consequently, QML can significantly improve the detection and mitigation of sophisticated and evolving threats. This study explores the application of QML algorithms, specifically the quantum support vector machine (QSVM) and a hybrid quantum neural network (QNN) and QSVM architecture (QSVM-QNN), on two real-world cybersecurity datasets: APA-DDoS and CIC-IoT2022. Initially, different qubit counts and encoding techniques are investigated to assess the effectiveness of the swap test and UU† methods for inner product calculation, which is later employed in the QSVM algorithm. Subsequently, the performance of the proposed QSVM and QSVM-QNN models is evaluated and compared against classical counterparts across varying numbers of qubits and encoding schemes. The results show that the proposed QSVM model achieved accuracies of 1.000 and 0.985, while the QSVM-QNN model reached accuracies of 0.970 and 1.000, respectively, on the two datasets, demonstrating strong performance and surpassing several classical models. Furthermore, to assess robustness, the proposed algorithms were tested under various noise models, highlighting their capability to provide effective solutions for cybersecurity challenges in realistic quantum noisy environments.
Under tight feature and compute budgets, classical threat detection pipelines often degrade on near-decision-boundary events. Small quantum processors are now available, but existing work inadequately shows whether quantum components improve end-to-end threat detection under the above resource constrained conditions. This paper tries to address this gap with a hybrid architecture that uses a compact multilayer perceptron layer to compress the information in data and then routes the processed features to a few qubit quantum heads implemented in quantum support vector machine (QSVM) and variational quantum circuit (VQC) models. On a simulation platform, we benchmark these hybrid models against classical models with comparable parameter budgets on two representative cybersecurity tasks, network intrusion detection on NSL-KDD dataset and spam filtering on Ling-Spam dataset. To validate their precision on real quantum hardware, we deploy the best 4-qubit QSVM model on an IBM Quantum device with noise-aware execution, evaluated on a smaller sub-dataset. In the results, shallow quantum heads consistently match, and on difficult near-boundary cases modestly reduce missed attacks and false alarms compared to classical models using the same features. Hardware validation results track the simulation behavior closely enough that the remaining gap is dominated by device noise rather than model design. Furthermore, we conduct adversarial attacks to test the robustness of one QSVM model. Taken together, the study shows that even on small, noisy devices, carefully engineered quantum components may function as competitive, budget-aware components in practical cyber threat detection applications.