Skip to main content
QUICK REVIEW

[Paper Review] Investigation of Quantum Support Vector Machine for Classification in NISQ era

Anekait Kariya, Bikash K. Behera|arXiv (Cornell University)|Dec 13, 2021
Quantum Computing Algorithms and ArchitectureComputer Science21 citations
TL;DR

This paper proposes a modified quantum support vector machine (QSVM) circuit for binary classification on NISQ-era quantum devices, using amplitude encoding and a novel inner product estimation method with H-gate-aided swap tests. It achieves 100% accuracy on the 6/9 dataset and 82.1% on IBM Belem for the banknote dataset—significantly outperforming standard QSVM implementations—highlighting challenges in HHL post-selection and the need for improved encoding and measurement strategies in near-term quantum machine learning.

ABSTRACT

Quantum machine learning is at the crossroads of two of the most exciting current areas of research; quantum computing and classical machine learning. It explores the interaction between quantum computing and machine learning, investigating how results and techniques from one field can be used to solve the problems of the other. Here, we investigate quantum support vector machine (QSVM) algorithm and its circuit version on present quantum computers. We propose a general encoding procedure extending QSVM algorithm, which would allow one to feed vectors with higher dimension in the training-data oracle of QSVM. We compute the efficiency of the QSVM circuit implementation method by encoding training and testing data sample in quantum circuits and running them on quantum simulator and real chip for two datasets; 6/9 and banknote. We highlight the technical difficulties one would face while applying the QSVM algorithm on current NISQ era devices. Then we propose a new method to classify these datasets with enhanced efficiencies for the above datasets both on simulator and real chips.

Motivation & Objective

  • To investigate the feasibility and limitations of implementing the quantum support vector machine (QSVM) on current NISQ-era quantum hardware and simulators.
  • To address technical challenges in QSVM implementation, particularly erroneous solution states due to improper post-selection after the HHL algorithm.
  • To develop a generalized encoding procedure enabling higher-dimensional classical data to be encoded into quantum states for QSVM training.
  • To improve classification accuracy on real and simulated quantum devices through a redesigned circuit architecture with optimized measurement and inner product estimation.
  • To benchmark the performance of the proposed method against standard QSVM circuits on two binary classification datasets: 6/9 and banknote.

Proposed method

  • Proposes a new quantum circuit architecture for QSVM that replaces swap operations with H gates before measurement in the swap test, improving robustness and reducing circuit depth.
  • Introduces a generalized amplitude encoding method that maps 4-feature vectors into a 2-qubit system, enabling efficient encoding of higher-dimensional data.
  • Employs a layer-wise circuit construction where inner products between test and training data are computed using controlled-controlled-phase gates and single-qubit rotations.
  • Uses the IBM Quantum Experience platform to simulate and execute circuits on both the 32-qubit qasm simulator and the 5-qubit IBM Belem real chip.
  • Applies two classification strategies: 'averages' (using class mean vectors) and 'k-means' (using cluster centroids), comparing their performance across layers.
  • Performs post-processing on measurement outcomes to classify test samples based on which inner product value is higher.

Experimental results

Research questions

  • RQ1How does the standard QSVM circuit perform on NISQ-era quantum devices and simulators for binary classification tasks?
  • RQ2What are the primary technical obstacles in implementing QSVM on current noisy intermediate-scale quantum hardware?
  • RQ3Can a modified QSVM circuit with optimized measurement and encoding strategies achieve higher classification accuracy than the original formulation?
  • RQ4How do different data encoding methods, such as amplitude encoding, affect the performance of QSVM on real and simulated quantum processors?
  • RQ5To what extent does the choice of classification strategy (averages vs. k-means) influence the accuracy of QSVM in the NISQ era?

Key findings

  • The proposed method achieved 100% classification accuracy on the 6/9 dataset using both the IBM qasm simulator and the IBM Armonk 1-qubit chip, significantly outperforming the standard QSVM circuit which yielded only 62.5% accuracy.
  • On the banknote dataset, the proposed method reached 82.1% accuracy on the IBM Belem 5-qubit real chip and 78.6% on the simulator, compared to approximately 64% for the standard QSVM circuit implementation.
  • The performance of the proposed circuit remained stable across different values of the regularization parameter γ, indicating robustness to hyperparameter variation.
  • The use of H gates before measurement in the swap test improved circuit fidelity and reduced error accumulation compared to standard swap-test implementations.
  • Layer-wise analysis revealed that optimal performance was achieved at different circuit depths for different datasets and classification strategies, with peak accuracy at layer 4 for k-means on banknote and layer 20 for averages on 6/9.
  • The results suggest that improper post-selection after the HHL algorithm is a major source of error in standard QSVM implementations, and that improved measurement and state preparation protocols are essential for reliable performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.