Adaptive Optimizer-Enhanced Variational Quantum Classifier Using ZZFeatureMap and TwoLocal Ansatz for Non-Linear Binary Classification
Abstract
Noisy Intermediate-Scale Quantum (NISQ) devices can be used to solve classification problems using a promising quantum machine learning technique called Variational Quantum Classifiers (VQC). The performance of VQCs is highly dependent on classical optimizers, and the understanding of the optimizer behavior within a given quantum architecture is limited. The proposed work is to present an Adaptive Optimizer-Enhanced Variational Quantum Classifier, which is a combination of a ZZFeatureMap for quantum data encoding and TwoLocal ansatz for variational learning, for solving non-linear binary classification problems. The proposed framework is tested using the Two Moons benchmark dataset, which is a popular benchmark for evaluating the ability of machine learning models to learn complex non-linear decision boundaries. The implementation is based on the Qiskit 1.2 and was run on a noiseless state vector simulator to remove the effects of hardware noise and focus on the effects of optimization. The three popular optimization techniques, namely ADAM, COBYLA and SPSA were explored under the same experimental setups. Besides the classification accuracy, a callback-based loss tracking mechanism was added to examine the speed of convergence, stability of optimization and evolution of losses during training. The experimental results showed that the overall accuracy of ADAM is 84.2%, which is the best, followed by COBYLA (79.3%) and SPSA (73.8%). Along with this, quantitative convergence analysis results showed that ADAM converged faster than the other optimizers and had lesser loss variance. It is shown that, with a proper optimization routine, a shallow two-qubit VQC can be used to successfully learn complex non-linear decision boundaries. The principal contribution of this work is a controlled optimizer-aware evaluation framework that integrates a fixed ZZFeatureMap–TwoLocal VQC architecture with callback-based convergence diagnostics to systematically analyse optimizer behaviour under identical experimental conditions.