Classical Vision Transformers (CViTs) have demonstrated strong performance in medical image analysis, supporting a wide range of digital health applications. However, their self-attention mechanisms can require substantial computational resources and model parameters. In parallel, quantum machine learning (QML) has attracted increasing interest in healthcare and other scientific domains, particularly because quantum-enhanced models may provide expressive representations for small datasets. In this paper, we propose MedQViT, a robust and parameter-efficient Quantum Vision Transformer for medical image classification. To reduce the computational cost of global self-attention, MedQViT combines a shared four-qubit parameterized quantum circuit with a quantum-feature state memory and trainable landmark tokens. This hybrid architecture encodes image patches into compact quantum-enhanced representations while using classical layers for feature aggregation and classification. Experiments on established medical image datasets evaluate the effectiveness and feasibility of MedQViT against classical and quantum baselines. MedQViT achieves competitive performance with substantially fewer parameters than conventional vision models and outperforms several classical and quantum methods in terms of test accuracy (ACC) and area under the receiver operating characteristic curve (AUC).
Classical Vision Transformers (CViTs) have demonstrated strong performance in medical image analysis, supporting a wide range of digital health applications. However, their self-attention mechanisms can require substantial computational resources and model parameters. In parallel, quantum machine learning (QML) has attracted increasing interest in healthcare and other scientific domains, particularly because quantum-enhanced models may provide expressive representations for small datasets. In this paper, we propose MedQViT, a robust and parameter-efficient Quantum Vision Transformer for medical image classification. To reduce the computational cost of global self-attention, MedQViT combines a shared four-qubit parameterized quantum circuit with a quantum-feature state memory and trainable landmark tokens. This hybrid architecture encodes image patches into compact quantum-enhanced representations while using classical layers for feature aggregation and classification. Experiments on established medical image datasets evaluate the effectiveness and feasibility of MedQViT against classical and quantum baselines. MedQViT achieves competitive performance with substantially fewer parameters than conventional vision models and outperforms several classical and quantum methods in terms of test accuracy (ACC) and area under the receiver operating characteristic curve (AUC).
Medical image classification is a critical component of modern healthcare; however, accurate diagnosis remains challenging due to limited annotated datasets, class imbalance, and the high dimensionality of medical imaging data. To address these challenges, a hybrid quantum-classical neural network (HQCNN) is proposed, integrating classical deep learning with variational quantum learning for medical image classification. The proposed architecture combines a five-layer convolutional neural network (CNN) for hierarchical feature extraction with a lightweight 4-qubit variational quantum circuit (VQC) incorporating quantum state encoding, superposition and entanglement mechanisms, and a quantum attention-Fourier (QAF) module. This hybrid design aims to improve nonlinear feature representation and quantum parameter efficiency while maintaining a shallow quantum circuit suitable for noisy intermediate-scale quantum (NISQ)-era constraints. Experimental evaluation on six MedMNIST benchmark datasets demonstrated competitive performance across both binary and multi-class classification tasks. HQCNN achieved 98.88% accuracy on the binary subset of PathMNIST (classes 0 vs. 1), 97.61% accuracy on the multi-class OrganAMNIST dataset, and 86.29% accuracy on BreastMNIST. Comparative experiments and statistical analyses demonstrated consistent improvements over the controlled BHQNN baseline, while component-wise ablation studies showed that the QAF module, superposition and entanglement mechanisms, and expressive parameterized rotations contributed to classification performance in a complementary and dataset-dependent manner. Moreover, HQCNN reduced the number of trainable quantum parameters by approximately 55.6% compared with the baseline hybrid quantum neural network (BHQNN). Noise-aware simulations further showed that the model retained relatively stable predictive performance under moderate depolarizing noise, supporting further evaluation under near-term quantum computing conditions. Overall, the results demonstrate that HQCNN provides a parameter-efficient hybrid quantum-classical framework for medical image classification and offers a promising foundation for further investigation of quantum-enhanced medical image analysis.
Purpose This study investigates the integration of quantum-enhanced machine learning (QML) into medical image analysis, focusing on classification and feature extraction tasks. It aims to evaluate whether hybrid quantum-classical models can overcome the limitations of traditional machine learning in handling high-dimensional, clinically relevant imaging data. Design/methodology/approach Hybrid architectures combining classical preprocessing with quantum components, specifically variational quantum circuits (VQCs) and quantum kernel methods, were developed and implemented in simulated quantum environments using Qiskit and PennyLane on Google Colab. Publicly available datasets (ChestX-ray14, Brain Tumor MRI and CT Hemorrhage) were preprocessed and encoded into quantum states. Model performance was evaluated against classical baselines (MLP and CNN) using accuracy, precision, recall, F1-score, convergence speed and trainable parameters. Findings Quantum-enhanced models achieved competitive or superior performance compared to classical models with significantly fewer trainable parameters and faster convergence. The Quantum Kernel SVM demonstrated the highest precision (89.1%) and F1-score (88.5%) using only 8 parameters, while VQC models converged up to 2× faster than classical baselines. These results highlight the potential of QML to improve efficiency, robustness and scalability in diagnostic imaging workflows, particularly in resource-constrained or data-limited settings. Research limitations/implications The study relies on simulated quantum environments, which do not capture hardware noise or qubit limitations. Future work will extend to real quantum devices, multimodal data integration and interpretability strategies. Practical implications Quantum kernel methods and lightweight VQC architectures enable faster, resource-efficient diagnostic modeling, making them suitable for clinical environments with limited computational capacity or time-sensitive decision-making needs. Social implications Improving the efficiency and accessibility of medical image analysis has the potential to support faster diagnosis and enhance healthcare delivery, particularly in underserved or resource-limited regions. Originality/value This study provides a practical evaluation of hybrid quantum-classical models applied to multiple real medical imaging datasets in a reproducible simulated environment. It offers an early-stage framework demonstrating how QML techniques can be integrated into existing machine learning pipelines for medical image analysis.
Abstract This work presents a novel quantum-hybrid pipeline for lung nodule classification in computed tomography (CT) scans, combining vision transformer (ViT) embeddings with quantum orthogonal pyramidal circuits (QOPCs). The approach was evaluated on 681 lung nodule CT scans across axial, coronal, and sagittal planes. Two ViT configurations were tested: ViT 1 (1 head, 4 layers) and a Bayesian-optimized ViT 2 (4 heads, 8 layers). Features extracted from ViT embedding layers were reduced via principal component analysis to 2–16 dimensions and classified using the QOPC with reconfigurable beam splitter (RBS) gates. The proposed approach achieved unprecedented compression, up to 1,470 × × (from 10,290 to 7 parameters) while preserving over 99% of baseline accuracy. The approach reached 83.7% accuracy (ViT 2 , k=8 k = 8 , h=8 h = 8 ) with only 46 trainable parameters and achieved computational efficiency (CE) up to 92.0. Training was accelerated up to 28 × × (0.030 vs. 0.833 min) while maintaining robust diagnostic performance (F1: 0.77−0.82, receiver operating characteristic area under the curve (ROC-AUC): 0.87−0.90). Ablation studies confirmed that the quantum layer outperforms conventional MLPs by +3.4% accuracy with 35% fewer parameters, while late fusion of multi-view predictions further improved performance to 85.4% accuracy and 0.92 ROC-AUC. These results establish hybrid ViT-QOPC architectures as a practical and resource-efficient framework for medical image analysis, demonstrating their ability to dramatically reduce computational cost without compromising clinical accuracy.
Medical image classification has been a fundamental task in computer-aided diagnosis. In this work, we propose a hybrid quantum-classical deep learning framework that integrates a parameterized quantum layer into the ResNet-18 architecture for medical image classification. Our experiments are conducted on the OrganMNIST-Axial, OrganMNIST-Coronal, and OrganMNIST-Sagittal datasets from the MedMNIST v2 collection, each consisting of 28×28 grayscale images representing different organ sections. The quantum layer is implemented as a 6-qubit variational quantum circuit (VQC) that partially replaces the classical fully connected module, enabling the network to exploit quantum feature mapping and entanglement for enhanced nonlinear representation learning. This architectural modification reduces the number of classical trainable parameters by approximately 44% compared with the original ResNet-18 while preserving its representational capacity. We evaluate the proposed QResNet18 against classical baselines to investigate its potential advantages in terms of accuracy, robustness, and parameter efficiency. Experimental results demonstrate that the hybrid quantum-classical model achieves competitive or superior performance while maintaining a significantly reduced parameter count, highlighting the feasibility and promise of quantumenhanced medical image classification.
Classification of medical images plays a vital role in medical image analysis; however, it remains challenging due to the limited availability of labeled data, class imbalances, and the complexity of medical patterns. To overcome these challenges, we propose a novel Hybrid Quantum-Classical Neural Network (HQCNN) for both binary and multi-class classification. The architecture of HQCNN integrates a five-layer classical convolutional backbone with a 4-qubit variational quantum circuit that incorporates quantum state encoding, superpositional entanglement, and a Fourier-inspired quantum attention mechanism. We evaluate the model on six MedMNIST v2 benchmark datasets. The HQCNN consistently outperforms classical and quantum baselines, achieving up to 99.91% accuracy and 100.00% AUC on PathMNIST (binary) and 99.95% accuracy on OrganAMNIST (multi-class) with strong robustness on noisy datasets like BreastMNIST (87.18% accuracy). The model demonstrates superior generalization capability and computational efficiency, accomplished with significantly fewer trainable parameters, making it suitable for data-scarce scenarios. Our findings provide strong empirical evidence that hybrid quantum-classical models can advance medical imaging tasks.
In this work, quantum transformers are designed and analysed in detail by extending the state-of-the-art classical transformer neural network architectures known to be very performant in natural language processing and image analysis. Building upon the previous work, which uses parametrised quantum circuits for data loading and orthogonal neural layers, we introduce three types of quantum transformers for training and inference, including a quantum transformer based on compound matrices, which guarantees a theoretical advantage of the quantum attention mechanism compared to their classical counterpart both in terms of asymptotic run time and the number of model parameters. These quantum architectures can be built using shallow quantum circuits and produce qualitatively different classification models. The three proposed quantum attention layers vary on the spectrum between closely following the classical transformers and exhibiting more quantum characteristics. As building blocks of the quantum transformer, we propose a novel method for loading a matrix as quantum states as well as two new trainable quantum orthogonal layers adaptable to different levels of connectivity and quality of quantum computers. We performed extensive simulations of the quantum transformers on standard medical image datasets that showed competitively, and at times better performance compared to the classical benchmarks, including the best-in-class classical vision transformers. The quantum transformers we trained on these small-scale datasets require fewer parameters compared to standard classical benchmarks. Finally, we implemented our quantum transformers on superconducting quantum computers and obtained encouraging results for up to six qubit experiments.