This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

A Query-based Quantum Eigensolver

Shan Jin Institute of Fundamental and Frontier Sciences, University of Electronic Science and Technology of China, Chengdu, 610051, China    Shaojun Wu Institute of Fundamental and Frontier Sciences, University of Electronic Science and Technology of China, Chengdu, 610051, China    Guanyu Zhou Institute of Fundamental and Frontier Sciences, University of Electronic Science and Technology of China, Chengdu, 610051, China    Ying Li Graduate School of China Academy of Engineering Physics, Beijing 100193, China    Lvzhou Li Institute of Computer Science Theory, School of Data and Computer Science, Sun Yat-sen University, Guangzhou, 510006, China    Bo Li Key Laboratory of Mathematics Mechanization, Academy of Mathematics and Systems Science, Chinese Academy of Sciences, Beijing 100190, China    Xiaoting Wang [email protected] Institute of Fundamental and Frontier Sciences, University of Electronic Science and Technology of China, Chengdu, 610051, China
Abstract

Solving eigenvalue problems is crucially important for both classical and quantum applications. Many well-known numerical eigensolvers have been developed, including the QR and the power methods for classical computers, as well as the quantum phase estimation(QPE) method and the variational quantum eigensolver for quantum computers. In this work, we present an alternative type of quantum method that uses fixed-point quantum search to solve Type II eigenvalue problems. It serves as an important complement to the QPE method, which is a Type I eigensolver. We find that the effectiveness of our method depends crucially on the appropriate choice of the initial state to guarantee a sufficiently large overlap with the unknown target eigenstate. We also show that the quantum oracle of our query-based method can be efficiently constructed for efficiently-simulated Hamiltonians, which is crucial for analyzing the total gate complexity. In addition, compared with the QPE method, our query-based method achieves a quadratic speedup in solving Type II problems.

I Introduction

Quantum algorithms for quantum circuits have demonstrated their potential advantages in computational complexity over their classical counterparts, in solving various mathematical problems, such as the integer factorization problem Shor (1994), unsorted database search problem Grover (1997), linear equation problem Harrow et al. (2009) and simulating quantum systems Lloyd (1996); Berry et al. (2007). Another typical problem is the eigenvalue problem, important both in theory and in applications, and many useful numerical methods have so far been proposed for both classical and quantum circuits. For classical algorithms, well-known eigensolvers include the QR method Francis (1961, 1962); Kublanovskaya (1962), the Jacobi method Carl (1846); Golub and Van der Vorst (2000), and the Sturm sequences method Gupta (1972, 1973); for quantum algorithms, two major methods have been developed. The first one is the quantum phase estimation(QPE) Nielsen and Chuang (2002); Abrams and Lloyd (1999) (a subcircuit of Shor’s algorithm Shor (1994)). It uses the quantum Fourier transform(QFT) to find the eigenvalues and the corresponding eigenvectors for a given unitary operator. If the input state of the eigenstate register is in a superposition of different eigenstates, then the output state becomes an entangled state between the eigenvalue and the eigenstate registers. Hence a final measurement after the QPE circuit will derive one of the eigenvalues in the spectrum. The other useful quantum eigensolver is the variational quantum eigensolver(VQE) Peruzzo et al. (2014); Wang et al. (2019). VQE uses the quantum-classical hybrid computing architecture. It uses a parametrized quantum circuit to prepare the final state, and then uses classical computer to analyze the measurement results and optimize the parameters. Hence, VQE can be used to first find the ground energy of a given Hamiltonian matrix, then find the next lowest eigenvalue, and then one-by-one find all the eigenvalues in ascending order. In addition, a VQE algorithm on the full quantum system has also been proposed recently Wei et al. (2020).

Besides the QPE circuit, the Grover’s search algorithm Grover (1997) also has wide applications in quantum algorithm design. It rotates the initial state to the target state through a sequence of Grover iterations Grover (1997, 1998). Compared with the classical query complexity O(N)O(N), Grover’s algorithm achieves a quadratic speedup Nielsen and Chuang (2002); Hoyer (2000) and such quadratic speedup has been proved optimal Bennett et al. (1997); Boyer et al. (1998); Zalka (1999). Many applications of quantum search and the improvement of the method have been proposed Brassard and Hoyer (1997); Grover (2005); Yoder et al. (2014); Long et al. (1999); Long (2001); Long et al. (2002); Toyama et al. (2013). The application in amplitude amplification was proposed by Brassard et al based on the quantum search Brassard and Hoyer (1997); Brassard et al. (2002), and was independently discovered by Grover in 1998 Grover (1998). However, without knowing how many solutions the search problem has, it is difficult to determine the exact number of Grover iterations, resulting in the possibility of “undercooking” or “overcooking” Long (2001). In order to solve this problem, Grover then proposed a fixed-point search method, which guarantees the initial state to converge monotonically to the target state, though the quadratic speedup is lost Grover (2005). Later, an improved version of the fixed-point search was proposed, regaining the advantage of quadratic speedup Yoder et al. (2014).

In this work, inspired by the fixed-point search algorithm, we propose a query-based method to solve the Type II eigenvalue problem(i.e., finding the eigenvalue near a given value point). We set the unknown target eigenstate as the search target and transform the Type II eigenvalue problem into a query-based search problem. We show how to use the phase estimation circuit to construct the oracle of the fixed-point quantum search. We also discuss how to choose the initial states to guarantee a sufficiently large overlap with the unknown target eigenstate, which is crucial for the efficiency of the amplitude amplification, and in the meanwhile these initial states are easy to prepare in experiment. Thus, a query complexity of O(N)O(\sqrt{N}) can be achieved. In particular, when the oracle can be efficiently implemented, i.e., when the gate complexity of the QPE circuit is O(poly(logN))O(\text{poly}(\log N)), the entire gate complexity of our method becomes O(Npoly(logN))O(\sqrt{N}\text{poly}(\log N)), demonstrating a quadratic speedup over the complexity of the conventional QPE method to solve the same problem. Finally, as two examples, we apply our method to solving the Type II eigenvalue problems for the Heisenberg model and the hydrogen molecule.

II The eigenvalue problem and its classical algorithms

The general eigenvalue problem is formulated as follows: for a linear operator AA defined on a NN-dimensional Hilbert space \mathcal{H}, we hope to find the eigenvalues λk\lambda_{k} and the corresponding eigenvectors xkx_{k} such that Axk=λkxkAx_{k}=\lambda_{k}x_{k}, for all kk. In the matrix form, AA is an N×NN\times N complex matrix. When AA is a normal matrix, it has NN number of eigenvalues(some may be degenerate) and NN independent eigenvectors that form an orthogonal basis for \mathcal{H}. The basic assumption for classical eigensolvers is that AA has NN independent eigenvectors, not necessarily orthogonal to each other. In other words, we only discuss matrices that can be diagonalized through similarity transformation. In addition, we can identify two types of eigenvalue problems:

  • I.

    to find out the whole spectrum;

  • II.

    to find out particular eigenvalues in the spectrum, e.g., the eigenvalue near a given point, or the largest or the second-largest eigenvalue.

For Type I problems, the QR method Francis (1961, 1962); Kublanovskaya (1962) is one of the most popular and efficient algorithms for simultaneously calculating all the eigenvalues and the eigenvectors of AA, especially when AA is not sparse. The Jacobi and the Sturm sequences methods are also typical numerical algorithms to compute the whole spectrum of a Hermitian, sparse matrix. For problems of type II, the power and the inverse power methods are popular algorithms. The power method is good at approximating the eigenvalue with the maximum module, while the inverse power method is utilized to find the eigenvalue with the minimum module or the eigenvalue closest to a given point. In addition, the inverse power method is efficient to determine the eigenvector corresponding to a given eigenvalue Wilkinson (1988).

In terms of complexity, the computational cost is O(N3)O(N^{3}) for the QR, the Jacobi, the Sturm sequences and the inverse power methods, and O(N2)O(N^{2}) for the power method Quarteroni et al. (2010).

III The QPE circuit as a quantum eigensolver

One of the basic questions in quantum computation is, for the given computational problem, whether there exists a quantum algorithm whose gate complexity is strictly better than the extant classical algorithms. Typical examples are Shor’s algorithm and Grover’s search algorithm, which obtain exponential and quadratic speedups over their classical counterparts. For many applications of eigenvalues problems, where the dimension of the matrix AA could become extremely large, such as in big data and quantum mechanics, the O(N3)O(N^{3}) complexity is not good enough. For example, for a quantum system composed of nn qubits, the total dimension of the system is N=2nN=2^{n}, in which case, the above classical eigensolver algorithms, with complexity O(N3)=O(8n)O(N^{3})=O(8^{n}) or O(N2)=O(4n)O(N^{2})=O(4^{n}), become inefficient as nn increases. This represents an exponential complexity with respect to nn. Can we find a quantum eigensolver whose gate complexity is O(poly(n))O(\operatorname{poly}(n))? This is the question we would like to explore in this work. We will first study the quantum phase estimation(QPE) method, which is a Type I eigensolver.

The idea of using QPE circuit to solve the eigenvalue problem is straightforward. We assume AA is Hermitian and has the spectral decomposition: A=mλm|umum|A=\sum_{m}\lambda_{m}|u_{m}\rangle\langle u_{m}|, with A|um=λm|umA|u_{m}\rangle=\lambda_{m}|u_{m}\rangle. If AA is not Hermitian, but is a normal matrix, we can equivalently solve the eigenvalue problem for A+AA+A^{\dagger} and i(AA)i(A-A^{\dagger}), which are both Hermitian; if AA is non-normal, we can discuss a different problem to find the singular value of AA. In that case, we need to study a new Hermitian matrix A~\tilde{A}

A~=(0AA0)\displaystyle\tilde{A}=\begin{pmatrix}0&A\\ A^{\dagger}&0\end{pmatrix}

whose spectrum are the singular values of AA. Alternatively, we can study the eigenvalue problem for B=AAB=A^{\dagger}A.

In the following, we assume AA to be Hermitian. The total quantum processor consists of two parts: the eigenvalue register(containing rr qubits) and the eigenvector register(containing nn qubits), with n=logNn=\left\lceil{\log N}\right\rceil. Without loss of generality, we assume n=logNn=\log N to get rid of the cumbersome ceiling notations. Define U=e2πiAU=e^{2\pi iA}, which is a unitary gate on the eigenvector register. First we initialize the total system as |Φ=|0|φ|\Phi\rangle=|0\rangle|\varphi\rangle, where the initial state of the eigenvector register |φ|\varphi\rangle is randomly chosen from the unit sphere of an NN-dimensional Hilbert space, with |φ=i=1Nbi|ui|\varphi\rangle=\sum_{i=1}^{N}b_{i}|u_{i}\rangle and bi=ui|φb_{i}=\langle u_{i}|\varphi\rangle as shown in Fig. 1. We then apply UPEU_{PE} to |Φ|\Phi\rangle:

UPE|0|φ=i=1Nbi|λ~i|ui\displaystyle U_{PE}|0\rangle|\varphi\rangle=\sum_{i=1}^{N}b_{i}|\tilde{\lambda}_{i}\rangle|u_{i}\rangle (1)

where λ~i\tilde{\lambda}_{i} represents the approximation of the exact value λi\lambda_{i} due to the finite length rr with error O(2r)O(2^{-r}). Here, we have enclosed rr qubits in the eigenvalue register, which determines the precision of the calculated phase. The circuit of quantum phase estimation is shown in Fig. 1, where QFTQFT^{\dagger} represents the inverse quantum Fourier transform and WH=HrW_{H}=H^{\otimes r}, where HH is the Hadamard gate on a single qubit. We choose Uj=e2πijAU^{j}=e^{2\pi ijA}, where j=20,21,,2rj=2^{0},2^{1},\cdots,2^{r}. We are interested in solving the eigenvalue problems for AA where U=e2πiAU=e^{2\pi iA} can be efficiently simulated on the quantum processor, such as when AA is dd-sparse Berry et al. (2007).

Refer to caption
Figure 1: QPE circuit to solve a Type I eigenvalue problem. QFT{QFT}^{\dagger} is the inverse quantum Fourier transform and the unitary transformation UjU^{j} is Uj=e2πiAjU^{j}=e^{2\pi iAj}, where j=20,21,,2rj=2^{0},2^{1},\cdots,2^{r} and rr is the number of qubits in the eigenvalue register, determining the precision of the calculated phase. The unitary transformation WHW_{H} is WH=HrW_{H}=H^{\otimes r}, where HH is the Hadamard matrix.

For a given mm and a given initial state |φ|\varphi\rangle randomly chosen from a uniform distribution, we can prove that the probability P(p|um|φ|21N)1/eP\big{(}p\equiv|\langle u_{m}|\varphi\rangle|^{2}\geq\frac{1}{N}\big{)}\geq 1/e, for sufficiently large NN, which implies that we can find the minimum K=11K=11 such that 1(11/e)K0.991-(1-1/e)^{K}\geq 0.99 (with proof details in Appendix A). That is, if we repeat the random selection of the initial states for 1111 times and get 1111 initial states, |φk|\varphi_{k}\rangle, k=1,,11k=1,\cdots,11, then, with probability larger than 0.990.99, at least one of |φk|\varphi_{k}\rangle satisfies |um|φk|21N|\langle u_{m}|\varphi_{k}\rangle|^{2}\geq\frac{1}{N}. Hence, for each of the 1111 initial states, if we repeat implementing the QPE circuit and taking the final measurement for O(N)O(N) times, then we would be able to find all λm\lambda_{m} and |um|u_{m}\rangle. Thus, a Type I problem can be solved by the QPE method, with O(11N)=O(N)O(11N)=O(N) number of implementations of QPE circuits, giving a total gate complexity of O(Npoly(logN))O(N\text{poly}(\log N)), when U=e2πiAU=e^{2\pi iA} can be efficiently simulated.

It is worthwhile to mention that if we use the QPE method to solve a Type II problem, then we still need to implement the QPE circuits for O(11N)=O(N)O(11N)=O(N) times on average to obtain the desired eigenvalue λm\lambda_{m} near the given point λ0\lambda_{0}. One interesting question is whether can find a quantum algorithm to solve the Type II problem with a better complexity, which is the major motivation to study the query-based eigensolver.

IV Construction of Query-based Eigensolver

IV.1 Fixed-point quantum search

First, we briefly review how to implement the fixed-point quantum search. The advantage of fixed-point search over the non-fixed-point search is the asymptotic convergence of the system state to the target state after a sequence of fixed-point Grover iterations Grover (2005). Just like Grover’s original search design, the fixed-point search can also achieve the quadratic speedup in query complexity Yoder et al. (2014). Specifically, in an oracle-based search problem, there is a classical oracle function ff on the total set AA satisfying f(x)=1f(x)=1 if and only if xQAx\in Q\subset A, with |A|=N|A|=N and |Q|=MN|Q|=M\leq N. The goal is to find any of the MM solutions in QQ. In standard Grover’s search algorithm, one can construct an NN-dimensional quantum system to encode the classical data xAx\in A into its basis vectors {|x}\{|x\rangle\}. The initial state is chosen as |φ=1NxA|x|\varphi\rangle=\frac{1}{\sqrt{N}}\sum_{x\in A}|x\rangle, and the target state as |t=1MxQ|x|t\rangle=\frac{1}{\sqrt{M}}\sum_{x\in Q}|x\rangle. By appending an ancilla qubit |b|b\rangle, the quantum oracle OfO_{f} can be expressed as:

Of|x|b={|x|b1,xQ|x|b,xQ\displaystyle O_{f}|x\rangle|b\rangle=\begin{cases}|x\rangle|b\oplus 1\rangle,\quad&x\in Q\\ |x\rangle|b\rangle,\quad&x\notin Q\end{cases}

Based on OfO_{f}, we can construct the parametrized inversion operators Rt(βk)R_{t}(\beta_{k}) and Rφ(αk)R_{\varphi}(\alpha_{k}) with respect to |φ|\varphi\rangle and |t|t\rangle:

Rt(βk)\displaystyle R_{t}(\beta_{k}) =I(1eiβk)|tt|\displaystyle=I-(1-e^{i\beta_{k}})|t\rangle\langle t|
Rφ(αk)\displaystyle R_{\varphi}(\alpha_{k}) =I(1eiαk)|φφ|\displaystyle=I-(1-e^{i\alpha_{k}})|\varphi\rangle\langle\varphi|

where αk\alpha_{k} and βk\beta_{k} are angle parameters. It can be shown that by choosing appropriate values of αk\alpha_{k} and βk\beta_{k}, k=1,,lk=1,\cdots,l, the following Grover iteration sequence

U(l)=G(αl,βl)G(α1,β1)\displaystyle U^{(l)}=G(\alpha_{l},\beta_{l})\cdots G(\alpha_{1},\beta_{1}) (2)

will make the final state converge to target state |t|t\rangle asymptotically as ll increases, satisfying |t|U(l)|φ|21δ\left|\langle t|U^{(l)}|\varphi\rangle\right|^{2}\geq 1-\delta, where G(αj,βj)=Rt(βj)Rφ(αj)G(\alpha_{j},\beta_{j})=-R_{t}(\beta_{j})R_{\varphi}(\alpha_{j}) and ll is the number of iteration. When α=β=π\alpha=\beta=\pi, GG is reduced to the original non-fixed-point Grover iteration; when α=β=π3\alpha=\beta=\frac{\pi}{3} (or π3-\frac{\pi}{3} at some positions of RφR_{\varphi} and RtR_{t} in the oracle sequence), GG is reduced to Grover’s π/3\pi/3 fixed-point algorithm; when the value of {αk,βk}\{\alpha_{k},\beta_{k}\} is chosen according to the results by Yoder et al Yoder et al. (2014), GG is reduced to Yoder-Luo-Chuang(YLC)’s fixed-point algorithm, with a quadratic speedup. Since each Rt(βk)R_{t}(\beta_{k}) contains two quantum oracles OfO_{f},

Define μ=|t|φ|2=MN\mu=|\langle t|\varphi\rangle|^{2}=\frac{M}{N}. Assuming that each iteration requires two queries, we find the following optimal value of qq which can achieve the error threshold δ\delta:

q\displaystyle q =ln(δ/2)ln(1μ)1\displaystyle=\frac{\ln(\delta/2)}{\ln(1-\mu)}-1 (Grover’s π/3 method)\displaystyle\text{ (Grover's }\pi/3\text{ method)}
q\displaystyle q =ln(2/δ)μ1\displaystyle=\frac{\ln(2/\sqrt{\delta})}{\sqrt{\mu}}-1 (YLC’s method),\displaystyle\text{ (YLC's method)},

from which we can see that YLC’s method can achieve quadratic speedup: q=O(1μ)=O(N)q=O\big{(}\frac{1}{\sqrt{\mu}}\big{)}=O(\sqrt{N}).

IV.2 Solving eigenvalue problems by quantum search

Next, we show how to use fixed-point Grover’s search to solve a Type II eigenvalue problem on a quantum processor. Given an N×NN\times N Hermitian matrix AA, we assume it has the spectral decomposition: A=mλm|umum|A=\sum_{m}\lambda_{m}|u_{m}\rangle\langle u_{m}|, with A|um=λm|umA|u_{m}\rangle=\lambda_{m}|u_{m}\rangle, which is unknown to us before the calculation. To solve it on a quantum processor, we consider AA as a Hermitian operator on an nn-qubit system, with nlogNn\equiv\left\lceil{\log N}\right\rceil. Without loss of generality, we assume n=logNn=\log N to get rid of the cumbersome ceiling notations.

The target Type II problem is to find the eigenvalues near a given point λ0\lambda_{0}\in\mathbb{R}, and the corresponding eigenvectors. Mathematically, the problem can be formulated as searching for all λm\lambda_{m} within the ϵ\epsilon-neighborhood of λ0\lambda_{0}: Bϵ(λ0)[λ0ϵ,λ0+ϵ]B_{\epsilon}(\lambda_{0})\equiv[\lambda_{0}-\epsilon,\lambda_{0}+\epsilon]. If more than one solution is located in Bϵ(λ0)B_{\epsilon}(\lambda_{0}), our method will randomly output one of the solutions at the final measurement; if there is no solution in Bϵ(λ0)B_{\epsilon}(\lambda_{0}), we can always tell this from the final measurement outcome. When the latter happens, we can enlarge the value of ϵ\epsilon and redo the whole process for multiple times until we find a sufficiently large ϵ\epsilon such that at least one solution is located in Bϵ(λ0)B_{\epsilon}(\lambda_{0}). Hence, without loss of generality, in the following we assume there is one and only one eigenvalue located in Bϵ(λ0)B_{\epsilon}(\lambda_{0}). We further assume it is λ1\lambda_{1}. Then for quantum search, we can define the target state

|t=1MλmBϵ(λ0)|um,\displaystyle|t\rangle=\frac{1}{\sqrt{M}}\sum_{\lambda_{m}\in B_{\epsilon}(\lambda_{0})}|u_{m}\rangle,

where MM is the number of eigenvalues within Bϵ(λ0)B_{\epsilon}(\lambda_{0}). Under the unique-solution assumption, |t=|u1|t\rangle=|u_{1}\rangle.

The basic idea of solving a Type II eigenvalue problem through the quantum search is as follows. First we choose the initial state of the nn-qubit quantum processor as a superposition of all eigenvectors of AA: |φ=kbk|uk|\varphi\rangle=\sum_{k}b_{k}|u_{k}\rangle, such that the overlap p|t|φ|2=|b1|2p\equiv|\langle t|\varphi\rangle|^{2}=|b_{1}|^{2} is nonzero (later we will show we can further guarantee that such |φ|\varphi\rangle with p1Np\geq\frac{1}{N}, can be found through a fixed number of random selections). Then quantum search can be applied to amplify the overlap pp through a sequence of fixed-point Grover iterations until pp is sufficiently close to 11. Finally a single measurement is enough to output the target eigenvector |t=|u1|t\rangle=|u_{1}\rangle and the corresponding eigenvalue λ1\lambda_{1}.

Specifically, we need to figure out how to design the quantum oracle Rt(β)R_{t}(\beta) for this particular problem. The classical oracle ff should satisfy f(um)=1f(u_{m})=1 for λmBϵ(λ0)\lambda_{m}\in B_{\epsilon}(\lambda_{0}), and f(um)=0f(u_{m})=0 for λmBϵ(λ0)\lambda_{m}\notin B_{\epsilon}(\lambda_{0}). Hence, Rt(β)R_{t}(\beta) should satisfy

Rt(β)|um={eiβ|um,if λmBϵ(λ0)|um,if λmBϵ(λ0)\displaystyle R_{t}(\beta)|u_{m}\rangle=\begin{cases}e^{i\beta}|u_{m}\rangle,&\mbox{if }\lambda_{m}\in B_{\epsilon}(\lambda_{0})\\ |u_{m}\rangle,&\mbox{if }\lambda_{m}\notin B_{\epsilon}(\lambda_{0})\end{cases}

The action of Rt(β)R_{t}(\beta) is to add a relative phase eiβe^{i\beta} to all target solutions |um|u_{m}\rangle. We need a basic component in Rt(β)R_{t}(\beta) whose input is an eigenvector |um|u_{m}\rangle, and whose output is the corresponding eigenvector λm\lambda_{m}, which determines whether to add the relative phase eiβe^{i\beta}. A candidate gate to implement such component is a quantum phase estimation gate UPE=e2πiAU_{PE}=e^{2\pi iA}. Indeed, Rt(β)R_{t}(\beta) can be implemented by the circuit shown in Fig. 2, where Z(β)=diag(1,eiβ)Z(\beta)=\text{diag}(1,e^{i\beta}).

Refer to caption
Figure 2: Query-based method to solve Type II problems. UPEU_{PE} is the phase estimate mentioned in the previous section. The Z-gate in the circuit is Z(β)=diag(1,eiβ)Z(\beta)=\text{diag}(1,e^{i\beta}). The first control gate is CZ(β)=λ~jBϵ(λ0)|λ~jλ~j|Z(β)+λ~jBϵ(λ0)|λ~jλ~j|ICZ(\beta)=\sum_{\tilde{\lambda}_{j}\in B_{\epsilon}(\lambda_{0})}|\tilde{\lambda}_{j}\rangle\langle\tilde{\lambda}_{j}|\otimes Z(\beta)+\sum_{\tilde{\lambda}_{j}\notin B_{\epsilon}(\lambda_{0})}|\tilde{\lambda}_{j}\rangle\langle\tilde{\lambda}_{j}|\otimes I. The second control gate is CZ(α)=|00|Z(α)+|11|ICZ^{\prime}(\alpha)=|0\rangle\langle 0|\otimes Z(\alpha)+|1\rangle\langle 1|\otimes I. Rt(β)R_{t}(\beta) is the rotation of the target state and Rφ(α)R_{\varphi}(\alpha) is the rotation of the initial state.

Hence, the total quantum processor is composed of three registers, the rr-qubit eigenvalue register initialized as |0|0\rangle, the nn-qubit eigenvector register initialized as |φ|\varphi\rangle, and the ancilla single-qubit register initialized as |1|1\rangle. Then the total initial state becomes |Φ=|0|φ|1|\Phi\rangle=|0\rangle|\varphi\rangle|1\rangle as in Fig. 2. In addition, due to the finite precision of the eigenvalue register, each eigenvalue λm\lambda_{m} is denoted by a finite-precision state |λ~m|\tilde{\lambda}_{m}\rangle. Define the conditional phase gate CZ(β)CZ(\beta) on the eigenvalue register and the ancilla qubit to be:

CZ(β)=λ~mBϵ(λ0)|λ~mλ~m|Z(β)+λ~mBϵ(λ0)|λ~mλ~m|I\displaystyle CZ(\beta)=\sum_{\tilde{\lambda}_{m}\in B_{\epsilon}(\lambda_{0})}|\tilde{\lambda}_{m}\rangle\langle\tilde{\lambda}_{m}|\otimes Z(\beta)+\sum_{\tilde{\lambda}_{m}\notin B_{\epsilon}(\lambda_{0})}|\tilde{\lambda}_{m}\rangle\langle\tilde{\lambda}_{m}|\otimes I (3)

Then the action of Rt(β)UPECZ(β)UPER_{t}(\beta)\equiv U^{\dagger}_{PE}\cdot CZ(\beta)\cdot U_{PE} on |Φ|\Phi\rangle gives:

Rt(β)|Φ=UPECZ(β)UPE|0|φ|1UPECZ(β)i=1Nbi|λ~i|ui|1=UPE(i=2Nbi|λ~i|ui+b1eiβ|λ~1|u1)|1=|0(i=2Nbi|ui+eiβb1|u1)|1,\displaystyle\begin{split}R_{t}(\beta)|\Phi\rangle=&U^{\dagger}_{PE}CZ(\beta)U_{PE}|0\rangle|\varphi\rangle|1\rangle\\ \approx&U^{\dagger}_{PE}CZ(\beta)\sum_{i=1}^{N}b_{i}|\tilde{\lambda}_{i}\rangle|u_{i}\rangle\otimes|1\rangle\\ =&U^{\dagger}_{PE}\big{(}\sum_{i=2}^{N}b_{i}|\tilde{\lambda}_{i}\rangle|u_{i}\rangle+b_{1}e^{i\beta}|\tilde{\lambda}_{1}\rangle|u_{1}\rangle\big{)}\otimes|1\rangle\\ =&|0\rangle\big{(}\sum_{i=2}^{N}b_{i}|u_{i}\rangle+e^{i\beta}b_{1}|u_{1}\rangle\big{)}|1\rangle,\end{split}

where the approximate sign \approx is due to the finite precision of λ~m\tilde{\lambda}_{m} to represent λm\lambda_{m}. We can see that such construction of Rt(β)R_{t}(\beta) is exactly what we need to implement the YLC’s fixed-point search method Yoder et al. (2014). On the other hand, given the initial state φ\varphi, there exists a unitary VV such that |φ=V|0|\varphi\rangle=V|0\rangle. Then we can construct Rφ(α)VCZ(αk)VR_{\varphi}(\alpha)\equiv VCZ^{\prime}(\alpha_{k})V^{\dagger}, where CZ(α)CZ^{\prime}(\alpha) is the controlled-phase gate acting on the eigenvector qubit and the ancilla, and has the form:

CZ(α)=|00|Z(α)+|11|I\displaystyle CZ^{\prime}(\alpha)=|0\rangle\langle 0|\otimes Z(\alpha)+|1\rangle\langle 1|\otimes I (4)

Based on Rφ(α)R_{\varphi}(\alpha) and Rt(β)R_{t}(\beta), the fixed-point Grover iteration becomes G=Rφ(α)Rt(β)G=-R_{\varphi}(\alpha)R_{t}(\beta). Then we choose αk\alpha_{k} and βk\beta_{k} for each Grover iteration G(αk,βk)G(\alpha_{k},\beta_{k}) in the search sequence, according to the following rule Yoder et al. (2014):

αj=βlj+1=2cot1(tan(2πj/L)1η2)\displaystyle\alpha_{j}=\beta_{l-j+1}=-2\cot^{-1}(\tan(2\pi j/L)\sqrt{1-\eta^{2}}) (5)

where η1=T1/L(1/δ)\eta^{-1}=T_{1/L}(1/\sqrt{\delta}), and ll is the number of iterations with L=2l+1L=2l+1. Here TL(x)=cos[Lcos1(x)]T_{L}(x)=\cos[L\cos^{-1}(x)] is the LthL^{th} Chebyshev polynomial of the first kind, and δ\delta is the error requirement of the search results. So for error requirement δ\delta, we can obtain the optimal query number qq:

q=log(2/δ)p1.\displaystyle q=\frac{\log(2/\sqrt{\delta})}{\sqrt{p}}-1. (6)

where q=2lq=2l represents the number of phase-estimation gates used in our proposal Yoder et al. (2014). If we assume, after qq number of fixed-point queries, the eigenvalue and the eigenvector registers becomes:

|Ψ|0|ψ=|0(c1|u1+i1ci|ui),\displaystyle|\Psi\rangle\equiv|0\rangle|\psi\rangle=|0\rangle(c_{1}|u_{1}\rangle+\sum_{i\neq 1}c_{i}|u_{i}\rangle), (7)

where the overlap |c1|2|c_{1}|^{2} between |u1|u_{1}\rangle and |ψ|\psi\rangle is close to 11, then applying one more QPE gate to |Ψ|\Psi\rangle will generate the final state

UPE|0|ψ=c1|λ~1|u1+i1ci|λ~i|ui,\displaystyle U_{PE}|0\rangle|\psi\rangle=c_{1}|\tilde{\lambda}_{1}\rangle|u_{1}\rangle+\sum_{i\neq 1}c_{i}|\tilde{\lambda}_{i}\rangle|u_{i}\rangle, (8)

where λ~i\tilde{\lambda}_{i} is the approximation of the eigenvalue λi\lambda_{i} corresponding to the eigenstate |ui|u_{i}\rangle. Hence, when we measure the first register, we can get the desired |λ~1|\tilde{\lambda}_{1}\rangle, |u1|u_{1}\rangle with high probability. Thus, the Type II eigenvalue problem is solved. The algorithm flow chart is summarized in the following.

Algorithm 1 A query-based quantum eigensolver
procedure eigensolver(αj,βj,|φk,q\alpha_{j},\beta_{j},|\varphi_{k}\rangle,q)
     Prepare 11 initial states |φk|\varphi_{k}\rangle
     for k=1:11 do
         |ϕ(0)=|φk|\phi^{(0)}\rangle=|\varphi_{k}\rangle
         for j=1:qq do
              Rφk(αj)=I(1eiαj)|φkφk|R_{\varphi_{k}}(\alpha_{j})=I-(1-e^{i\alpha_{j}})|\varphi_{k}\rangle\langle\varphi_{k}|
              Rt(βj)=I(1eiβj)|tt|R_{t}(\beta_{j})=I-(1-e^{i\beta_{j}})|t\rangle\langle t|
              |ϕ(j)=Rφk(αj)Rt(βj)|ϕ(j1)|\phi^{(j)}\rangle=-R_{\varphi_{k}}(\alpha_{j})R_{t}(\beta_{j})|\phi^{(j-1)}\rangle
         end for
         |ψk=|ϕ(j)|\psi_{k}\rangle=|\phi^{(j)}\rangle
     end for
     return {|ψk}\{|\psi_{k}\rangle\}
end procedure

IV.3 Initial state preparation for efficient search

From Eqn. (6), we can see that the greater the overlap between the initial state |φ|\varphi\rangle and target state |t|t\rangle, the fewer number of queries qq is required. Hence, the choice of the initial state is crucial in order to keep qq small and keep the query-based method efficient. From the discussion in Appendix A, if the initial state |φ|\varphi\rangle is randomly chosen from the uniform distribution on the unit sphere of N\mathbb{C}^{N}, with |φ=j=1Nbj|uj|\varphi\rangle=\sum_{j=1}^{N}b_{j}|u_{j}\rangle and assuming the target state |t=|u1|t\rangle=|u_{1}\rangle, then the probability of the overlap p=|b1|2=|u1|φ|2p=|b_{1}|^{2}=|\langle u_{1}|\varphi\rangle|^{2} to be larger than 1N\frac{1}{N} is given by

P(|b1|21N)=(11N)N11e,for sufficiently large N.\displaystyle P(|b_{1}|^{2}\geq\frac{1}{N})=(1-\frac{1}{N})^{N-1}\approx\frac{1}{e},\,\text{for sufficiently large }N. (9)

This implies that we can find the minimum K=11K=11 such that 1(11/e)K0.991-(1-1/e)^{K}\geq 0.99. In other words, if we prepare a set of 1111 randomly-chosen initial states {|φk}\{|\varphi_{k}\rangle\}, then the probability of at least one of |φk|\varphi_{k}\rangle’s satisfying |φk|t|1/N|\langle\varphi_{k}|t\rangle|\geq 1/\sqrt{N} is larger than 0.990.99. Such minimum value K=11K=11 is independent of the size NN of the eigenvalue problem. For each |φk|\varphi_{k}\rangle, if we implement the fixed-point query sequence with q=Nlog(2/δ)1q=\sqrt{N}\log(2/\sqrt{\delta})-1 for 1111 times, then at least one of sequence after the final measurement will generate the final state |λ~1|u1|\tilde{\lambda}_{1}\rangle|u_{1}\rangle with probability larger than 0.990.99. Hence, the total query complexity of our method is O(11q)=O(N)O(11q)=O(\sqrt{N}).

In addition, as discussed in the appendix, the set of 1111 randomly-chosen initial states can be substituted by a set of 1111 computational basis states, which can be efficiently generated in the experiment. For example, if we can efficiently generate the ground state |000|00\cdots 0\rangle of an nn-qubit system, then all the other computational basis state can be efficiently prepared from the ground state with no more than logN=n\log N=n number of bit-flips.

IV.4 Complexity analysis

Analyzing the complexity of the quantum circuit in Fig. 2, we can see that the efficiency of the proposed query-based eigensolver algorithm depends on whether the unitary gate UPEU_{PE}(or U=e2πiAU=e^{2\pi iA} in particular) can be efficiently generated. We can identify two cases when this is valid: (1) if AA is a dd-sparse matrix Berry et al. (2007); (2) if AA is an inherent Hamiltonian that can be generated directly and efficiently on the quantum processor. In these cases, the complexity of generating UPEU_{PE} becomes O(poly(logN))O(\operatorname{poly}(\log N)). As we can prepare the initial state |φ|\varphi\rangle such that p=|u1|φ|21Np=|\langle u_{1}|\varphi\rangle|^{2}\geq\frac{1}{N}, the query complexity of our method is q=O(N)q=O(\sqrt{N}). Since the total gate complexity is equal to the total query complexity multiplied by the oracle gate complexity, i.e. the complexity of UPEU_{PE}, we have the total complexity of our algorithm to be O(Npoly(logN))O(\sqrt{N}\text{poly}(\log N)). Compared with the complexity of using QPE eigensolver to solve a Type II problem, our query-based eigensolver obtains a quadratic speedup.

V Applications

In this section, we apply our algorithm to two eigenvalues problems in quantum physics. One is the Heisenberg model, and the other is the hydrogen molecule.

V.1 The Heisenberg model

The Heisenberg model is a well-known and useful testbed to study many-body physics and quantum information. The Hamiltonian of an nn-qubit Heisenberg model is

H=j=1nJxσjxσj+1x+Jyσjyσj+1y+Jzσjzσj+1z+hσjz,\displaystyle H=\sum_{j=1}^{n}J_{x}\sigma_{j}^{x}\sigma_{j+1}^{x}+J_{y}\sigma_{j}^{y}\sigma_{j+1}^{y}+J_{z}\sigma_{j}^{z}\sigma_{j+1}^{z}+h\sigma_{j}^{z}, (10)

where Jx,Jy,JzJ_{x},J_{y},J_{z} are coupling constants and hh indicates the external magnetic field. σk\sigma^{k}, k=x,y,zk=x,y,z are Pauli operators, and σjk\sigma_{j}^{k} denotes σk\sigma^{k} acting on the jj-th qubit. With further assumption of the periodic boundary condition, we assume σn+1k=σ1k\sigma_{n+1}^{k}=\sigma_{1}^{k}. Given HH and λ0\lambda_{0}, our task is to find the eigenvalue λ1\lambda_{1} of HH near λ0\lambda_{0} and the corresponding eigenstate |u1|u_{1}\rangle. In order to facilitate the simulation, we reconstruct a new Hamiltonian H~=Hλ0I\tilde{H}=H-\lambda_{0}I, and then the original task is equivalent to solving the Type II eigenvalue problem for H~\tilde{H} near the point λ~0=0\tilde{\lambda}_{0}=0. As mentioned earlier in the paper, we can use the query-based quantum eigensolver to solve this problem, using the quantum circuit shown in Fig. 2.

In the following, we present the simulation results for two cases of the Heisenberg model with n=4,5n=4,5. For each case, we randomly choose the parameters Jx,Jy,Jz,hJ_{x},J_{y},J_{z},h from the uniform distribution on [0,1][0,1]. In order to verify the efficiency of our proposed initial-state preparation method, we apply two methods to generate the initial state |ψ|\psi\rangle: (1) randomly choosing 1111 computational basis states |xk|x_{k}\rangle, xk{1,,N}x_{k}\in\{1,\cdots,N\}, (2) randomly generating 1111 states |yk|y_{k}\rangle from the uniform distribution on the unit sphere in n\mathbb{C}^{n}. According to the previous discussion, there exists at least one out of the 11 initial states satisfying the overlap p=b112np=b_{1}\geq\frac{1}{2^{n}} with a high probability(0.99\geq 0.99), assuming the target state is |u1|u_{1}\rangle, and |b1|2=|u|1φ|2|b_{1}|^{2}=|\langle u|_{1}\varphi\rangle|^{2}. Substituting p=12np=\frac{1}{2^{n}} and error threshold δ=0.01\delta=0.01 into Eqn. (6), we obtain the minimum values of the query number qmin=11q_{\min}=11 for n=4n=4, and qmin=16q_{\min}=16 for n=5n=5. In the circuit design, for each case of n=4n=4 and n=5n=5, our query-based eigensolver circuit encloses 44 or 55 qubits as the eigenvector register, 77 qubits as the phase register and one more qubit as the ancilla. Next we implement our the query-based eigensolver 1111 times for each initial state |ψ=|xk|\psi\rangle=|x_{k}\rangle, or |ψ=|yk|\psi\rangle=|y_{k}\rangle, k=1,,11k=1,\cdots,11.

Table 1 and 2 summarize the simulation results for n=4n=4 and n=5n=5. For n=4n=4, after q=11q=11 fixed-point Grover’s queries, there are four |xk|x_{k}\rangle’s satisfying p11/16p_{1}\geq 1/16 with final fidelity F0.9933F\geq 0.9933, and three |yk|y_{k}\rangle’s satisfying p21/16p_{2}\geq 1/16 with F0.9892F\geq 0.9892(Table 1). Analogously, for n=5n=5, after q=16q=16 fixed-point Grover’s queries, there are four |xk|x_{k}\rangle satisfying p11/32p_{1}\geq 1/32, with F10.9937F_{1}\geq 0.9937, and six |yk|y_{k}\rangle satisfying p21/32p_{2}\geq 1/32, with F20.9724F_{2}\geq 0.9724(Table 2). Thus, our query-based method is able to solve the Type II eigenvalue problem for the Heisenberg model, within the expected accuracy and computational complexity.

Initial State |x1|x_{1}\rangle |x2|x_{2}\rangle |x3|x_{3}\rangle |x4|x_{4}\rangle |x5|x_{5}\rangle |x6|x_{6}\rangle |x7|x_{7}\rangle |x8|x_{8}\rangle |x9|x_{9}\rangle |x10|x_{10}\rangle |x11|x_{11}\rangle
Overlap p1p_{1} 0.0084 2.416e-33 4.577e-33 0.0645 4.026e-33 0.1404 0.1301 1.490e-32 4.600e-33 0.0645 1.233e-32
Fidelity F1F_{1} 0.3931 2.399e-33 4.502e-33 0.9956 4.005e-33 0.9960 0.9933 1.484e-32 4.524e-33 0.9956 1.225e-32
Initial State |y1|y_{1}\rangle |y2|y_{2}\rangle |y3|y_{3}\rangle |y4|y_{4}\rangle |y5|y_{5}\rangle |y6|y_{6}\rangle |y7|y_{7}\rangle |y8|y_{8}\rangle |y9|y_{9}\rangle |y10|y_{10}\rangle |y11|y_{11}\rangle
Overlap p2p_{2} 0.0545 0.0242 0.0048 0.05632 0.0385 0.1068 0.0329 0.0651 0.1123 0.0451 0.0226
Fidelity F2F_{2} 0.9921 0.7965 0.2469 0.9944 0.9428 0.9892 0.9016 0.9986 0.9893 0.9726 0.7706
Table 1: Simulation results for the 44-qubit Heisenberg model. By randomly selection, we choose Jx=0.2365,Jy=0.8237,Jz=0.3689J_{x}=0.2365,J_{y}=0.8237,J_{z}=0.3689 and h=0.7326h=0.7326. We choose 1111 |xk|x_{k}\rangle’s and 1111 |yk|y_{k}\rangle’s as the initial states. Here pp denotes the overlap between the initial state and the target state |t|t\rangle, and FF denotes the final fidelity after q=11q=11 fixed-point Grover’s queries. Simulation results show that there are four |xk|x_{k}\rangle’s satisfying p1/16p\geq 1/16 with F0.9933F\geq 0.9933, and three |yk|y_{k}\rangle’s satisfying p1/16p\geq 1/16 with F0.9892F\geq 0.9892.
Initial State |x1|x_{1}\rangle |x2|x_{2}\rangle |x3|x_{3}\rangle |x4|x_{4}\rangle |x5|x_{5}\rangle |x6|x_{6}\rangle |x7|x_{7}\rangle |x8|x_{8}\rangle |x9|x_{9}\rangle |x10|x_{10}\rangle |x11|x_{11}\rangle
Overlap p1p_{1} 0.1853 7.704e-34 3.131e-32 0.1105 1.083e-34 0.1128 5.566e-32 1.738e-32 0.1128 0.0285 6.068e-32
Fidelity F1F_{1} 0.9937 3.150e-34 2.845e-32 0.9967 4.458e-35 0.9981 4.937e-32 1.804e-32 0.9981 0.9793 4.241e-32
Initial State |y1|y_{1}\rangle |y2|y_{2}\rangle |y3|y_{3}\rangle |y4|y_{4}\rangle |y5|y_{5}\rangle |y6|y_{6}\rangle |y7|y_{7}\rangle |y8|y_{8}\rangle |y9|y_{9}\rangle |y10|y_{10}\rangle |y11|y_{11}\rangle
Overlap p2p_{2} 0.0275 0.0757 0.0311 0.1294 0.0525 0.0861 0.0074 0.0396 0.1442 0.0235 0.0234
Fidelity F2F_{2} 0.9261 0.9724 0.9698 0.9838 0.9847 0.9846 0.4863 0.9850 0.9884 0.9218 0.8968
Table 2: Simulation results for the 55-qubit Heisenberg model. By randomly selection, we choose Jx=0.9489,Jy=0.3456,Jz=0.5629J_{x}=0.9489,J_{y}=0.3456,J_{z}=0.5629 and h=0.7475h=0.7475. Analogous to the n=4n=4 case, we choose 1111 |xk|x_{k}\rangle’s and 1111 |yk|y_{k}\rangle’s as the initial states. After q=16q=16 fixed-point Grover’s queries, there are four |xk|x_{k}\rangle satisfying p1/32p\geq 1/32 with F0.9937F\geq 0.9937, and six |yk|y_{k}\rangle satisfying p1/32p\geq 1/32 with F0.9724F\geq 0.9724.

V.2 The hydrogen molecule

To illustrate our proposed algorithm, we simulate the hydrogen molecule to find an eigenvalue near a given point and its corresponding eigenstate. After Born-Oppenheimer approximation, the Hamiltonian of the hydrogen molecule is as follows:

H=i,jhijaiaj+12i,j,k,lhijklaiajakal,\displaystyle H=\sum_{i,j}h_{ij}a^{\dagger}_{i}a_{j}+\frac{1}{2}\sum_{i,j,k,l}h_{ijkl}a^{\dagger}_{i}a^{\dagger}_{j}a_{k}a_{l}, (11)

where the coefficients hijh_{ij} and hijklh_{ijkl} are one- and two-electron overlap integrals Aspuru-Guzik et al. (2005); Whitfield et al. (2011); McWeeny (1992). The operators aja^{\dagger}_{j} and aja_{j} are the creation operator and the annihilation operators, respectively. After the Jordan-Wigner transformation Whitfield et al. (2011), the Hamiltonian HH becomes

HJW=0.81261I+0.171201σ0z+0.171201σ1z0.2227965σ2z0.2227965σ3z+0.16862325σ1zσ0z+0.12054625σ2zσ0z+0.165868σ2zσ1z+0.165868σ3zσ0z+0.12054625σ3zσ1z+0.17434925σ3zσ2z0.04532175σ3xσ2xσ1yσ0y+0.04532175σ3xσ2yσ1yσ0x+0.04532175σ3yσ2xσ1xσ0y0.04532175σ3yσ2yσ1xσ0x\displaystyle\begin{split}H_{JW}=&-0.81261I+0.171201\sigma^{z}_{0}+0.171201\sigma^{z}_{1}-0.2227965\sigma^{z}_{2}-0.2227965\sigma^{z}_{3}\\ &+0.16862325\sigma^{z}_{1}\sigma^{z}_{0}+0.12054625\sigma^{z}_{2}\sigma^{z}_{0}+0.165868\sigma^{z}_{2}\sigma^{z}_{1}+0.165868\sigma^{z}_{3}\sigma^{z}_{0}\\ &+0.12054625\sigma^{z}_{3}\sigma^{z}_{1}+0.17434925\sigma^{z}_{3}\sigma^{z}_{2}-0.04532175\sigma^{x}_{3}\sigma^{x}_{2}\sigma^{y}_{1}\sigma^{y}_{0}\\ &+0.04532175\sigma^{x}_{3}\sigma^{y}_{2}\sigma^{y}_{1}\sigma^{x}_{0}+0.04532175\sigma^{y}_{3}\sigma^{x}_{2}\sigma^{x}_{1}\sigma^{y}_{0}-0.04532175\sigma^{y}_{3}\sigma^{y}_{2}\sigma^{x}_{1}\sigma^{x}_{0}\end{split} (12)

We aim to solve the eigenvalue problem for HJWH_{JW} near a given point λ0=0.8837\lambda_{0}=-0.8837. For convenience, we reconstruct a new Hamiltonian H~=HJWλ0I\tilde{H}=H_{JW}-\lambda_{0}I. In order to apply our method to H~\tilde{H}, we enclose 44 qubits in the eigenvector register, 77 qubits in the phase register and one more qubit as the ancilla. With the error threshold chosen as δ=0.01\delta=0.01, we find the minimum query number required is qmin=11q_{\min}=11. Analogous to the Heisenberg model, we randomly choose 1111 |xk|x_{k}\rangle’s and 1111 |yk|y_{k}\rangle’s as the initial states, which guarantees that at least one of them satisfies p12n=1/16p\geq\frac{1}{2^{n}}=1/16. Indeed, simulation results demonstrate that, after q=11q=11 queries, there are two |xk|x_{k}\rangle’s satisfying p1/16p\geq 1/16, with F0.9917F\geq 0.9917, and there are four |yk|y_{k}\rangle’s satisfying p1/16p\geq 1/16 with F0.9870F\geq 0.9870 (as shown in Table 3), in line with our expectation.

Initial State |x1|x_{1}\rangle |x2|x_{2}\rangle |x3|x_{3}\rangle |x4|x_{4}\rangle |x5|x_{5}\rangle |x6|x_{6}\rangle |x7|x_{7}\rangle |x8|x_{8}\rangle |x9|x_{9}\rangle |x10|x_{10}\rangle |x11|x_{11}\rangle
Overlap pp 0 0 0 0 0 0 0.5 0 0 0.5 0
Fidelity FF 0 0 0 0 0 0 0.9917 0 0 0.9917 0
Initial State |y1|y_{1}\rangle |y2|y_{2}\rangle |y3|y_{3}\rangle |y4|y_{4}\rangle |y5|y_{5}\rangle |y6|y_{6}\rangle |y7|y_{7}\rangle |y8|y_{8}\rangle |y9|y_{9}\rangle |y10|y_{10}\rangle |y11|y_{11}\rangle
Overlap pp 0.0211 0.0044 0.0324 0.1028 0.0021 0.0447 0.0790 0.0570 0.1089 0.0116 0.0695
Fidelity FF 0.7433 0.2238 0.8929 0.9870 0.1146 0.9708 0.9950 0.9947 0.9883 0.5041 0.9973
Table 3: Simulation results for the hydrogen molecule. Analogous to the Heisenberg model, we choose 1111 |xk|x_{k}\rangle’s and 1111 |yk|y_{k}\rangle’s as the initial states. After q=11q=11 queries, there are two |xk|x_{k}\rangle’s satisfying p1/16p\geq 1/16,with F0.9917F\geq 0.9917; and there are four |yk|y_{k}\rangle satisfying p1/16p\geq 1/16 with F0.9870F\geq 0.9870.

VI Conclusion

In this work, we have shown how to use phase estimation circuit to construct the quantum oracle of the fixed-point quantum search to solve Type II eigenvalue problems. This method can serve as a useful complement to the well-known QPE method, which is a typical Type I quantum eigensolver. We have analyzed the gate complexity of our query-based eigensolver and find that, if U=e2πiAU=e^{2\pi iA} can be efficiently generated on the quantum processor, then the overall complexity of our method is O(Npoly(logN))O(\sqrt{N}\,\text{poly}(\log N)). Compared with the complexity of using the QPE method to solve the same Type I problem, our proposed method has a quadratic speedup. In other words, the QPE method and the query-based method have their respective advantages: one is better at solving Type I problems, and the other is better at Type II. Notice that, in spite of the potential quantum speedup, there is still a gap between the application range of the quantum eigensolvers and that of the classical eigensolvers. Both the QPE method and the query-based eigensolver can only solve for a normal matrix, i.e., a matrix that is unitarily diagonalizable; in comparison, classical eigensolvers, such as the QR method and the power method, can solve for any diagonalizable matrices. How to construct the quantum eigensolver for a diagonalizable but not unitarily-diagonalizable matrix deserves further investigation. Moreover, the question whether one is able to find a quantum eigensolver with a gate complexity O(poly(logN))O(\text{poly}(\log N)) remains open.

Acknowledgments

The authors gratefully acknowledge the grant from National Key R&D Program of China, Grant No.2018YFA0306703. Y. L. thanks National Natural Science Foundation of China, Grant No. 11875050 and NSAF, Grant No. U1930403. L.L. thanks National Natural Science Foundation of China, Grant No. 61772565 and Guangdong Basic and Applied Basic Research Foundation Grant No. 2020B1515020050. B.L. is partly supported by the National Natural Science Foundation of China, Grant No. 61873262. We also thank Xiaokai Hou, Dingding Wen, Yuhan Huang, and Qingyu Li for helpful and inspiring discussions.

References

  • Shor (1994) P. W. Shor, in Proceedings 35th annual symposium on foundations of computer science (Ieee, 1994) pp. 124–134.
  • Grover (1997) L. K. Grover, Physical review letters 79, 325 (1997).
  • Harrow et al. (2009) A. W. Harrow, A. Hassidim,  and S. Lloyd, Physical Review Letters 103, 150502 (2009).
  • Lloyd (1996) S. Lloyd, Science , 1073 (1996).
  • Berry et al. (2007) D. W. Berry, G. Ahokas, R. Cleve,  and B. C. Sanders, Communications in Mathematical Physics 270, 359 (2007).
  • Francis (1961) J. G. Francis, The Computer Journal 4, 265 (1961).
  • Francis (1962) J. G. Francis, The Computer Journal 4, 332 (1962).
  • Kublanovskaya (1962) V. N. Kublanovskaya, USSR Computational Mathematics and Mathematical Physics 1, 637 (1962).
  • Carl (1846) G. Carl, Journal für die Reine und Angewandte Mathematik 30, 51 (1846).
  • Golub and Van der Vorst (2000) G. H. Golub and H. A. Van der Vorst, Journal of Computational and Applied Mathematics 123, 35 (2000).
  • Gupta (1972) K. Gupta, International Journal for Numerical Methods in Engineering 4, 379 (1972).
  • Gupta (1973) K. Gupta, International Journal for Numerical Methods in Engineering 7, 17 (1973).
  • Nielsen and Chuang (2002) M. A. Nielsen and I. Chuang, “Quantum computation and quantum information,”  (2002).
  • Abrams and Lloyd (1999) D. S. Abrams and S. Lloyd, Physical Review Letters 83, 5162 (1999).
  • Peruzzo et al. (2014) A. Peruzzo, J. McClean, P. Shadbolt, M.-H. Yung, X.-Q. Zhou, P. J. Love, A. Aspuru-Guzik,  and J. L. O’brien, Nature communications 5, 4213 (2014).
  • Wang et al. (2019) D. Wang, O. Higgott,  and S. Brierley, Physical review letters 122, 140504 (2019).
  • Wei et al. (2020) S. Wei, H. Li, G. Long, et al., Research 2020, 1486935 (2020).
  • Grover (1998) L. K. Grover, Physical Review Letters 80, 4329 (1998).
  • Hoyer (2000) P. Hoyer, Physical Review A 62, 052304 (2000).
  • Bennett et al. (1997) C. H. Bennett, E. Bernstein, G. Brassard,  and U. Vazirani, SIAM journal on Computing 26, 1510 (1997).
  • Boyer et al. (1998) M. Boyer, G. Brassard, P. Hoyer,  and A. Tapp, Fortschritte der Physik: Progress of Physics 46, 493 (1998).
  • Zalka (1999) C. Zalka, Physical Review A 60, 2746 (1999).
  • Brassard and Hoyer (1997) G. Brassard and P. Hoyer, in Proceedings of the Fifth Israeli Symposium on Theory of Computing and Systems (IEEE, 1997) pp. 12–23.
  • Grover (2005) L. K. Grover, Physical Review Letters 95, 150501 (2005).
  • Yoder et al. (2014) T. J. Yoder, G. H. Low,  and I. L. Chuang, Physical review letters 113, 210501 (2014).
  • Long et al. (1999) G. L. Long, Y. S. Li, W. L. Zhang,  and L. Niu, Physics Letters A 262, 27 (1999).
  • Long (2001) G.-L. Long, Physical Review A 64, 022307 (2001).
  • Long et al. (2002) G.-L. Long, X. Li,  and Y. Sun, Physics Letters A 294, 143 (2002).
  • Toyama et al. (2013) F. Toyama, W. van Dijk,  and Y. Nogami, Quantum information processing 12, 1897 (2013).
  • Brassard et al. (2002) G. Brassard, P. Hoyer, M. Mosca,  and A. Tapp, Contemporary Mathematics 305, 53 (2002).
  • Wilkinson (1988) J. H. Wilkinson, The algebraic eigenvalue problem (Oxford University Press, Inc., 1988).
  • Quarteroni et al. (2010) A. Quarteroni, R. Sacco,  and F. Saleri, Numerical mathematics, Vol. 37 (Springer Science & Business Media, 2010).
  • Aspuru-Guzik et al. (2005) A. Aspuru-Guzik, A. D. Dutoi, P. J. Love,  and M. Head-Gordon, Science 309, 1704 (2005).
  • Whitfield et al. (2011) J. D. Whitfield, J. Biamonte,  and A. Aspuru-Guzik, Molecular Physics 109, 735 (2011).
  • McWeeny (1992) R. McWeeny, Methods of molecular quantum mechanics (Academic press, 1992).

Appendix A Initial-State Preparation

Theorem 1.

Let |φ=j=1Nbj|uj|\varphi\rangle=\sum_{j=1}^{N}b_{j}|u_{j}\rangle be the initial state of an NN-dimensional quantum system, and we assume it is randomly chosen from the unit sphere of N\mathbb{C}^{N}. Without loss of generality, we further assume the target state |t=|u1|t\rangle=|u_{1}\rangle. Then the probability of |φ|t|2=|b1|21N|\langle\varphi|t\rangle|^{2}=|b_{1}|^{2}\geq\frac{1}{N} is given by

Pr(|b1|21N)=(11N)N1.\mathrm{Pr}\left(|b_{1}|^{2}\geq\frac{1}{N}\right)=\left(1-\frac{1}{N}\right)^{N-1}. (13)
Proof.

Let bj=xj+yjib_{j}=x_{j}+y_{j}i with xj,yjx_{j},y_{j}\in\mathbb{R}, and denote a vector in 2N\mathbb{R}^{2N} as z=(x1,y1,,xN,yN)z=(x_{1},y_{1},\cdots,x_{N},y_{N}). Denote Sr2N1={z2Nj=1N(xj2+yj2)=r2}S^{2N-1}_{r}=\{z\in\mathbb{R}^{2N}\mid\sum_{j=1}^{N}(x_{j}^{2}+y_{j}^{2})=r^{2}\} as the (2N1)(2N-1) dimensional sphere with radius rr in 2N\mathbb{R}^{2N}, and Dr2N1={zSr2N1x12+y12r2ξ}D^{2N-1}_{r}=\{z\in S^{2N-1}_{r}\mid x_{1}^{2}+y_{1}^{2}\leq\frac{r^{2}}{\xi}\} as a closed subset of Sr2N1S^{2N-1}_{r}, with ξ1\xi\geq 1. Since

j=1N|bj|2=j=1N(xj2+yj2)=1,\sum_{j=1}^{N}|b_{j}|^{2}=\sum_{j=1}^{N}(x_{j}^{2}+y_{j}^{2})=1,

we would like to calculate the following probability:

Pr(|b1|1ξ)=Pr(x12+y121ξ)=|D12N1||S12N1|,\mathrm{Pr}\left(|b_{1}|\leq\frac{1}{\sqrt{\xi}}\right)=\mathrm{Pr}\left(x_{1}^{2}+y_{1}^{2}\leq\frac{1}{\xi}\right)=\frac{|D^{2N-1}_{1}|}{|S^{2N-1}_{1}|},

The area of DrN1D_{r}^{N-1} is calculated as follows (where 1ω1_{\omega} denotes the characteristic function of the set ω\omega):

|Dr2N1|=Dr2N11𝑑Sr2N1=Sr2N11Dr2N1(z)𝑑Sr2N1=rVr2N1D|z|2N1(z)𝑑z\displaystyle\quad|D_{r}^{2N-1}|=\int_{D_{r}^{2N-1}}1~{}dS_{r}^{2N-1}=\int_{S_{r}^{2N-1}}1_{D_{r}^{2N-1}}(z)~{}dS_{r}^{2N-1}=\frac{\partial}{\partial r}\int_{V_{r}^{2N}}1_{D_{|z|}^{2N-1}}(z)~{}dz
=r|z|2r21D|z|2N1(x1,y1,z~)𝑑x1𝑑y1𝑑z~(z~=(x2,y2,,xN,yN))\displaystyle=\frac{\partial}{\partial r}\int_{|z|^{2}\leq r^{2}}1_{D_{|z|}^{2N-1}}(x_{1},y_{1},\tilde{z})~{}dx_{1}dy_{1}d\tilde{z}\qquad(\tilde{z}=(x_{2},y_{2},\cdots,x_{N},y_{N}))
=|S12N3|r|z|2=x12+y12+ρ2r21D|z|2N1ρ2N3𝑑x1𝑑y1𝑑ρ\displaystyle=|S_{1}^{2N-3}|\frac{\partial}{\partial r}\int_{|z|^{2}=x_{1}^{2}+y_{1}^{2}+\rho^{2}\leq r^{2}}1_{D_{|z|}^{2N-1}}\rho^{2N-3}~{}dx_{1}dy_{1}d\rho
=|S12N3|r(0rr1𝑑r102π𝑑θ10r2r121D|z|2N1ρ2N3𝑑ρ)(dx1dy1=r1dr1dθ1)\displaystyle=|S_{1}^{2N-3}|\frac{\partial}{\partial r}\left(\int_{0}^{r}r_{1}~{}dr_{1}\int_{0}^{2\pi}~{}d\theta_{1}\int_{0}^{\sqrt{r^{2}-r_{1}^{2}}}1_{D_{|z|}^{2N-1}}\rho^{2N-3}d\rho\right)\quad(dx_{1}dy_{1}=r_{1}dr_{1}d\theta_{1})
=|S12N3|r2π0r/ξr1(r2r12)2N42𝑑r1\displaystyle=|S_{1}^{2N-3}|r2\pi\int_{0}^{r/\sqrt{\xi}}r_{1}(r^{2}-r_{1}^{2})^{\frac{2N-4}{2}}~{}dr_{1}
=|S12N3|r2N12π01/ξμ(1μ2)N2𝑑μ(dr1=rdμ)\displaystyle=|S_{1}^{2N-3}|r^{2N-1}2\pi\int_{0}^{1/\sqrt{\xi}}\mu(1-\mu^{2})^{N-2}~{}d\mu\qquad(dr_{1}=rd\mu)
=|S12N3|r2N1π01/ξ(1t)N2𝑑t(μ2=t)\displaystyle=|S_{1}^{2N-3}|r^{2N-1}\pi\int_{0}^{1/\xi}(1-t)^{N-2}~{}dt\qquad(\mu^{2}=t)
=|S12N3|r2N1π1N1[1(11ξ)N1].\displaystyle=|S_{1}^{2N-3}|r^{2N-1}\pi\frac{1}{N-1}\left[1-(1-\frac{1}{\xi})^{N-1}\right].

In a similar manner, we can obtain the area of Sr2N1S^{2N-1}_{r}:

|Sr2N1|=|S12N3|r2N1πN1,|S^{2N-1}_{r}|=|S_{1}^{2N-3}|r^{2N-1}\frac{\pi}{N-1},

Hence, by taking r=1r=1 and ξ=N\xi=N, we find:

Pr(|b1|1N)\displaystyle\mathrm{Pr}\left(|b_{1}|\leq\frac{1}{\sqrt{N}}\right) =1(11N)N1N1e1\displaystyle=1-\left(1-\frac{1}{N}\right)^{N-1}\mathop{\longrightarrow}^{N\rightarrow\infty}1-e^{-1}
Pr(|b1|1N)\displaystyle\mathrm{Pr}\left(|b_{1}|\geq\frac{1}{\sqrt{N}}\right) =(11N)N1Ne1.\displaystyle=\left(1-\frac{1}{N}\right)^{N-1}\mathop{\longrightarrow}^{N\rightarrow\infty}e^{-1}.

The above result suggests that a randomly chosen initial state can have an overlap larger than 1N\frac{1}{N} with the unknown target state |t|t\rangle, with a probability of 1/e1/e. It implies that if we take a sufficiently large set of randomly-chosen initial states of size KK, then we can find the minimum value K=11K=11 such that 1(11/e)K0.991-(1-1/e)^{K}\geq 0.99. In other words, for a set of randomly-chosen initial states {|yk}\{|y_{k}\rangle\} with set size 1111, at least one of |yk|y_{k}\rangle’s will have an overlap larger than 1N\frac{1}{N} with |t|t\rangle, with probability larger than 0.990.99. Such minimum value K=11K=11 is independent of the size NN of the eigenvalue problem.

In spite of its usefulness in theory, a randomly chosen initial state from the uniform distribution is hard to prepare in practice. Alternatively, we aim to find a set of initial states which not only have the above nice property, but are also easy to generate in experiment. Fortunately, such initial states do exist. In the following, we can prove that the 1111 initial states can be simply chosen from the computational basis, predetermined by the quantum system. (Normally, we assume that the computational basis states are easy to prepare. For example, we assume the ground state |000|00\cdots 0\rangle is easy to prepare, and all the other computational basis state can be prepared from the ground state with no more than logN\log N rotations.)

Specifically, let {|ϕi}i=1m\{|\phi_{i}\rangle\}_{i=1}^{m} be a set of vectors chosen from the computational basis of N\mathbb{C}^{N}, (mNm\ll N), and let |t|t\rangle be the target eigenstate. Since |t|t\rangle is unknown before we solve the eigenvalue problem, we can assume it is randomly chosen from the uniform distribution on the unit sphere of N\mathbb{C}^{N}. Then we would like to evaluate the following probability:

p1=Pr(max1im|ϕi|t|1/ξ).p_{1}=\text{Pr}\big{(}\max_{1\leq i\leq m}|\langle\phi_{i}|t\rangle|\geq 1/\sqrt{\xi}\big{)}.

Without loss of generality, we can further assume {|ϕi}i=1m\{|\phi_{i}\rangle\}_{i=1}^{m} are the first mm number of computational basis vectors:

|ϕi=|ei=(0,,0,1ith,0,0)T.|\phi_{i}\rangle=|e_{i}\rangle=(0,\cdots,0,\underbrace{1}_{i\text{th}},0\cdots,0)^{T}.

Since |t|t\rangle can be considered as a complex vector 𝒛N\bm{z}\in\mathbb{C}^{N}, we denote |t=𝒛=(z1,z2,,zN)T|t\rangle=\bm{z}=(z_{1},z_{2},\ldots,z_{N})^{T}, where zj=xj+yjiz_{j}=x_{j}+y_{j}i with xj,yjx_{j},y_{j}\in\mathbb{R}. Then 𝒛\bm{z} can be considered as a vector in 2N\mathbb{R}^{2N} with 𝒛=(x1,y1,,xN,yN)T\bm{z}=(x_{1},y_{1},\cdots,x_{N},y_{N})^{T}. Let S2N1S^{2N-1} denote the (2N1)(2N-1)-dimensional unit sphere in 2N\mathbb{R}^{2N}, and define

S~2N1{𝒛2N:|ϕi|t|2=xi2+yi2<1/ξ,i=1,2,,m}S2N1(ξm).\tilde{S}^{2N-1}\equiv\{\bm{z}\in\mathbb{R}^{2N}:|\langle\phi_{i}|t\rangle|^{2}=x^{2}_{i}+y^{2}_{i}<1/\xi,\quad i=1,2,\cdots,m\}\subset S^{2N-1}\quad\quad(\xi\geq m).

Then we have:

p1=1S~2N1S2N1.p_{1}=1-\frac{\tilde{S}^{2N-1}}{S^{2N-1}}.

It suffices to calculate the area of S~2N1\tilde{S}^{2N-1}. Noting that |𝒛|2<r2|\bm{z}|^{2}<r^{2} is equivalent to (x12+y12)++(xN2+yN2)<r2(x_{1}^{2}+y_{1}^{2})+\cdots+(x_{N}^{2}+y_{N}^{2})<r^{2}, and in use of the transform dx1dy1=r1dr1dθ1dx_{1}dy_{1}=r_{1}dr_{1}d\theta_{1} we calculate as

|S~2N1|=S2N11S~2N1𝑑S2N1\displaystyle\quad|\tilde{S}^{2N-1}|=\int_{S^{2N-1}}1_{\tilde{S}^{2N-1}}~{}dS^{2N-1}
=r=1r|𝒛|<r1{|zi||z|<1ξ,1im}(x1,y1,,xN,yN)𝑑x1𝑑y1𝑑xN𝑑yN\displaystyle\mathop{=}^{r=1}\frac{\partial}{\partial r}\int_{|\bm{z}|<r}1_{\{\frac{|z_{i}|}{|z|}<\frac{1}{\sqrt{\xi}},1\leq i\leq m\}}(x_{1},y_{1},\cdots,x_{N},y_{N})~{}dx_{1}dy_{1}\cdots dx_{N}dy_{N}
=r=1i=1m(0rξri𝑑ri02π𝑑θi)r0r2r12rm2ρ2N2m1𝑑ρS2N2m1𝑑S2N2m1\displaystyle\mathop{=}^{r=1}\prod_{i=1}^{m}\left(\int_{0}^{\frac{r}{\sqrt{\xi}}}r_{i}dr_{i}\int_{0}^{2\pi}d\theta_{i}\right)\frac{\partial}{\partial r}\int_{0}^{\sqrt{r^{2}-r_{1}^{2}-\cdots-r_{m}^{2}}}\rho^{2N-2m-1}d\rho\int_{S^{2N-2m-1}}~{}dS^{2N-2m-1}
=r=1r(2π)m|S2N2m1|0rξ0rξmr1rm(r2r12rm2)Nm1dr1drm\displaystyle\mathop{=}^{r=1}r(2\pi)^{m}|S^{2N-2m-1}|\underbrace{\int_{0}^{\frac{r}{\sqrt{\xi}}}\cdots\int_{0}^{\frac{r}{\sqrt{\xi}}}}_{m}r_{1}\cdots r_{m}(r^{2}-r_{1}^{2}-\cdots-r_{m}^{2})^{N-m-1}~{}dr_{1}\cdots dr_{m}
=πm|S2N2m1|01ξ01ξm(1μ1μm)Nm1(μi=ri2)\displaystyle=\pi^{m}|S^{2N-2m-1}|\underbrace{\int_{0}^{\frac{1}{\xi}}\cdots\int_{0}^{\frac{1}{\xi}}}_{m}(1-\mu_{1}-\cdots-\mu_{m})^{N-m-1}\qquad\quad(\mu_{i}=r_{i}^{2})
=πm|S2N2m1|(Nm)(Nm+1)(N1)k=0m(1)k(mk)(1kξ)N1.\displaystyle=\frac{\pi^{m}|S^{2N-2m-1}|}{(N-m)(N-m+1)\cdots(N-1)}\sum_{k=0}^{m}(-1)^{k}\dbinom{m}{k}\left(1-\frac{k}{\xi}\right)^{N-1}.

In use of

|S2N1|=πN1|S2N21|==πm(N1)(N2)(Nm)|S2N2m1|,|S^{2N-1}|=\frac{\pi}{N-1}|S^{2N-2-1}|=\cdots=\frac{\pi^{m}}{(N-1)(N-2)\cdots(N-m)}|S^{2N-2m-1}|,

we find that

p1=1S~2N1S2N1=1k=0m(1)k(mk)(1kξ)N1.p_{1}=1-\frac{\tilde{S}^{2N-1}}{S^{2N-1}}=1-\sum_{k=0}^{m}(-1)^{k}\dbinom{m}{k}\left(1-\frac{k}{\xi}\right)^{N-1}.

Taking ξ=N\xi=N and passing to the limit NN\rightarrow\infty, we see that

p1=1k=0m(1)k(mk)(1kN)N11k=0m(1)k(mk)ek=1(1e1)m.\displaystyle p_{1}=1-\sum_{k=0}^{m}(-1)^{k}\dbinom{m}{k}\left(1-\frac{k}{N}\right)^{N-1}\rightarrow 1-\sum_{k=0}^{m}(-1)^{k}\dbinom{m}{k}e^{-k}=1-(1-e^{-1})^{m}.

Thus, the minimum value m=11m=11 is sufficient to make p10.99p_{1}\geq 0.99. We summarize this result into the following:

Theorem 2.

Let the unknown target state |t|t\rangle be randomly chosen from the uniform distribution on the unit sphere of N\mathbb{C}^{N}. If we prepare a set of 1111 initial states {|ϕk}\{|\phi_{k}\rangle\}, k=1,,11k=1,\cdots,11, chosen from the computational basis of N\mathbb{C}^{N}, then the probability of at least one of |ϕk|\phi_{k}\rangle’s satisfying |ϕk|t|1/N|\langle\phi_{k}|t\rangle|\geq 1/\sqrt{N} is larger than 0.990.99.