Negative power function
Last updated
Last updated
As a generalization of the quantum linear system problem (QLSP), we consider the following problem: given the access to an invertible matrix and a normalized quantum state , we want to construct a quantum state
where is a integer larger than 1.
Similarly, the implement boils down to a scalar function . Without loss of generality, we assume the matrix is normalized. We have to find a polynomial with parity approximating over the interval
For numerical demonstration, we set , and scale down the target function by a factor of so that
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.
We want to find the best approximation polynomial with degree up to in terms of norm. To achieve it, we call cvx_poly_coef
, which solves the optimization problem and outputs the Chebyshev coefficients of the best approximation polynomial.
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.