|国家预印本平台
首页|Quantum Transfer Learning for MNIST Classification Using a Hybrid Quantum-Classical Approach

Quantum Transfer Learning for MNIST Classification Using a Hybrid Quantum-Classical Approach

Quantum Transfer Learning for MNIST Classification Using a Hybrid Quantum-Classical Approach

来源:Arxiv_logoArxiv
英文摘要

We implement a hybrid quantum-classical model for image classification that compresses MNIST digit images into a low-dimensional feature space and then maps these features onto a 5-qubit quantum state. First, an autoencoder compresses each $28\times28$ image (784 pixels) into a 64-dimensional latent vector, preserving salient features of the digit with minimal reconstruction error. We further reduce the latent representation to 5 principal components using Principal Component Analysis (PCA), to match the 5 available qubits. These 5 features are encoded as rotation angles in a quantum circuit with 5 qubits. The quantum feature map applies single-qubit rotations ($R_y$ gates) proportional to the feature values, followed by a Hadamard gate and a cascade of entangling CNOT gates to produce a non-product entangled state. Measuring the 5-qubit state yields a 32-dimensional probability distribution over basis outcomes, which serves as a quantum-enhanced feature vector for classification. A classical neural network with a softmax output is then trained on these 32-dimensional quantum feature vectors to predict the digit class. We evaluate the hybrid model on the MNIST dataset and compare it to a purely classical baseline that uses the 64-dimensional autoencoder latent features for classification. The results show that the hybrid model can successfully classify digits, demonstrating the feasibility of integrating quantum computing in the classification pipeline, although its accuracy (about 75\% on test data) currently falls below the classical baseline (about 98\% on the same compressed data).

Soumyadip Sarkar

计算技术、计算机技术

Soumyadip Sarkar.Quantum Transfer Learning for MNIST Classification Using a Hybrid Quantum-Classical Approach[EB/OL].(2025-07-31)[2025-08-07].https://arxiv.org/abs/2408.03351.点此复制

评论