NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Quantum-enhanced least-square support vector machine: Simplified quantum algorithm and sparse solutions

Jie Lin, Dan-Bo Zhang, Shuo Zhang, Tan Li, Xiang Wang, Wan‐Su BaoPhysics 2020 · DOI

Introduction

Support Vector Machines (SVMs) are a cornerstone of classical machine learning, particularly valued for their ability to construct optimal hyperplanes for data classification. However, the computational cost of training SVMs scales poorly with the size of the dataset, often becoming prohibitive as samples reach the millions. While quantum-enhanced versions of SVMs have been proposed to offer exponential speed-ups, they typically encounter two significant obstacles: high circuit complexity and the loss of "sparsity."

In the "Least-Square" variant of SVM (LS-SVM), the optimization problem is simplified into a linear system of equations. While this makes the math more amenable to quantum algorithms like HHL (Harrow-Hassidim-Lloyd), it traditionally requires a vast number of ancillary qubits and results in a non-sparse solution—meaning every data point contributes to the decision boundary, leading to computational bloat. This paper introduces two novel frameworks—HVQ-SVM and QSLS-SVM—designed to streamline quantum matrix inversion and restore sparsity to the model.

Hybrid Variables Quantum SVM (HVQ-SVM)

The first proposed method, HVQ-SVM, addresses the complexity of quantum matrix inversion by moving away from a purely discrete qubit-based approach. Instead, it utilizes a hybrid variable architecture that combines qubits with Continuous Variables (CV).

In standard quantum algorithms, matrix inversion relies on complex eigenvalue inversion circuits that necessitate many ancillary qubits. HVQ-SVM bypasses this by encoding the matrix into the phase of a CV quantum state. By leveraging the infinite-dimensional Hilbert space of continuous variables, the algorithm treats matrix inversion as a physical process of phase evolution followed by homodyne detection. This approach significantly reduces the hardware requirements, making the algorithm more feasible for near-term quantum devices while maintaining the $O(\text{poly}(\log M))$ speed-up relative to the number of training samples $M$.

Quantum Sparse Least-Square SVM (QSLS-SVM)

The second method, QSLS-SVM, is a hybrid quantum-classical routine that focuses on the "sparsity" problem. In classical machine learning, sparsity is a major advantage of SVMs, as the final model only needs to store a small subset of the data (the support vectors).

QSLS-SVM restores this property through a multi-stage pipeline:

  1. Quantum Data Processing: Large-scale classical data is encoded into quantum states.
  2. Compression: The algorithm employs a "quantum matrix toolbox," utilizing Quantum Principal Component Analysis (QPCA) and Quantum Singular-Value Thresholding (QSVT) to compress the dataset.
  3. Classical Classification: The compressed, essential information is then fed into a classical LS-SVM.

By using quantum mechanics for the computationally intensive task of dimensionality reduction and data transformation, QSLS-SVM allows for an efficient, sparse final model that retains the benefits of quantum acceleration.

Complexity and Performance

Both algorithms demonstrate a significant theoretical advantage over classical methods. While classical LS-SVM training typically scales linearly or quadratically with the number of samples $M$, the proposed quantum algorithms achieve a time complexity of $O(\text{poly}(\log M))$.

Specifically:

  • HVQ-SVM scales at $O(\epsilon^{-1} \log(MN))$, where $\epsilon$ represents precision and $N$ is the number of features.
  • QSLS-SVM scales at $O(N + R^3 + R(\epsilon^{-1} \log(MN)))$, where $R$ is the rank of the compressed matrix.

Furthermore, the use of quantum states allows for the representation of "intractable feature maps." These are kernels that are mathematically impossible to compute classically, potentially enabling these quantum models to identify patterns in data that remain hidden from classical SVMs.

Discussion and Limitations

Despite the theoretical promise, several hurdles remain for practical implementation. Both algorithms rely on the existence of Quantum Random Access Memory (QRAM) to efficiently load classical data into quantum states—a technology that is still in the early stages of development.

Additionally, the HVQ-SVM relies on post-selection, where the success probability must be high enough to maintain the speed-up. There is also an inherent trade-off between the width of the CV state and the precision of the result. Interestingly, the authors suggest that the errors introduced by limited precision might act as a form of $L_2$ regularization, potentially improving the model's generalization, though this requires further empirical validation.

Conclusion

By integrating continuous variables and hybrid quantum-classical workflows, this research provides a more resource-efficient path toward practical quantum machine learning. These methods not only simplify the complex circuitry required for matrix inversion but also address the critical issue of sparsity, bringing quantum LS-SVMs closer to real-world applicability.

Summary updated

BibTeX
@inproceedings{lin2020quantum,
  author = {Jie Lin and Dan-Bo Zhang and Shuo Zhang and Tan Li and Xiang Wang and Wan‐Su Bao},
  title = {{Quantum-enhanced least-square support vector machine: Simplified quantum algorithm and sparse solutions}},
  booktitle = {Physics},
  year = {2020},
  doi = {10.1016/j.physleta.2020.126590},
}
Figure