Quantum linear system problems
Last updated
Last updated
The quantum linear system problem (QLSP) is a quantum variant of the linear system problem . Given the access to an invertible matrix and to a normalized quantum state , QLSP asks a construction of the solution quantum state
with bounded error.
Suppose the condition number of the coefficient matrix is and . The recent progress reveals some near-optimal quantum algorithms for solving QLSP with bounded error and complexity . In this example, we will deploy a much simpler (but sacrificing the total complexity) construction of the solution to QLSP.
The immediate idea for solving QLSP is approximately implementing the map . Hence, in light of QSP, the implementation boils down to a scalar function . Without loss of generality, we assume the matrix is normalized so that . Then, the condition number implies that the eigenvalues of lie in the interval . Hence, we have to find an odd polynomial approximation to on the interval . Here, the interval is set to rather than to exclude the singularity of at .
This improves the numerical stability.
Then, simply calling the subroutine yields the coefficients of the approximation polynomial in the Chebyshev basis. As a remark, the solver outputs all coefficients while we have to post-select those of odd order due to the parity constraint.
We use Newton's method for solving phase factors. The parameters of the solver is initiated as follows.
Gilyén, A., Su, Y., Low, G. H., & Wiebe, N. (2019, June). Quantum singular value transformation and beyond: exponential improvements for quantum matrix arithmetics. In Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing (pp. 193-204).
Dong, Y., Meng, X., Whaley, K. B., & Lin, L. (2021). Efficient phase-factor evaluation in quantum signal processing. Physical Review A, 103(4), 042419.
For numerical demonstration, we set and scale down the target function by a factor of so that
To numerically find the best polynomial approximating on the interval , we use a subroutine which solves the problem using convex optimization. We first set the parameters of the subroutine.
To visualize this polynomial approximation, we plot it with the target function. From the figure, we can find both agree very well on but have distinct regularity otherwise.
We verify the solved phase factors by computing the residual error in terms of the norm
Using equally spaced points, the residual error is which attains almost machine precision. We also plot the point-wise error.