Generalized quantum singular value transformation with application in quantum conjugate gradient least squares algorithm
Yu-Qiu Liu, Hefeng Wang, Hua Xiang

TL;DR
This paper extends generalized quantum signal processing to general matrices, creating GQSVT, and applies it to develop a hybrid quantum-classical conjugate gradient least squares algorithm.
Contribution
It introduces GQSVT, relaxing polynomial parity restrictions, and demonstrates its application in a hybrid quantum-classical algorithm for least squares problems.
Findings
GQSVT relaxes parity restrictions compared to QSVT.
The proposed hybrid algorithm applies GQSVT to solve least squares.
Extension of GQSP to general matrices broadens quantum signal processing capabilities.
Abstract
Quantum signal processing (QSP) and generalized quantum signal processing (GQSP) are essential tools for implementing the block encoding of matrix functions. The achievable polynomials of QSP have restrictions on parity, while GQSP eliminates these restrictions. But GQSP only constructs functions of unitary matrices. In this paper, we further investigate GQSP and extend it to general matrices. Compared with the quantum singular value transformation (QSVT), our proposed method relaxes the requirements on the parity of polynomials. We refer to this extension as generalized quantum singular value transformation (GQSVT). Subsequently, by utilizing the relationship between generalized matrix functions and standard matrix functions, we propose a classical-quantum hybrid quantum conjugate gradient least squares (CGLS) algorithm using GQSVT.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Generalized quantum singular value transformation with application in quantum conjugate gradient least squares algorithm
Yu-Qiu Liu222School of Mathematics and Statistics, Wuhan University, Wuhan 430072, China. 111E-mail address: [email protected] (Y. Q. Liu ), [email protected] (H. Wang), [email protected] (H. Xiang).
Hefeng Wang333Department of Applied Physics, School of Science, Xi’an Jiaotong University and Shaanxi Province Key Laboratory of Quantum Information and Quantum Optoelectronic Devices, Xi’an, 710049, China 111E-mail address: [email protected] (Y. Q. Liu ), [email protected] (H. Wang), [email protected] (H. Xiang).
Hua Xiang222School of Mathematics and Statistics, Wuhan University, Wuhan 430072, China. 444Hubei Key Laboratory of Computational Science, Wuhan University, Wuhan 430072, China 111E-mail address: [email protected] (Y. Q. Liu ), [email protected] (H. Wang), [email protected] (H. Xiang).
Abstract
Quantum signal processing (QSP) and generalized quantum signal processing (GQSP) are essential tools for implementing the block encoding of matrix functions. The achievable polynomials of QSP have restrictions on parity, while GQSP eliminates these restrictions. But GQSP only constructs functions of unitary matrices. In this paper, we further investigate GQSP and extend it to general matrices. Compared with the quantum singular value transformation (QSVT), our proposed method relaxes the requirements on the parity of polynomials. We refer to this extension as generalized quantum singular value transformation (GQSVT). Subsequently, by utilizing the relationship between generalized matrix functions and standard matrix functions, we propose a classical-quantum hybrid quantum conjugate gradient least squares (CGLS) algorithm using GQSVT.
Key words. quantum signal processing, quantum singular value transformation, least squares, quantum algorithm.
1 Introduction
QSP is one of the most efficient and versatile methods for approximate matrix functions in recent years, requiring only a few ancillary qubits. QSP and its extensions have become important tools in quantum computing, with applications including ground-state preparation [YLY2022Ground, DL2024MultilevelQSP, MGB2025Coherent], solving linear systems [LT20filtering, TWY2024QCG], Hamiltonian simulation [LC2017Uniform, LC2017Optimal, LC19Hamiltonian], and block encoding [CLV2024Explicit, LNY2023Efficient, SCC2024Block-encoding]. It was originally proposed by Low et al. in 2016 to design composite quantum gates that can implement quantum response functions [LYC16Methodology]. These functions are polynomials with definite parity and satisfy the condition that magnitudes do not exceed . In 2019, Low and Chuang presented a technique known as qubitization [LC19Hamiltonian]. This method embeds a Hamiltonian in an invariant subspace and can compute operator functions of with optimal query complexity. Utilizing qubitization and singular value decomposition (SVD), QSVT [GSL19QSVT] further extends QSP to embed the polynomial of general operators into a unitary. Subsequently, GQSP was proposed in 2024 by Motlagh and Wiebe [MW24GQSP]. It removes the restrictions on the parity of implementable polynomials in QSP, retaining only the condition that the polynomial satisfies . This relaxation further broadens the applicability of QSP.
However, GQSP only constructs the function of unitary , where is a Hermitian matrix. In this paper, we generalize GQSP from unitary matrices to general matrices by combining singular value decomposition and qubitization techniques. We adopt the framework of GQSP, using arbitrary rotations as the signal processing operator and controlled unitary matrices as the signal operator. We use two classes of [math]-controlled and -controlled unitary operators to implement transformations between different spaces. Using the Chebyshev expansion of arbitrary polynomials, our method further extends the range of realizable block encoding matrix functions, that is, the block encoding of polynomials without definite parity of general operators.
QSP and its series of extensions have provided new and powerful approaches for solving the quantum linear system problem (QLSP). Solving linear systems is among the most frequent problems in scientific computing. The classical methods for solving linear systems are classified as either direct or iterative [Vorst2003, Golub2013Matrix, Meurant2020Nonsymmetric, Saad2003, Barrett1994Templates]. However, as the scale of the problem gradually increases, the computational resources and time required by classical computers to solve such linear systems increase greatly. Quantum computers hold the promise of enabling new algorithms that can solve problems requiring excessive resources on classical computers [Xiang2022, Nielsen2010, Shor97Polynomial, HHL09, Grover96fast].
The QLSP refers to the preparation of a quantum state , which is proportional to the solution of a given linear system . Harrow, Hassidim, and Lloyd presented the HHL algorithm [HHL09] in 2009, which was the first quantum algorithm to solve linear systems. The computational complexity of the HHL algorithm is and scales logarithmically with the system size , where is the condition number of , is the usual matrix norm, and is the desired precision. In subsequent studies, the HHL algorithm has been further improved [AA10VTAA, CKS17LCU, WZP18Dense]. The development of QSP has introduced new methods for solving QLSP. Gilyén et al. found the polynomial that approximates and employed QSVT to construct an operator that approximates with maximum circuit depth [GSL19QSVT, MRT21Grand]. Lin and Tong presented a quantum eigenstate filtering algorithm and used it to solve quantum linear system problems, achieving near-optimal complexity for both and [LT20filtering]. In 2024, Toyoizumi et al. introduced a quantum conjugate gradient method that achieves a square-root improvement for in the maximum circuit depth[TWY2024QCG].
As an application of GQSVT, we use it to solve the least squares (LS) problem, a fundamental and widely used approach for data fitting[Trefethen97Numerical]. For a matrix and a vector , the LS procedure find the vector that minimizes . The vector is the LS solution if and only if when has full column rank. This equation can be solved by the conjugate gradient (CG) method, which leads to the CGLS algorithm. The CG method works for symmetric positive (SPD) definite problems and it is an iterative Krylov subspace method, where the Krylov subspace with dimension is defined as .
This paper is organized as follows. In Sect.2, we present several fundamental definitions and a brief review of the GQSP method. In Sect.3, we provide a detailed process for extending GQSP to GQSVT. We also discuss its circuit implementation. In Sect.4, we first introduce the LS problem and the CGLS algorithm, then we present the quantum CGLS algorithm by employing GQSVT to compute vectors and using the swap test to calculate inner products. By using the convergence properties of CG, we derive the maximum circuit depth for our proposed algorithm. Conclusions are given in Sect.5.
2 Preliminaries
2.1 Functions of matrices
We first review the definitions of standard matrix functions and generalized matrix functions.
Standard matrix functions. For simplicity, let be an Hermitian matrix with the eigendecomposition , where is unitary and is a diagonal matrix containing the eigenvalues of . For a function , the standard matrix function is defined as
[TABLE]
where .
Generalized matrix functions. Let be an matrix with rank . The singular value decomposition of is given by , where and are unitary. Here, is an diagonal matrix whose diagonal entries are the non-negative singular values of . For a function , the generalized matrix functions is defined as
[TABLE]
where . The left and right generalized matrix polynomials are defined as
[TABLE]
respectively[HB73generalizedMF, BG2003Generalized].
In general, for square indefinite matrices , yet certain relations exist between and [Aurentz19GMF]. Let be a polynomial, and define . We have
[TABLE]
Recall that when solving the normal equations using CG method, the approximate solution vector lies in the Krylov subspace , which means that can be represented as the generalized matrix polynomial applied to vector when choosing .
2.2 Chebyshev expansions
The Chebyshev polynomial of the first kind is a polynomial in of degree , defined by the relation
[TABLE]
where , . The Chebyshev polynomials are orthogonal in the sense that
[TABLE]
Then, a polynomial of degree can be expanded in terms of Chebyshev polynomials as
[TABLE]
where the expansion coefficients are determined by
[TABLE]
We apply the substitution and re-express the Chebyshev expansion as follows:
[TABLE]
where for and for . We define . Then we have .
2.3 Generalized quantum signal processing
Let be a Hamiltonian. The signal operator used in generalized quantum signal processing is a [math]-controlled application of :
[TABLE]
The signal processing operations are defined as arbitrary rotations of the ancillary qubit:
[TABLE]
For the sake of brevity, we denote
[TABLE]
where
[TABLE]
The conclusion in Ref.[MW24GQSP] shows that the polynomial transformations of the unitary matrix can be block encoded by alternately performing the signal operator and signal processing operator. The quantum circuit is shown in Fig. LABEL:fig:GQSP. Importantly, these polynomials require no additional assumptions after being appropriately scaled, as shown in the following lemma.
Lemma 1**.**
(Generalized quantum signal processing, GQSP[MW24GQSP]) , with , if , . Then , such that
[TABLE]
