Variational Quantum Singular Value Decomposition

Xin Wang, Zhixin Song, Youle Wang

Abstract

Singular Value Decomposition (SVD) is a cornerstone of modern data science, essential for tasks ranging from image compression to recommendation systems. Traditional quantum algorithms for SVD rely on Quantum Phase Estimation, which necessitates fault-tolerant hardware. This paper introduces Variational Quantum Singular Value Decomposition (VQSVD), a hybrid quantum-classical algorithm tailored for Noisy Intermediate-Scale Quantum (NISQ) devices. By leveraging the Ky Fan Theorem to construct a weighted loss function, VQSVD trains quantum neural networks to extract singular values and vectors. We demonstrate the algorithm's performance on random matrices and MNIST digit compression, highlighting its viability for near-term quantum data processing.

Introduction

Singular Value Decomposition (SVD) is often described as the "Swiss Army Knife" of linear algebra. It is the mathematical engine behind diverse applications, including Netflix’s recommendation algorithms and complex image compression. While quantum-enhanced SVD has been theorized for years, existing methods typically require deep, error-corrected circuits that are decades away from reality.

The current era of quantum computing is defined by Noisy Intermediate-Scale Quantum (NISQ) devices. These machines can only execute shallow circuits before noise renders the results useless. VQSVD addresses this limitation by proposing a variational approach that trades circuit depth for iterative classical optimization, making matrix decomposition feasible on today’s hardware.

The VQSVD Framework

VQSVD is a hybrid algorithm that distributes the computational load between a Quantum Processing Unit (QPU) and a classical CPU. The process is structured into four primary stages: input preparation, hybrid optimization, readout, and output generation.

The full VQSVD workflow, illustrating the interaction between the QPU and CPU during the optimization loop.

Methodology

  1. Matrix Representation: The target matrix $M$ is represented as a linear combination of unitaries (LCU). Two Parameterized Quantum Circuits (PQCs), $U(\alpha)$ and $V(\beta)$, act as quantum neural networks to learn the left and right singular vectors.
  2. The Ky Fan Loss Function: The core innovation lies in the loss function derived from the Ky Fan Theorem. By maximizing a weighted sum of the diagonal elements of the transformed matrix with strictly decreasing weights ($q_1 > q_2 > \dots > q_T$), the algorithm is mathematically guaranteed to find the largest singular values in descending order.
  3. Optimization Loop: The QPU evaluates the loss function terms using Hadamard tests, while the classical CPU updates the parameters $\alpha$ and $\beta$ using standard optimizers like Adam.
  4. Hardware Efficiency: To minimize noise, the algorithm employs "hardware-efficient ansatzes"—circuit architectures specifically designed for the connectivity and gate sets of current quantum chips.
A hardware-efficient ansatz used in VQSVD, designed to minimize circuit depth and noise on NISQ devices.

Experimental Results

The researchers validated VQSVD using both synthetic and real-world data:

  • Random Matrices: Tests on $8 \times 8$ non-Hermitian matrices showed consistent convergence. The approximation error decreased reliably as the rank ($T$) of the decomposition increased.
  • MNIST Image Compression: The algorithm successfully compressed $32 \times 32$ pixel images of the digit "7". Using only rank $T=5$ (representing 7.81% of the original data), the reconstructed images remained clearly recognizable despite some background noise.

Beyond simple decomposition, the authors demonstrated that VQSVD is versatile enough to be extended to solving linear systems, building recommendation engines, and performing polar decomposition.

Discussion and Future Work

While VQSVD represents a significant step forward, several challenges remain. Representing complex matrices as LCUs can be computationally expensive, potentially requiring exponential terms for certain datasets. Additionally, like many variational algorithms, VQSVD faces the "barren plateau" problem, where gradients vanish in large-scale optimization landscapes.

Future research will focus on developing more sophisticated circuit architectures and transitioning from simulators to physical quantum hardware. By refining these hybrid techniques, VQSVD paves the way for practical quantum advantage in data science and machine learning.

Summary updated

BibTeX
@article{wang2021variational,
  author = {Xin Wang and Zhixin Song and Youle Wang},
  title = {{Variational Quantum Singular Value Decomposition}},
  journal = {Quantum},
  year = {2021},
  doi = {10.22331/q-2021-06-29-483},
}
Figure