Hybrid Quantum-Classical Image Classification: Installation, Evaluation and Software Engineering Lessons
Abstract
The intersection of quantum processing and classical machine learning has spawned hybrid quantum-classical systems — practical system designs that attempt to use quantum potential in the limitations of modern Noisy Intermediate-Scale Quantum (NISQ) hardware. This paper introduces the development, deployment, and empirical analysis of a hybrid quantum-classical image classifier (which combines a Convolutional Neural Network (CNN) with an eight-qubit Variational Quantum Circuit (VQC)) in the binary classification of handwritten digits. This implementation, implemented in PennyLane and PyTorch, reaches a peak test accuracy of 99.85% across 1,984 test samples of the MNIST system, and only three errors are made. In addition to performance measures, the work presents an approach based on Quantum Software Engineering (QSE) by reporting major engineering issues, such as quantum-classical interface design, adjoint differentiation, feature-dimensionality reduction, and backend portability, and suggestion of seven quality-assurance practices of hybrid quantum software systems. The results demonstrate that it is possible to manufacture successfully hybrid quantum-classical architectures with the help of existing open-source tools and simulators, and provide future research and practice with hybrid QSE with effective advice.