Quantum Convolutional Neural Network: A Hybrid Quantum-Classical Approach for Iris Dataset Classification

S.M. Yousuf Iqbal Tomal,Abdullah Al Shafin,Afrida Afaf,Debojit Bhattacharjee
2024-10-21
Abstract:This paper presents a hybrid quantum-classical machine learning model for classification tasks, integrating a 4-qubit quantum circuit with a classical neural network. The quantum circuit is designed to encode the features of the Iris dataset using angle embedding and entangling gates, thereby capturing complex feature relationships that are difficult for classical models alone. The model, which we term a Quantum Convolutional Neural Network (QCNN), was trained over 20 epochs, achieving a perfect 100% accuracy on the Iris dataset test set on 16 epoch. Our results demonstrate the potential of quantum-enhanced models in supervised learning tasks, particularly in efficiently encoding and processing data using quantum resources. We detail the quantum circuit design, parameterized gate selection, and the integration of the quantum layer with classical neural network components. This work contributes to the growing body of research on hybrid quantum-classical models and their applicability to real-world datasets.
Quantum Physics,Artificial Intelligence
What problem does this paper attempt to address?
The problem that this paper attempts to solve is: how to use the method of combining quantum computing and classical computing to improve the classification performance in machine - learning tasks, especially when dealing with complex data sets. Specifically, the author proposes a hybrid quantum - classical machine - learning model, namely the Quantum Convolutional Neural Network (QCNN), to solve the classification problem of the classical Iris dataset. ### Background and Motivation - **Advantages of Quantum Computing**: Quantum computing can process information in ways that are difficult for traditional classical computers to achieve through principles such as superposition, entanglement, and quantum parallelism, thus showing potential advantages in some complex problems. - **Limitations of Current Quantum Hardware**: Current quantum hardware is still in the Noisy Intermediate - Scale Quantum (NISQ) stage, which limits the implementation of pure quantum algorithms. - **Hybrid Quantum - Classical Model**: In order to overcome the above limitations, researchers have proposed a hybrid quantum - classical model, combining the powerful capabilities of quantum computing and the scalability of classical computing to achieve more efficient feature encoding and data processing. ### Research Objectives - **Design and Implementation**: Design a 4 - qubit quantum circuit to encode the features of the Iris dataset through angle embedding and entangling gates, capturing complex non - linear relationships. - **Model Training and Evaluation**: Combine the quantum circuit with a classical neural network to form a complete QCNN model, and train and test it on the Iris dataset to evaluate its classification performance. ### Main Contributions - **Efficient Feature Encoding**: Through the design of the quantum circuit, efficient encoding of data features is achieved, especially using quantum entanglement to capture the complex relationships between features. - **High - Performance Classification**: The experimental results show that the model reaches 100% classification accuracy on the test set within 16 training epochs, demonstrating the potential of quantum - enhanced models in supervised learning tasks. - **Combination of Theory and Practice**: This research not only theoretically explores the application of quantum computing in machine learning, but also verifies it on an actual data set, providing a valuable reference for future research. ### Conclusion This paper successfully improves the classification performance of the Iris dataset by designing and implementing a hybrid quantum - classical model, achieving 100% accuracy. This result not only shows the advantages of quantum computing in feature encoding, but also lays the foundation for the future application of hybrid quantum - classical models in more practical problems.