Chapter II: Quantum imaginary time evolution (QITE) for the determination
2.3 Formulation of QITE
The quantum imaginary time evolution algorithm (QITE) was proposed by our collaborators [49] as an alternative to treat the Hamiltonian ground state problem on NISQ devices. QITE is a quantum analogue to the imaginary time evolution [66],
Figure 2.2: Implementation of VQE to solve for the ground state energy of BeH2. (Left) Hardware-efficient quantum circuit for trial state preparation and energy estimation, shown here for 6 qubits. The circuit is composed of a sequence of interleaved single-qubit rotations, and entangling unitary operations UENT that entangle all the qubits in the circuit. A final set of post-rotations prior to qubit readout are used to measure the expectation values of the terms in the qubit Hamiltonian, and estimate the energy of the trial state. (Right) energy minimization for the six-qubit Hamiltonian describing BeH2. The figure is reproduced from [63].
an approach commonly employed on classical computers to find the ground state wavefunction and energy of a system of interest [67]. The method does not require the deep circuits commonly found in quantum phase estimation algorithms, and does not need to solve the high-dimensional optimization problem that is encountered frequently in VQE.
2.3.1 Imaginary time evolution
For a system described by the Hamiltonian Λπ», the imaginary time dynamics of a state|πβ©is governed by
βππ½|πβ©=π»Λ|πβ© (2.3)
whereπ½=ππ‘withβis taken to be one for convenience. Assuming that the Hamilto- nian is time-independent, then for an initial state |π(0)β©, the normalized imaginary time evolution to imaginary timeπis given by
|π(π)β© =Nβ1/2(π)πβππ»Λ|π(0)β©, N = β¨π(0) |πβ2ππ»Λ|π(0)β© (2.4) where the normalization factorN (π)arises due to the fact that the propagatorπβπ π» is non-unitary. The ground state wavefunction and energy of Λπ» can be obtained
using imaginary time evolution as
|πβ©ππ ππ’ππ π π‘ ππ‘ π =limπ½ββπβπ½π»Λ|πβ©/||πβπ½π»Λ|πβ© || (2.5) 2.3.2 QITE
The challenge in implementing imaginary time evolution on a quantum computer arises from the fact that the imaginary time propagator is non-unitary. The difficulty can be circumvented as such: First, consider a geometric k-local Hamiltonian Λπ» = Γ
π βΛπ(where each term Λβπ acts on at most π neighbouring qubits) and perform a first-order Trotter decomposition of the imaginary time propagator:
πβππ»Λ =(πΞππ»Λ)π+ O (Ξπ), Ξπ= π π
(2.6) At the(π+1)th Trotter step, the normalized state|π(π+1)β©is given by
|π(π+1)β© =π(π+1)β1/2πβΞππ»Λ|π(π)β© (2.7) π(π+1) =β¨π(π) |πβ2Ξππ»Λ|π(π)β© (2.8)
β 1β2Ξπβ¨π(π) |π»Λ|π(π)β© (2.9) Our collaboratorβs approach is to find a unitary operatorπβπ π΄(π) that maps|π(π)β©
to|π(π+1)β©. π΄(π)can be expanded as a sum of Pauli basis that spans the system:
π΄(π)= βοΈ
π1,π2,...,π π
π(π)π1π2...ππππ
1 βππ
2...βππ
π (2.10)
withπ(π)π1π2...ππ being the coefficient of theπ1π2...πππ Pauli basis at step m and π is the size of the system.
To determine the weights, the rotated state|πΛ(π+1)β© can be defined as
|πΛ(π+1)β© =πβπ π΄(π)|π(π)β© (2.11) and define the difference between this rotated state and the previous state as
|Ξβ©=|πΛ(π+1)β© β |π(π)β© (2.12)
β βπ π΄(π) |π(π)β©
where the last line is obtained by making an approximation that the rotation is so small thatπβπ π΄(π)|π(π)β© β |π(π)β© βπ π΄(π) |π(π)β©. Define the original difference as
|Ξ0β© =|π(π+1)β© β |π(π)β© (2.13)
The distance squared between the two states; π =|| |Ξβ© β |Ξ0β© ||2is given by π =π0+ π
βοΈ
π(π+1)
β¨Ξ0|βοΈ
πΌ
ππΌππΌ|π(π)β© β π
βοΈ
π(π+1)
βοΈ
πΌ
ππΌβ¨π(π) |πβ
πΌ|Ξ0β© (2.14) +βοΈ
πΌ ,π½
ππΌππ½β¨π(π) |ππΌππ½|π(π)β©
where the index πΌ , π½ is used to suppress the index π1π2...ππ and π0 = β¨Ξ0|Ξ0β©. To obtain the coefficients, minimize this distance with respect to the coefficients ππΌ gives
(S+Sπ)x=b (2.15)
ππΌ ,π½ =β¨π(π) |ππΌππ½|π(π)β© (2.16) ππΌ = 2
βοΈ
π(π+1)
πΌ πβ¨π(π) |ππΌπ»Λ|π(π)β© (2.17) where π₯ is the vector of the desired coefficients ππΌ. Solving this system of lin- ear equations requires measurement over the Pauli basis to obtain all the required expectation values as described in Chapter1.1.
2.3.3 Complexity analysis of QITE
Here, a summary of the complexity analysis presented in [49] is provided. The analysis begin by considering a state |Ξ¨β© with finite correlation length extending overπΆqubits (that is, correlations between observables separated by distanceπΏthat are bounded by exp(βπΏ/πΆ)) and a πβlocal Hamiltonian represented by Λβπ. It is argued [49] that the normalized stateπβΞπβΛπ|Ξ¨β©/||πβΞπβΛπ|Ξ¨β©||can be generated by a unitary πβπΞππ΄Λ[π] acting on a domain of width at most π(πΆ) qubits surrounded the qubits acted on by Λβπ.
As a result, the unitary can be determined by performing measurements and solving the least squares problem in this domain (Fig. 2.3). For example, for a nearest- neighbor local Hamiltonian on a π-dimension cubic lattice, the domain size π· is bounded byπ(πΆπ).
In many physical systems, it is expected that the maximum correlation length throughout the Trotter steps should increase with π½ and saturate for πΆmax βͺ π [68]. Fig. 2.3 shows the mutual information between qubitsπ and π as a function of imaginary time in the 1-D and 2-D ferromagnetic transverse field Ising models computed by tensor network simulation, demonstrating a monotonic increase and clear saturation.
Figure 2.3: Physical foundations of the quantum imaginary time evolution algorithm. (a) Schematic of the QITE algorithm. Top: imaginary-time evolution under a geometric π-local operator Λβ[π]can be reproduced by a unitary operation acting on π· > π qubits. Bottom: exact imaginary-time evolution starting from a product state requires unitaries acting on a domain π·that grows with correlations.
(b,c) Left: mutual information πΌ(π, π) between qubitsπ, π as a function of distance π(π, π) and imaginary time π½, for a 1-D (b) and a 2D (c) FM transverse-field Ising model, with β = 1.25, 50 qubits and β = 3.5, 21Γ31 qubits respectively. πΌ(π, π) saturates at longer times. Right: relative error in the energy ΞπΈ and fidelity πΉ = |β¨Ξ¦(π½) |Ξ¨β©|2 between the finite-time state Ξ¦(π½) and infinite-time state Ξ¨ as a function of π½. The noise in the 2-D fidelity error at large π½ arises from the approximate nature of the algorithm used. The figure is reproduced from [49].
To thus compare the algorithm with its classical counterpart, it is argued that the number of measurements and classical storage at a given time step (starting prop- agation from a product state) is bounded by exp(π(πΆπ)) (withπΆ the correlation length at that time step), since each unitary at that step acts on at mostπ(πΆπ)sites;
classical solution of the least squares problem has a similar scaling exp(π(πΆπ)), as does the synthesis and application as a quantum circuit (composed of two-qubit gates) of the unitary πβπΞππ΄Λ[π]. Thus, space and time requirements are bounded by exponentials in πΆπ, but are polynomial in π when one is interested in a local approximation of the state (the polynomial inπcomes from the number of terms in π»). Since πΆ saturates, compared with a direct classical implementation of imagi- nary time evolution, the cost of a QITE time step (for boundedπΆ) is linear in π in space and polynomial in π in time, thus giving an exponential reduction in space and time.
2.3.4 Lanczos algorithm on quantum computer
The Lanczos algorithm is an especially economical realization of a quantum sub- space method [69, 70]. The Lanczos algorithm typically converges much more quickly than imaginary time evolution, and often in physical simulations only tens of iterations are needed to converge to good precision. Thus, the implementation of the Lanczos algorithm with QITE [49] offer practical advantages in ground state computation. We present its formulation [49] here.
Starting from a trial wavefunction|πβ©, the Lanczos iteration constructs the Hamil- tonian matrixHΛ in a successively enlarged Krylov subspace{|πβ©,π»Λ|πβ©,π»Λ2|πβ©, ...};
diagonalizingHΛ yields an estimate of the ground state energies that practically con- verges much more quickly than direct imaginary time evolution. In addition, the method provides an estimate of the excited state energies.
The QITE subroutine can be used to construct a quantum analogue of the Lanczos scheme. Starting from a trial wavefunction|πβ©, QITE can be used to generate a set of wavefunctions given by
|ππβ© =πβπΞππ»Λ|πβ©/||πβπΞππ»Λ|πβ© ||, 0β€ π < πΏπ ππ₯
β‘πππβπΞππ»Λ|πβ© (2.18)
whereππ is the normalization constant. The matricesSΛ andHΛ are defined with the following matrix elements
Λ
ππ ,πβ² = β¨ππ|ππβ²β©, π»Λπ ,πβ² = β¨ππ|π»Λ|ππβ²β© (2.19) Let 2π =π+πβ², the matrix elements can be expressed as
Λ
ππ ,πβ² = ππππβ²
π2π
, π»Λπ ,πβ² = ππππβ²
π2π
β¨ππ|π»|ππβ© (2.20) Since the normalization factorππ can be computed recursively by
1 π2
π+1
= β¨ππ|πβ2Ξππ»Λ|ππβ© π2π
(2.21) the matrices Λπ and Λπ» can be constructed by performing sequential imaginary time steps and storing the energy and norm at each step.
The generalized eigenvalue equationHxΛ = πΈSxΛ can be solved to find an approxi- mation to the ground state |π
β²β© = Γ
ππ₯π|ππβ© for the ground state. In practice, this eigenvalue equation can be numerically ill-conditioned because S can contain small
and negative eigenvalues for the following reasons: (i) |ππβ© can become linearly- dependent and (ii) simulations have finite precision as well as noise arising from sampling and hardware imperfections.
To regularize the problem, out of the set of time-evolved states, a well-behaved sequence can be extracted by the following: (i) start from |ππ π π π‘β© = |π0β©, (ii) add the next |ππβ© in the set of time-evolved states s.t. |β¨ππ|ππ π π π‘β©| < π , where s is a regularization parameter 0< π < 1, (iii) repeat (i) and (ii) by setting|ππ π π π‘β©= |ππβ© The generalized eigenvalue equation HxΛ = πΈΛSx spanned by this regularized se- quence can then be solved.
2.4 Demonstration of QITE and Lanczos on Aspen-1 quantum processor