Quantum-Enhanced Intrusion Detection for Edge Intelligence in 6G- Enabled IoE
Abstract
Quantum Neural Network (QNN) provides an exciting alternative to machine learning as they take advantage of quantum computer properties when making decisions and processing data. However, the integration of high-dimensional classical data with the limited number of qubits available on current Noisy Intermediate-Scale Quantum computers presents a major difficulty. This paper presents a complete hybrid quantum-classical architecture in Qiskit that utilizes the Network Security Laboratory-Knowledge Discovery and Data Mining (NSL-KDD) dataset to classify network intrusions among multiple classes. In order to work around the exponential cost of computations and reduce the number of times quantum circuits need to be run due to hardware limitations, a subset of the dataset will be created to use during both training and testing. The architecture proposed in this paper uses a four-qubit Variational Quantum Circuit (VQC). First, a classical feature vector is used to create a quantum Hilbert space via a ZZFeatureMap, which initializes the qubits via a Hadamard transformation followed by phase rotation gates that create controlled-entanglement between pairs of features. The quantum states are then passed through a RealAmplitudes variational circuit, while the classical layer optimizes the parameters using the Constrained Optimization BY Linear Approximations (COBYLA) algorithm. The overall accuracy of the model when tested on five classes of intrusion detection results in an accuracy level of 59%, with very strong classification accuracies for both Denial of Service (DoS) and User-to-Root (U2R) attacks as demonstrated by their F1 scores. The proposed QNN achieves a highly competitive baseline of 86% accuracy and 86% recall in specific configurations. These results underscore the potential of shallow, lower-complexity QNN architectures as an emergent tool for cybersecurity in the quantum era.