Quantum singular value transformation
Rough overview (in words)
Quantum singular value transformation (QSVT) can be viewed as both a unification and generalization of qubitization and quantum signal processing. Given a block-encoding \(U_A\) of a general matrix \(A\), QSVT enables the transformation of the singular values of \(A\) by a polynomial \(f(\cdot)\). In QSVT there is one-to-one correspondence between the desired polynomial transformation and its quantum circuit implementation whose parameters can be found by efficient classical algorithms.
It transpires that a number of existing quantum algorithms have simple and (near-)optimal implementations via the QSVT framework, including but not limited to: Hamiltonian simulation [1, 2, 3], amplitude amplification and estimation [3, 4], quantum linear systems solving [3, 5], Gibbs sampling [3], algorithms for topological data analysis [6, 7, 8], and quantum phase estimation [5, 9].
Rough overview (in math)
We are given a \((1, m, 0)\)-block-encoding \(U_A\) of operator \(A\) (for simplicity we will restrict our presentation to square matrices \(A\), noting there is a straightforward generalization to non-square \(A\) [3]) such that
where \(\ket{0^m}\) denotes \(\ket{0}^{\otimes m}\). The matrix \(A\) has a singular value decomposition (SVD)
QSVT provides a method for implementing
for certain definite-parity polynomials \(f\colon [-1,1] \rightarrow \mathbb{C}\) such that \(|f(x)| \leq 1~\forall~x \in [-1,1]\). Crucially, QSVT does not require us to know the SVD in advance; the transformation is carried out automatically by following an SVD-agnostic procedure outlined below. Note that \(f^{(SV)}(A)\) only coincides with the matrix function \(f(A)\) for Hermitian \(A\) (see Caveats). In the Hermitian case, we can also obtain block-encodings of mixed-parity or complex functions by taking linear combinations of block-encodings—see [10] for examples.
By considering \(U_A \ket{0^m} \ket{v_i}\) and \(U_A^\dagger \ket{0^m}\ket{w_i}\) one can show that (see [11] for a step-by-step derivation) \(U_A\) and \(U_A^\dagger\) act as linear maps between the 2D subspaces \(S_i:=\mathrm{Span}\{\ket{0^m}\ket{v_i},\ket{\perp_i}\} \rightarrow S_i':=\mathrm{Span}\{\ket{0^m}\ket{w_i},\ket{\perp_i'}\}\), and \(U_A\)'s transition matrix between these bases is
where both \(\ket{\perp_i}, \ket{\perp_i'}\) are orthogonal to \(\ket{0^m}\) (but not necessarily to each other).1 One can show that \(S_i\) is invariant under the operation \(W := Z_{\ket{0^m}} U_A^\dag Z_{\ket{0^m}} U_A\) (with \(Z_{\ket{0^m}} = (2\ketbra{0^m}{0^m} - I)\)) having matrix
when restricted onto the 2D subspace \(S_i\). An additional application of \(Z_{\ket{0^m}} U_A\) maps back into the \(S_i'\) subspace. By analogy with qubitization, repeated applications of \(W\) applies a Chebyshev polynomial to each of the singular values of \(A\). In analogy with quantum signal processing, by lifting the \(Z_{\ket{0^m}}\) reflection operation to a (controlled) rotation \(e^{i\phi_j Z_{\ket{0^m}}}\) we can impose polynomial transformations of the singular values of \(A\), which then induces the claimed polynomial transformation of \(A\). It is typically convenient to use an additional ancilla qubit to implement \(e^{i\phi_j Z_{\ket{0^m}}}\).
We define a QSVT circuit as the unitary sequence
where \(\Phi = (\phi_1,\phi_2,\ldots,\phi_d)\). We have that
i.e., the unitary \(U_\Phi\) is a block-encoding of \(P^{(SV)}(A)\), were \(P\) is the same polynomial that appears in quantum signal processing because the 2D matrix of \(\eqref{eq:SVD2D}\) has the same form as the analogous 2D matrix in \(\eqref{eq:QSPR}\). We note that the constraints on the polynomials typically preclude direct implementation of the desired function as outlined above. By exploiting that \(-\Phi\) implements \(P^*\), we can use the circuit shown in Fig. 1 to implement a block-encoding of
for any definite-parity polynomial \(P_{\Re}\colon [-1,1]\rightarrow [-1,1]\) by appropriately choosing \(\Phi\) to implement a complex polynomial that fulfills the QSP conditions and then taking linear combinations of \(U_{\Phi}, U_{-\Phi}\) to give a block-encoding of \(P_{\Re}(A)\) [3, 5, 10].
Figure 1: The QSVT circuit \(U_\Phi\) which transforms a block-encoding \(U_A\) of \(A\) into a block-encoding of \(f(A)\) for definite-parity \(f: [-1,1]\rightarrow [-1,1]\) polynomial of degree \(d\). As discussed in the main text, the angles \(\{\phi_i\}\) can be calculated using efficient classical algorithms.
Dominant resource cost (gates/qubits)
Given a degree-\(d\) even-parity polynomial \(f\colon [-1,1]\rightarrow [-1,1]\) and a \((1,m,0)\)-block-encoding \(U_A\) of \(A\), one can implement a block-encoding of \(f(A)\) using \(d/2\) calls to \(U_A\), \(d/2\) calls to \(U_A^\dagger\), \(2d\) \(m\)-controlled Toffoli gates, and \(d\) single-qubit \(Z\) rotations (as shown in Fig. 1). Implementing a degree \(d+1\) odd polynomial additionally requires another call to \(U_A\), another two \(m\)-controlled Toffoli gate, and another single-qubit \(Z\) rotation. The QSVT circuit implements a \((1, m+1, 0)\)-block-encoding of \(f(A)\).
If \(U_A\) is imperfect (i.e., it is a \((1, m, \epsilon)\)-block-encoding of \(A\)), then [3, Lemma 22] shows that the error in \(f(A)\) is bounded by \(4d\sqrt{\epsilon}\); that is, QSVT implements a \((1, m+1, 4d\sqrt{\epsilon})\)-block-encoding of \(f(A)\). Moreover, if the norm of \(A\) is bounded away from \(1\), e.g., \(\nrm{A}\leq 1/2\), then the perturbation bound can be improved to \(\mathcal{O}\left( d\epsilon \right)\) [3, Lemma 23].
Given an initial state \(\ket{\psi}\), the success probability of implementing \(f(A) \ket{\psi}\) is given by \(|\bra{\psi} f(A)^\dag f(A) \ket{\psi}|^2\).
Caveats
Since the output must be subnormalized to ensure the existence of a unitary block-encoding of \(f(A)\), \(f\) must satisfy \(|f(x)| \leq 1~\forall~x \in [-1,1]\)
As noted above, \(f^{(SV)}(A)\) is only guaranteed to coincide with the matrix function \(f(A)\) for Hermitian \(A\). As an example, choosing \(f(x) = x^2\) we have \(f^{(SV)}(A) = \sum_i \sigma_i^2 \ketbra{v_i} {v_i}=A^\dagger A\) whereas \(A^2 = \sum_{i,j} \sigma_i \sigma_j \ket{w_i}\braket{v_i}{ w_j}\bra{v_j}\). As discussed above, for the Hermitian case we can implement a block-encoding of a mixed-parity function \(f\) by taking linear combinations of block-encodings of its even/odd parts. However, in the general case when \(\ket{w_i}\) and \(\ket{v_i}\) do not coincide, it does not seem to be possible to remove the parity constraint, as the odd \(\sum_i f_{\mathrm{odd}}(\sigma_i) \ketbra{w_i}{v_i}\) and even \(\sum_i f_{\mathrm{even}}(\sigma_i) \ketbra{v_i}{v_i}\) singular value transforms potentially map to different subspaces.
As discussed for quantum signal processing, while formally efficient classical algorithms have been developed for computing the angle sequence \(\Phi\), these either require very high accuracy arithmetics [3, 12], or use alternative methods with only partially proven guarantees [10, 13]. Nevertheless, these approaches have enabled the computation of angle sequences for polynomials of degree up to \(\sim10^4\).
As noted above, if \(f(A)\) has small singular values, then preparing the a quantum sate \(f(A)\ket{\psi}\) might require many repeated uses of its block-encoding, thus the normalization factor of \(f\) plays a crucial role in efficiency.
In many applications, one seeks to apply a function that is not a polynomial (e.g., \(e^x\), \(e^{ix}\), \(\mathrm{erf}(x)\)). In such cases, one needs to first approximate the desired function by a polynomial (incurring an approximation error \(\epsilon\)) in order to apply QSVT.
Example use cases
- Linear equation solving: apply a polynomial approximation of \(\frac{1}{x}\) to a block-encoding of \(A^\dagger\) to get an approximate block-encoding of the pseudoinverse \(A^+\).
- Hamiltonian simulation: apply polynomial approximations of \(\sin(x)\) and \(\cos(x)\) to a block-encoding of a Hamiltonian \(H\) and combine them with linear combination of unitaries and amplitude amplification to obtain a block-encoding of \(e^{iHt}\).
- Fixed-point amplitude amplification [14]: construct a polynomial that maps values in the domain \([a_{\min},1]\) to the range \([1-\delta,1]\), and apply this polynomial to a state-preparation unitary that prepares the desired state with amplitude \(a\). The result is amplification of the amplitude to at least \(1-\delta\) as long as \(a > a_{\min}\).
- For additional applications see [3, 9, 5, 15, 16].
Further reading
- The QSVT framework was introduced in [3] and is also discussed in detail in [17].
- A pedagogical tutorial of the QSVT framework is given in [5, 11].
- A streamlined derivation of QSVT is presented in [18].
Bibliography
-
Guang Hao Low and Isaac L. Chuang. Optimal hamiltonian simulation by quantum signal processing. Physical Review Letters, 118(1):010501, 2017. arXiv: https://arxiv.org/abs/1606.02685. doi:10.1103/PhysRevLett.118.010501.
-
Guang Hao Low and Isaac L. Chuang. Hamiltonian simulation by qubitization. Quantum, 3:163, 2019. arXiv: https://arxiv.org/abs/1610.06546. doi:10.22331/q-2019-07-12-163.
-
András Gilyén, Yuan Su, Guang Hao Low, and Nathan Wiebe. Quantum singular value transformation and beyond: exponential improvements for quantum matrix arithmetics. In Proceedings of the 51st ACM Symposium on the Theory of Computing (STOC), 193–204. 2019. arXiv: https://arxiv.org/abs/1806.01838. doi:10.1145/3313276.3316366.
-
Patrick Rall and Bryce Fuller. Amplitude estimation from quantum signal processing. Quantum, 7:937, 3 2023. arXiv: https://arxiv.org/abs/2207.08628. URL: https://doi.org/10.22331/q-2023-03-02-937, doi:10.22331/q-2023-03-02-937.
-
John M. Martyn, Zane M. Rossi, Andrew K. Tan, and Isaac L. Chuang. Grand unification of quantum algorithms. Physical Review X, 2(4):040203, 2021. arXiv: https://arxiv.org/abs/2105.02859. doi:10.1103/PRXQuantum.2.040203.
-
Ryu Hayakawa. Quantum algorithm for persistent betti numbers and topological data analysis. Quantum, 6:873, 12 2022. arXiv: https://arxiv.org/abs/2111.00433. URL: https://doi.org/10.22331/q-2022-12-07-873, doi:10.22331/q-2022-12-07-873.
-
Sam McArdle, András Gilyén, and Mario Berta. A streamlined quantum algorithm for topological data analysis with exponentially fewer qubits. arXiv: https://arxiv.org/abs/2209.12887, 2022.
-
Dominic W Berry, Yuan Su, Casper Gyurik, Robbie King, Joao Basso, Alexander Del Toro Barba, Abhishek Rajput, Nathan Wiebe, Vedran Dunjko, and Ryan Babbush. Quantifying quantum advantage in topological data analysis. arXiv: https://arxiv.org/abs/2209.13581, 2022.
-
Patrick Rall. Faster coherent quantum algorithms for phase, energy, and amplitude estimation. Quantum, 5:566, 10 2021. arXiv: https://arxiv.org/abs/2103.09717. URL: https://doi.org/10.22331/q-2021-10-19-566, doi:10.22331/q-2021-10-19-566.
-
Yulong Dong, Xiang Meng, K. Birgitta Whaley, and Lin Lin. Efficient phase-factor evaluation in quantum signal processing. Physical Review A, 103:042419, 2021. arXiv: https://arxiv.org/abs/2002.11649. doi:10.1103/PhysRevA.103.042419.
-
Lin Lin. Lecture notes on quantum algorithms for scientific computation. arXiv: https://arxiv.org/abs/2201.08309, 2022.
-
Jeongwan Haah. Product decomposition of periodic functions in quantum signal processing. Quantum, 3:190, 2019. arXiv: https://arxiv.org/abs/1806.10236. doi:10.22331/q-2019-10-07-190.
-
Rui Chao, Dawei Ding, András Gilyén, Cupjin Huang, and Márió Szegedy. Finding angles for quantum signal processing with machine precision. arXiv: https://arxiv.org/abs/2003.02831, 2020.
-
Theodore J. Yoder, Guang Hao Low, and Isaac L. Chuang. Fixed-point quantum search with an optimal number of queries. Physical Review Letters, 113(21):210501, 2014. arXiv: https://arxiv.org/abs/1409.3305. doi:10.1103/PhysRevLett.113.210501.
-
Lin Lin and Yu Tong. Optimal polynomial based quantum eigenstate filtering with application to solving quantum linear systems. Quantum, 4:361, 2020. arXiv: https://arxiv.org/abs/1910.14596. doi:10.22331/q-2020-11-11-361.
-
Lin Lin and Yu Tong. Near-optimal ground state preparation. Quantum, 4:372, 2020. arXiv: https://arxiv.org/abs/2002.12508. doi:10.22331/q-2020-12-14-372.
-
András Gilyén. Quantum Singular Value Transformation & Its Algorithmic Applications. PhD thesis, University of Amsterdam, 2019. URL: https://hdl.handle.net/11245.1/20e9733e-6014-402d-afa9-20f3cc4a0568.
-
Ewin Tang and Kevin Tian. A cs guide to the quantum singular value transformation. arXiv: https://arxiv.org/abs/2302.14324, 2023.
-
If \(\sigma_i=1\), then there is no need for \(\ket{\perp_i}, \ket{\perp_i'}\), and the subspaces \(S_i\), \(S_i'\) become one dimensional. ↩