Hybrid quantum neural network models for fruit quality assessment

D Danish ul Khairi K Kamran Ahsan S Syed Zeeshan Ali W Wadee Alhalabi S Somayah Albaradei M Muhammad Shahid Anwar

Abstract

This study investigates hybrid quantum neural networks for fruit quality assessment, with a focus on the impact of the entangling gate choice. Two architectures were developed: NNQEv1, utilizing controlled-NOT (CNOT) gates, and NNQEv2, employing controlled-phase (CZ) gates. A theoretical justification is provided, based on gate decomposition and hardware-aware noise considerations, suggesting the CZ-based architecture is likely to be more stable. The performance of the models was evaluated through the computational execution of their quantum circuits on classical hardware and compared against classical and state-of-the-art deep learning models. The proposed models demonstrated competitive performance, achieving test accuracies of 98.7% on MNIST, 98.6% on the FruitQ dataset, and 96.7% on a custom, data-scarce Apple dataset. The experimental results align with the theoretical analysis: the CZ-based NNQEv2 model, when compared to the CNOT-based NNQEv1, consistently showed more stable training dynamics and yielded tighter confidence intervals in cross-validation. This work presents a foundational, computational study on the role of gate-level design choices, intended to inform the development of future quantum machine learning algorithms.

Article Details

Journal PLoS ONE
Volume / Issue Vol. 20, Issue 12
Published December 10, 2025
Pages e0332528
ISSN 1932-6203
Publisher Public Library of Science

Journal Info

PLoS ONE

Public Library of Science

ISSN: 1932-6203 Open Access Health Sciences

Authors (6)

D

Danish ul Khairi

K

Kamran Ahsan

S

Syed Zeeshan Ali

W

Wadee Alhalabi

S

Somayah Albaradei

M

Muhammad Shahid Anwar