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

Rodeo Algorithm for Quantum Computing

Kenneth Choi Ridgefield High School, Ridgefield, CT 06877, USA    Dean Lee Facility for Rare Isotope Beams and Department of Physics and Astronomy, Michigan State University, MI 48824, USA    Joey Bonitati Facility for Rare Isotope Beams and Department of Physics and Astronomy, Michigan State University, MI 48824, USA    Zhengrong Qian Facility for Rare Isotope Beams and Department of Physics and Astronomy, Michigan State University, MI 48824, USA    Jacob Watkins Facility for Rare Isotope Beams and Department of Physics and Astronomy, Michigan State University, MI 48824, USA
Abstract

We present a stochastic quantum computing algorithm that can prepare any eigenvector of a quantum Hamiltonian within a selected energy interval [Eϵ,E+ϵ][E-\epsilon,E+\epsilon]. In order to reduce the spectral weight of all other eigenvectors by a suppression factor δ\delta, the required computational effort scales as O[|logδ|/(pϵ)]O[|\log\delta|/(p\epsilon)], where pp is the squared overlap of the initial state with the target eigenvector. The method, which we call the rodeo algorithm, uses auxiliary qubits to control the time evolution of the Hamiltonian minus some tunable parameter EE. With each auxiliary qubit measurement, the amplitudes of the eigenvectors are multiplied by a stochastic factor that depends on the proximity of their energy to EE. In this manner, we converge to the target eigenvector with exponential accuracy in the number of measurements. In addition to preparing eigenvectors, the method can also compute the full spectrum of the Hamiltonian. We illustrate the performance with several examples. For energy eigenvalue determination with error ϵ\epsilon, the computational scaling is O[(logϵ)2/(pϵ)]O[(\log\epsilon)^{2}/(p\epsilon)]. For eigenstate preparation, the computational scaling is O(logΔ/p)O(\log\Delta/p), where Δ\Delta is the magnitude of the orthogonal component of the residual vector. The speed for eigenstate preparation is exponentially faster than that for phase estimation or adiabatic evolution.

Quantum computing is a powerful paradigm with the potential to describe large complex systems and eventually perform computations beyond the reach of classical computing. Recently, there have been several exciting algorithmic advances in describing the time evolution of Hamiltonians on quantum computers using a variety of different tools Low and Chuang (2019, 2017); Childs et al. (2019); Campbell (2019); Childs et al. (2019); Meister et al. (2020). They can be broadly categorized as either Lie-Trotter-Suzuki product formulas Trotter (1959); Suzuki (1976) or linear combinations of unitaries Childs and Wiebe (2012). Unfortunately, the application of these techniques for quantum state preparation is limited by existing hardware capabilities. Quantum adiabatic evolution is one approach to quantum state preparation that starts with an eigenstate of a simple Hamiltonian that slowly evolves with an interpolating time-dependent Hamiltonian until reaching the desired target Hamiltonian Farhi et al. (2000, 2001). The problem is that calculations based on quantum adiabatic evolution require an extended time evolution that makes the computational cost prohibitive for large systems. To address this problem, we introduce a new framework for quantum state preparation and spectrum determination called the rodeo algorithm.

The rodeo algorithm employs a strategy that is opposite to quantum adiabatic evolution. As the name suggests, the rodeo algorithm operates by shaking off all other states until only the target eigenvector remains. In this regard, the rodeo algorithm is similar in character to the projected cooling algorithm Lee et al. (2020); Gustafson (2020). However, the rodeo algorithm has the advantage that it can be applied to any quantum Hamiltonian and is a recursive algorithm that achieves exponential convergence in the number of cycles. It can be used to compute the full energy spectrum as well as prepare any energy eigenstate. While the rodeo algorithm might appear similar to Kitaev’s iterative version of quantum phase estimation Kitaev (1995) and fixed-time energy band filtering methods Ge et al. (2017); Lu et al. (2020), none of these methods can be used efficiently to prepare individual eigenstates of a general quantum Hamiltonian.

We will refer to the Hamiltonian of interest as the object Hamiltonian, HobjH_{\rm obj}, and the linear space which it acts upon the object system. By assumption, the object system starts in some initial state |ψI\ket{\psi_{I}}, which in general will update after each measurement. We will use auxiliary or ancilla qubits coupled to the object system. In the following we use the standard terminology, ancilla qubits. But we also mention that this collection of ancilla qubits is also informally called the “rodeo arena”.

If the quantum device allows for mid-circuit measurements, then only one ancilla qubit is needed. However, here we focus on the implementation using different ancilla qubits for each cycle of the rodeo algorithm. Each of the ancilla qubits is initialized in the state |1\ket{1} and operated on by a Hadamard gate H. We use each ancilla qubit n=1,,Nn=1,\cdots,N to control the time evolution of HobjH_{\rm obj} for time tnt_{n}. In order to achieve the desired energy filtering, we operate on each ancilla qubit nn with the phase rotation gate P(Etn)(Et_{n}), follow that with another Hadamard gate H, and then measure the qubit. We use the convention that P(Etn)(Et_{n}) multiplies the phase eiEtne^{iEt_{n}} to the |1\ket{1} state and leaves the |0\ket{0} state untouched. The circuit diagram for the rodeo algorithm is shown in Fig. 1.

Refer to caption
Figure 1: (color online) Circuit diagram for the rodeo algorithm. The object system starts in an arbitrary state |ψI\ket{\psi_{I}}. Each of the ancilla qubits are initialized in the state |1\ket{1} and operated on by a Hadamard gate H. We use each ancilla qubit n=1,,Nn=1,\cdots,N for the controlled time evolution of the object Hamiltonian, HobjH_{\rm obj}, for time tnt_{n}. This is followed by a phase rotation P(Etn)(Et_{n}) on ancilla qubit nn, another Hadamard gate H, and then measurement.

In order to illustrate the effect of these gate operations, let us explicitly write out the operation for one cycle of the rodeo algorithm with one ancilla qubit. Starting from the initial state |1|ψI\ket{1}\otimes\ket{\psi_{I}} and performing one rodeo cycle, we obtain

[[I212ei(HobjE)t1]|ψI[I2+12ei(HobjE)t1]|ψI]=\displaystyle\begin{bmatrix}\left[\tfrac{I}{2}-\tfrac{1}{2}e^{-i(H_{\rm obj}-E)t_{1}}\right]\ket{\psi_{I}}\\ \left[\tfrac{I}{2}+\tfrac{1}{2}e^{-i(H_{\rm obj}-E)t_{1}}\right]\ket{\psi_{I}}\end{bmatrix}=
[I2I2I2I2][I00IeiEt1][I00eiHobjt1][I2I2I2I2][0|ψI],\displaystyle\begin{bmatrix}\tfrac{I}{\sqrt{2}}&\tfrac{I}{\sqrt{2}}\\ \tfrac{I}{\sqrt{2}}&\tfrac{-I}{\sqrt{2}}\end{bmatrix}\begin{bmatrix}I&0\\ 0&Ie^{iEt_{1}}\end{bmatrix}\begin{bmatrix}I&0\\ 0&e^{-iH_{\rm obj}t_{1}}\end{bmatrix}\begin{bmatrix}\tfrac{I}{\sqrt{2}}&\tfrac{I}{\sqrt{2}}\\ \tfrac{I}{\sqrt{2}}&\tfrac{-I}{\sqrt{2}}\end{bmatrix}\begin{bmatrix}0\\ \ket{\psi_{I}}\end{bmatrix}, (1)

where II is the identity operator on the object system. We note that HobjH_{\rm obj} commutes with all of our gates, and so we can describe the action of the rodeo algorithm for each individual eigenvector of HobjH_{\rm obj} with energy EobjE_{\rm obj}. In that case, the probability of measuring the ancilla qubit nn in the |1\ket{1} state is

cos2[(EobjE)tn2]=|12+12ei(EobjE)tn|2.\cos^{2}\left[(E_{\rm obj}-E)\tfrac{t_{n}}{2}\right]=\left|\tfrac{1}{2}+\tfrac{1}{2}e^{-i(E_{\rm obj}-E)t_{n}}\right|^{2}. (2)

The success probability of measuring all NN ancilla qubits in the |1\ket{1} state is given by product,

PN=n=1Ncos2[(EobjE)tn2].P_{N}=\prod_{n=1}^{N}\cos^{2}\left[(E_{\rm obj}-E)\tfrac{t_{n}}{2}\right]. (3)

If we now take random values of tnt_{n}, we have an energy filter for Eobj=EE_{\rm obj}=E. The geometric mean of cos2θ\cos^{2}\theta when sampled uniformly over all θ\theta is equal to 14\tfrac{1}{4}. Therefore the spectral weight for any EobjEE_{\rm obj}\neq E is suppressed by a factor of 14N\tfrac{1}{4^{N}} for large NN.

In Fig. 2 we plot the probability PNP_{N} of measuring the |1\ket{1} state for all ancilla qubits versus EobjEE_{\rm obj}-E for 11 (dotted black line), 44 (dashed blue line), and 88 (solid red line) cycles with Gaussian random values of tnt_{n} with root-mean-square value tRMS=10t_{\rm RMS}=10. If we use a Gaussian approximation for PNP_{N} near its maximum value of 11 at Eobj=EE_{\rm obj}=E, we find that the width of the peak scales as O[1/(NtRMS)]O[1/(\sqrt{N}t_{\rm RMS})].

Refer to caption
Figure 2: (color online) Measurement probability. We plot the probability PNP_{N} of measuring the |1\ket{1} state for all ancilla qubits versus EobjEE_{\rm obj}-E for 11 (dotted black line), 44 (dashed blue line), and 88 (solid red line) cycles with Gaussian random values of tnt_{n} with tRMS=10t_{\rm RMS}=10.

Let ϵ\epsilon be the desired energy resolution of our rodeo algorithm such that all energy eigenvectors outside of the interval [Eϵ,E+ϵ][E-\epsilon,E+\epsilon] are exponentially suppressed. If we choose tRMSt_{\rm RMS} to scale proportionally with 1/ϵ1/\epsilon, then we achieve the desired energy filtering with energy resolution ϵ\epsilon. The actual peak width will be a factor of 1/N1/\sqrt{N} narrower than ϵ\epsilon, but that is needed to get exponential suppression as a function of NN for all energies EobjE_{\rm obj} further than ϵ\epsilon from EE.

In Fig. 3 we plot lnPN\ln P_{N} versus NN for Gaussian random values of tnt_{n} using several values for θRMS(EobjE)tRMS2\theta_{\rm RMS}\equiv(E_{\rm obj}-E)\tfrac{t_{\rm RMS}}{2}. We show θRMS=0.5\theta_{\rm RMS}=0.5 (open circles), θRMS=1.0\theta_{\rm RMS}=1.0 (open triangles), θRMS=2.0\theta_{\rm RMS}=2.0 (open diamonds), and θRMS=3.0\theta_{\rm RMS}=3.0 (open squares). We present the predicted asymptotic scaling, lnPN=Nln4\ln P_{N}=-N\ln 4, with filled circles. We see that for θRMS\theta_{\rm RMS} greater than 11, the expected asymptotic scaling is achieved. Therefore, if tRMSt_{\rm RMS} is larger than twice the inverse spacing between energy levels, then PNP_{N} scales as 14N\tfrac{1}{4^{N}} for large NN.

Refer to caption
Figure 3: (color online) Asymptotic scaling. We plot lnPN\ln P_{N} versus NN for Gaussian random values of tnt_{n} with several selected values for θRMS(EobjE)tRMS2\theta_{\rm RMS}\equiv(E_{\rm obj}-E)\tfrac{t_{\rm RMS}}{2}. We show θRMS=0.5\theta_{\rm RMS}=0.5 (open circles), θRMS=1.0\theta_{\rm RMS}=1.0 (open triangles), θRMS=2.0\theta_{\rm RMS}=2.0 (open diamonds), and θRMS=3.0\theta_{\rm RMS}=3.0 (open squares). We show the predicted asymptotic scaling, lnPN=Nln4\ln P_{N}=-N\ln 4, with filled circles.

Let us now consider what happens for an arbitrary initial state |ψI\ket{\psi_{I}}. Let EjE_{j} be the energy eigenvalue nearest to EE, and let |Ej\ket{E_{j}} be the corresponding eigenvector. In the limit of large NN, the probability that we measure the |1\ket{1} state NN times in a row is pPNpP_{N}, where pp is the overlap probability of the initial state with |Ej\ket{E_{j}}, and PNP_{N} is the success probability for Eobj=EjE_{\rm obj}=E_{j}. By tuning EE equal to EjE_{j}, this probability becomes pp. If we require that the spectral weights of all other energy eigenvectors outside the interval [Eϵ,E+ϵ][E-\epsilon,E+\epsilon] are suppressed by a factor δ\delta, then the computational effort scaling for the rodeo algorithm is NtRMS/p=O[|logδ|/(pϵ)]Nt_{\rm RMS}/p=O[|\log\delta|/(p\epsilon)].

In order to successfully determine any given energy eigenvalue EjE_{j} with error ϵ\epsilon, the computational cost scales as O[(logϵ)2/(pϵ)]O[(\log\epsilon)^{2}/(p\epsilon)]. The search process involves O(logϵ)O(\log\epsilon) sequential scans of the energy, each scan sweeping over an energy range that is some constant factor KK smaller than the previous scan. Each scan is performed for several evenly spaced values of EE, with a fixed number of rodeo cycles, and tRMSt_{\rm RMS} a factor of KK larger than that used for the previous scan. The total time evolution required will scale as O(1/ϵ)O(1/\epsilon), and the factor of (logϵ)2/p(\log\epsilon)^{2}/p comes from the required statistics needed to perform the energy scans successfully with high probability. The resulting performance as a function of ϵ\epsilon is close to the O(1/ϵ)O(1/\epsilon) bound set by the Heisenberg uncertainty principle. For comparison, the computational effort for phase estimation is O[1/(pϵ)]O[1/(p\epsilon)] plus an additional cost that is O[(logϵ)2]O[(\log\epsilon)^{2}] associated with the quantum Fourier transform. Iterative phase estimation eliminates the need for the quantum Fourier transform, but is suitable only for finding the energy of a pure eigenstate. We note that the direct calculation of the expectation value of the Hamiltonian for a pure eigenstate requires O(1/ϵ2)O(1/\epsilon^{2}) measurements due to statistical errors.

In order to successfully prepare any given eigenstate |Ej\ket{E_{j}} with a residual orthogonal component that has magnitude Δ\Delta, the computational cost is O(logΔ/p)O(\log\Delta/p). For this case, we keep tRMSt_{\rm RMS} fixed but large enough that we are filtering out only the desired eigenstate. We perform N=O(logΔ)N=O(\log\Delta) cycles of the rodeo algorithm, and this must be multiplied by 1/p1/p for the number of measurements required. In preparing the eigenstate, it is important to keep EE centered on the peak maximum associated with EjE_{j}. Re-centering EE with each cycle requires only a constant overall factor in the computational cost that is independent of pp and Δ\Delta. In contrast, the computational cost for the same task using phase estimation requires an effort that scales as O[1/(pΔ)]O[1/(p\Delta)]. Adiabatic evolution requires an effort that is O(1/Δ)O(1/\Delta) times a function of pp which depends on the adiabatic path connecting the initial and final Hamiltonians Wiebe and Babcock (2012). We see that for eigenstate preparation, the rodeo algorithm is exponentially faster than both phase estimation and adiabatic evolution in the limit Δ0\Delta\rightarrow 0.

From Eq. (3), we can also derive two useful estimates for Δ\Delta, the magnitude of the residual orthogonal component, as a function of the number of rodeo cycles, NN,

FA2N(1p)/[p+2N(1p)],\displaystyle F_{A}\equiv\sqrt{2^{-N}(1-p)/[p+2^{-N}(1-p)]},
FG4N(1p)/[p+4N(1p)].\displaystyle F_{G}\equiv\sqrt{4^{-N}(1-p)/[p+4^{-N}(1-p)]}. (4)

FAF_{A} is appropriate for the case when NN is much smaller than the number of eigenstates with nonzero overlap with our initial state. This corresponds with a spectral suppression factor of 1/21/2 at each order for the undesired eigenstates, corresponding with the arithmetic mean of cos2θ\cos^{2}\theta. FGF_{G} is appropriate for the case when NN is much larger than the number of eigenstates with nonzero overlap with our initial state. This corresponds with a spectral suppression factor of 1/41/4 at each order for the undesired eigenstates, corresponding with the geometric mean of cos2θ\cos^{2}\theta.

The rodeo algorithm depends heavily on the initial-state overlap probability pp. It is, therefore, very helpful to improve the quality of the initial state. One possible approach is to make a variational ansatz based on physical intuition about the nature of the eigenvector. Another strategy is to use domain decomposition to define a variational ansatz as a tensor product of wave functions on smaller subsystems. Yet another approach is some combination of variational methods and adiabatic evolution such as the quantum approximate optimization algorithm Farhi et al. (2014).

As a first application of the rodeo algorithm, we consider the spin-12\tfrac{1}{2} Heisenberg model in a uniform magnetic field with 1010 sites forming a closed one-dimensional chain Heisenberg (1928). The Hamiltonian has the form

Hobj=Jj,kσjσk+hjσjz,H_{\rm obj}=J\sum_{\braket{j,k}}\vec{\sigma}_{j}\cdot\vec{\sigma}_{k}+h\sum_{j}\sigma^{z}_{j}, (5)

where JJ is the exchange coupling, σj\vec{\sigma}_{j} are the Pauli matrices on site jj, j,k\braket{j,k} indicates nearest neighbors, and hh is the coupling to a uniform magnetic field in the zz direction. We consider the antiferromagnetic case with values J=1J=1 and h=3h=3. For our initial state we use an alternating tensor product state,

|ψI=|0101010101.\ket{\psi_{I}}=\ket{0101010101}. (6)

Since our initial state has a high degree of symmetry, we expect our initial state to have nonzero overlap with a relatively small number of energy eigenstates.

Let us label the energy eigenstates of HobjH_{\rm obj} as |Ej\ket{E_{j}}. We define the initial-state spectral function as S(E)=|Ej|ψI|2S(E)=|\braket{E_{j}}{\psi_{I}}|^{2} for E=EjE=E_{j} and S(E)=0S(E)=0 otherwise. For the case of exact degeneracy, we sum the contribution from all degenerate energy states. In Fig. 4, we plot the initial-state spectral function using the rodeo algorithm for the Heisenberg spin chain with N=3N=3 (thin blue line), 66 (thick green line), and 99 (medium red line) cycles. We have averaged over 2020 sets of Gaussian random values for tnt_{n} with tRMS=5t_{\rm RMS}=5. This averaging over sets of random values for tnt_{n} decreases the stochastic noise and results in a roughly constant background that can be distinguished from the spectral signal. For comparison, we show the exact initial-state spectral function with black open circles. We see that the agreement obtained using the rodeo algorithm is excellent.

The real challenge will be to perform these calculations on quantum computing devices with gate errors, measurement errors, and short decoherence times. But it is promising that we can obtain good results even though neither tRMSt_{\rm RMS} nor NN are very large. The resulting short gate depth is crucial for implementation on noisy quantum devices. In the Supplemental Materials, we show the corresponding results with tRMS=1t_{\rm RMS}=1. Even in that case, we can clearly identify the spectrum of energy states with strong overlap with the initial state.

Refer to caption
Figure 4: (color online) Initial-state spectral function for the Heisenberg model. We plot the initial-state spectral function using the rodeo algorithm for the Heisenberg spin chain with 33 (thin blue line), 66 (thick green line), and 99 (medium red line) cycles. We have averaged over 2020 sets of Gaussian random values for tnt_{n} with tRMS=5t_{\rm RMS}=5. For comparison, we also show the exact initial-state spectral function with black open circles.

In addition to computing the initial-state spectral function, we can also prepare any energy eigenstate that has nonzero overlap with our initial state. In the Supplemental Materials, we show the overlap probability with energy eigenvector |Ej\ket{E_{j}} after NN cycles of the rodeo algorithm. All of the energy eigenvectors with nonzero overlap with our initial state can be prepared with a relatively small number of rodeo cycles. After an energy eigenstate has been prepared using the rodeo algorithm, we can measure any properties of that eigenstate that we choose, such as expectation values of observables, transition matrix elements to other energy eigenstates, and linear response functions. Several examples of such calculations using prepared energy eigenstates will be discussed in a future publication. See also Ref. Roggero and Carlson (2019); Roggero et al. (2020); Roggero (2020) for some approaches to computing linear response functions and spectral densities.

In Fig. 5, we show results for the logarithm of the wave function error for the rodeo algorithm when preparing the energy eigenstate |Ej\ket{E_{j}} corresponding to Ej=18.1E_{j}=-18.1. We plot the logarithm of the magnitude of the orthogonal complement, logΔ\log\Delta, versus the total time evolution, TT, for tRMS=1t_{\rm RMS}=1. For comparsion, we show the estimates logFA\log F_{A} and logFG\log F_{G} defined in Eq. (4). As expected, for small TT, logFA\log F_{A} provides a good estimate, while for very large TT, logFG\log F_{G} provides a better estimate. For comparison, we also show the analogous results obtained with the same initial state but instead using phase estimation and adiabatic evolution. For the adiabatic evolution calculation, we use the initial Hamiltonian HI=j=110(1)jσjzH_{I}=\sum_{j=1}^{10}(-1)^{j}\sigma^{z}_{j}, with an interpolating function H(t)=cos2[πt/(2T)]HI+sin2[πt/(2T)]HobjH(t)=\cos^{2}[\pi t/(2T)]H_{I}+\sin^{2}[\pi t/(2T)]H_{\rm obj}. We note that phase estimation and adiabatic evolution are similar in performance, while the rodeo algorithm is exponentially faster than both.

Refer to caption
Figure 5: (color online) Logarithm of the wave function error versus the total propagation time for the Heisenberg model. We plot logΔ\log\Delta, versus the total propagation time, TT, for the Heisenberg model. We show results for the rodeo algorithm, phase estimation, and adiabatic evolution. We also show the asymptotic estimates logFA\log F_{A} and logFG\log F_{G}.

Even though the rodeo algorithm is more efficient than adiabatic evolution for eigenstate preparation, we can use adiabatic evolution as a preconditioner for the rodeo algorithm, in order to amplify the overlap of the initial state with the desired eigenvector. In Table S1, we show the overlap probability for energy eigenvector |Ej\ket{E_{j}} with Ej=18.1E_{j}=-18.1 after preconditioning with adiabatic evolution for time tAEt_{\rm AE} and applying NN cycles of the rodeo algorithm with tRMS=5t_{\rm RMS}=5. We see that by preconditioning with tAE=5t_{\rm AE}=5, we achieve a more than sevenfold increase in the initial state overlap probability. We gain a significant computational advantage when using adiabiatic evolution as a preconditioner for the rodeo algorithm and expect this strategy to be very useful for larger system calculations.

Table 1: Overlap probability with energy eigenvector |Ej\ket{E_{j}} with E=Ej=18.1E=E_{j}=-18.1 after preconditioning with adiabatic evolution for time tAEt_{\rm AE} and the applying NN cycles of the rodeo algorithm using Gaussian random values for tnt_{n} with tRMS=5t_{\rm RMS}=5.
EjE_{j} tAEt_{\rm AE} N=0N=0 N=3N=3 N=6N=6 N=9N=9
18.1-18.1 0 0.1100.110 0.7460.746 0.9390.939 0.9970.997
18.1-18.1 5 0.830740.83074 0.998750.99875 0.999880.99988 0.999990.99999

As a second application of the rodeo algorithm, we consider the Anderson localization model in one dimension, which describes the transition between extended and localized electronic states in the presence of spatially-varying disorder Anderson (1958); Abrahams et al. (1979). Our object Hamiltonian HobjH_{\rm obj} describes a single particle on a periodic, one-dimensional lattice with 100100 sites. Let us denote the position basis states as |k\ket{k} with k=0,,99k=0,\cdots,99. The matrix elements of the object Hamiltonian are

[Hobj]k,k=δk,k+1δk,k1+ckδk,k,[H_{\rm obj}]_{k^{\prime},k}=-\delta_{k^{\prime},k+1}-\delta_{k^{\prime},k-1}+c_{k}\delta_{k^{\prime},k}, (7)

where the coefficients ckc_{k} provide diagonal disorder that control the amount of localization of the electronic wave functions. In this example, we take the diagonal terms ckc_{k} to be Gaussian random numbers with zero mean and root-mean-square value equal to 12\tfrac{1}{2}. With this amount of diagonal disorder, the resulting orbitals are rather localized in space. In the Supplemental Materials, we also present results for the case where diagonal disorder is much weaker and the energy eigenstates are delocalized in space.

As a variational ansatz for the ground state, we take our initial state to be the basis state |kmin\ket{k_{\rm min}} such that ckminc_{k_{\rm min}} is the lowest diagonal element of the Hamiltonian. This choice reflects our physical intuition that the ground state is spatially localized. In Fig. 6, we plot the initial-state spectral function using the rodeo algorithm for the Anderson localization model with the root-mean-square diagonal disorder equal to 12\tfrac{1}{2}. We consider N=3N=3 (thin blue line), 66 (thick green line), and 99 (medium red line) cycles. We have also averaged over 2020 sets of Gaussian random values for tnt_{n} with tRMS=10t_{\rm RMS}=10. For comparison, we show the exact initial-state spectral function with black open circles. We see that the exact spectral function is well reproduced. The fact that our point-like initial state has significant overlap with only a small fraction of energy eigenstates is an indication of the localized character of the orbitals.

Refer to caption
Figure 6: (color online) Initial-state spectral function for the Anderson localization model with diagonal disorder 12\tfrac{1}{2}. We plot the initial-state spectral function using the rodeo algorithm for the Anderson localization model with the root-mean-square diagonal disorder equal to 12\tfrac{1}{2}. We show results for 33 (thin blue line), 66 (thick green line), and 99 (medium red line) cycles. We have averaged over 2020 sets of Gaussian random values for tnt_{n} with tRMS=10t_{\rm RMS}=10. For comparison, we also show the exact initial-state spectral function with black open circles.

In this letter, we have presented a new method called the rodeo algorithm for preparing quantum eigenstates and determining spectral properties. It uses a tunable energy filter and stochastic methods to prepare any eigenstate of a given quantum Hamiltonian and can in fact be used to prepare the eigenstates of any quantum observable. It is an efficient algorithm with exponential convergence that can be performed using circuits with relatively short gate depth. In particular, the speed for eigenstate preparation is exponentially faster than that for phase estimation or adiabatic evolution. The rodeo algorithm can be combined with variational methods and/or quantum adiabatic evolution to provide a tool for solving the quantum many-body problem even when there is no a priori information about the target eigenvector. It has the potential for wide applicability across many different fields, including combinatorial optimization problems, strongly-correlated electrons, nuclear structure and dynamics, and lattice quantum chromodynamics. The results presented here were obtained from classical computation, but we are now working to implement the rodeo algorithm on quantum devices using several quantum Hamiltonians. The results will be presented in future publications.

Acknowledgements

We are grateful for discussions with Joseph Carlson, Gabriel Given, Erik Gustafson, Caleb Hicks, Ning Li, Bing-Nan Lu, Yannick Meurice, Sofia Quaglioni, John Rickert, Alessandro Roggero, Avik Sarkar, Nathan Wiebe, Kyle Wendt, and Boris Zbarsky. We acknowledge financial support from the U.S. Department of Energy (DE-SC0018638 and DE-SC0021152), Los Alamos National Laboratory, NUCLEI SciDAC-4 collaboration, and the Center for Excellence in Education as part of the 2020 Research Science Institute.

References

I Supplemental Materials

I.1 Initial-state spectral function for the Heisenberg model

In Fig. S1, we plot the initial-state spectral function using the rodeo algorithm for the Heisenberg spin chain with N=3N=3 (thin blue line), 66 (thick green line), and 99 (medium red line) cycles. We have averaged over 2020 sets of Gaussian random values for tnt_{n} with tRMS=1t_{\rm RMS}=1. For comparison, we also show the exact initial-state spectral function with black open circles. We observe that the spectral function is well reproduced even though tRMS=1t_{\rm RMS}=1 is rather small and the number of cycles is also not large.

Refer to caption
Figure S1: Initial-state spectral function for the Heisenberg model using tRMS=1t_{\rm RMS}=1. We plot the initial-state spectral function using the rodeo algorithm for the Heisenberg spin chain with 33 (thin blue line), 66 (thick green line), and 99 (medium red line). We have averaged over 2020 sets of Gaussian random values for tnt_{n} with tRMS=1t_{\rm RMS}=1. For comparison, we also show the exact initial-state spectral function with black open circles.

I.2 Eigenstate preparation for the Heisenberg model

In addition to computing the initial-state spectral function, we can also prepare any energy eigenstate that has nonzero overlap with our initial state. In Table S1 we show the overlap probability with energy eigenvector |Ej\ket{E_{j}} after NN cycles of the rodeo algorithm. We use Gaussian random values for tnt_{n} with tRMS=5t_{\rm RMS}=5 and set E=EjE=E_{j}. All of the energy eigenvectors with nonzero overlap with our initial state can be prepared with a relatively small number of rodeo cycles.

Table S1: Overlap probability with energy eigenvector |Ej\ket{E_{j}} after NN cycles of the rodeo algorithm using Gaussian random values for tnt_{n} with tRMS=5t_{\rm RMS}=5 and E=EjE=E_{j}.
EjE_{j} N=0N=0 N=3N=3 N=6N=6 N=9N=9
18.1-18.1 0.1100.110 0.7460.746 0.9390.939 0.9970.997
16.4-16.4 0.2090.209 0.8410.841 0.9930.993 1.0001.000
11.9-11.9 0.2000.200 0.6290.629 0.8890.889 0.9990.999
9.76-9.76 0.09740.0974 0.4880.488 0.9030.903 0.9990.999
8.38-8.38 0.03200.0320 0.4670.467 0.8320.832 0.9930.993
6.63-6.63 0.05770.0577 0.3090.309 0.8180.818 0.9960.996
5.81-5.81 0.01180.0118 0.1790.179 0.6370.637 0.8170.817
5.52-5.52 0.1150.115 0.4560.456 0.7660.766 0.9970.997
4.26-4.26 0.01710.0171 0.1440.144 0.6960.696 0.9950.995
3.95-3.95 0.004010.00401 0.04300.0430 0.3430.343 0.9520.952
2.00-2.00 0.01390.0139 0.1580.158 0.5930.593 0.9420.942
0.802-0.802 0.03380.0338 0.2160.216 0.5450.545 0.5940.594
0.704-0.704 0.03310.0331 0.2860.286 0.5400.540 0.5850.585
2.002.00 0.03570.0357 0.3710.371 0.9250.925 0.9940.994
2.422.42 0.002350.00235 0.01220.0122 0.08740.0874 0.5210.521
2.682.68 0.002910.00291 0.08450.0845 0.6390.639 0.9290.929
3.393.39 0.005920.00592 0.03600.0360 0.7540.754 0.9430.943
5.965.96 0.003360.00336 0.09510.0951 0.5590.559 0.9810.981
7.337.33 0.006500.00650 0.1840.184 0.7920.792 0.9780.978
8.138.13 0.003930.00393 0.08320.0832 0.6650.665 0.8410.841
8.248.24 0.001050.00105 0.02750.0275 0.1420.142 0.2890.289
10.010.0 0.003970.00397 0.01280.0128 0.2950.295 0.9020.902

I.3 Initial-state spectral function for the Anderson localization model

As a final example, we consider the Anderson localization model again, but this time with much weaker diagonal disorder. In Fig. S2, we plot the initial-state spectral function using the rodeo algorithm for the Anderson localization model with the root-mean-square diagonal disorder equal to 18\tfrac{1}{8}. With this small amount of diagonal disorder, the excited state orbitals are delocalized in space. We again take our initial state to be the basis state |kmin\ket{k_{\rm min}} such that ckminc_{k_{\rm min}} is the lowest diagonal element of the Hamiltonian. We show N=3N=3 (thin blue line), 66 (thick green line), and 99 (medium red line) cycles. We have averaged over 2020 sets of Gaussian random values for tnt_{n} with tRMS=10t_{\rm RMS}=10. For comparison, we also show the exact initial-state spectral function with black open circles. We observe that the spectral function is again well reproduced. The fact that our point-like initial state has a small but discernible overlap with most of the excited states is evidence of the extended spatial character of the orbitals.

Refer to caption
Figure S2: (color online) Initial-state spectral function for the Anderson localization model with diagonal disorder 18\tfrac{1}{8} and using tRMS=10t_{\rm RMS}=10. We plot the initial-state spectral function using the rodeo algorithm for the Anderson localization model with the root-mean-square diagonal disorder equal to 18\tfrac{1}{8}. We show results for 33 (thin blue line), 66 (thick green line), and 99 (medium red line) cycles. We have averaged over 2020 sets of Gaussian random values for tnt_{n} with tRMS=10t_{\rm RMS}=10. For comparison, we also show the exact initial-state spectral function with black open circles.

While keeping the root-mean-square diagonal disorder equal to 18\tfrac{1}{8}, we now show the corresponding results using tRMS=20t_{\rm RMS}=20 to better resolve the details of the excited-state spectrum. In Fig. S3, we plot the initial-state spectral function using the rodeo algorithm for the Anderson localization model, again with the initial state chosen to be the basis state |kmin\ket{k_{\rm min}} such that ckminc_{k_{\rm min}} is the lowest diagonal element of the Hamiltonian. We show N=3N=3 (thin blue line), 66 (thick green line), and 99 (medium red line) cycles. We have averaged over 2020 sets of Gaussian random values for tnt_{n} with tRMS=20t_{\rm RMS}=20. We take this larger value for tRMS=20t_{\rm RMS}=20 to resolve the details of the excited-state spectrum. For comparison, we also show the exact initial-state spectral function with black open circles. We see that the entire spectral function is well reproduced. Our point-like initial state has a small but discernible overlap with most of the excited states, indicating the extended spatial character of the excited-state orbitals.

Refer to caption
Figure S3: Initial-state spectral function for the Anderson localization model with diagonal disorder 18\tfrac{1}{8} and using tRMS=20t_{\rm RMS}=20. We plot the initial-state spectral function using the rodeo algorithm for the Anderson localization model with the root-mean-square diagonal disorder equal to 18\tfrac{1}{8}. We show results for 33 (thin blue line), 66 (thick green line), and 99 (medium red line) cycles. We have averaged over 2020 sets of Gaussian random values for tnt_{n} with tRMS=20t_{\rm RMS}=20. For comparison, we also show the exact initial-state spectral function with black open circles.