Investigation of Perturbation Theory with Variational Quantum Algorithm
Abstract
Variational Quantum Algorithms are among the most promising systems to implement quantum computing under the Noisy-Intermediate Scale Quantum (NISQ) technology. In variational quantum algorithm, wavefunction represented by a parametrized ansatz and variational parameters are updated iteratively with a classical computer based on the measurement outputs from the quantum computer. In this paper, we investigate perturbation theory with these algorithms and prospect the possibility of using the variational quantum algorithm to simulate quantum dynamics in perturbation theory. We illustrate the use of algorithms with detailed examples which are in good agreement with analytical calculations.
Keyword: Variational quantum algorithms, Perturbation Theory, Time-dependent Hamiltonian, Near-term devices, Quantum dynamics
1 Introduction
We know that efficiently simulating quantum systems with high degrees of freedom is hard for classical computers due to the exponential growth of variables for characterizing these systems [1]. Quantum computers were proposed to solve such an exponential explosion problem, ranging from optimization to materials design, and the algorithms used in quantum computers have made great strides in the calculation and efficiency of various issues [2, 3, 4, 5]. Among the different approaches to quantum computing, the near-term quantum devices are mostly center around quantum simulations, which consists of a relatively low-depth quantum circuit by variational quantum algorithms. The variational algorithms were recently attracting a lot of attention, designed to utilize both quantum and classical resources to solve specific optimization tasks not accessible to traditional classical computers [6, 7, 8, 9, 10]. The main idea of this method is to divide the problem into two parts that each of performing a single task and can be implemented efficiently on a classical and a quantum computer. The significant benefit of this method is that it gives rise to a setup that can have much less strict hardware requirements and promising for NISQ [11] and devices typically have on the order of fewer qubits(contain from to of qubits) with high gate fidelity and not fault-tolerant error correction. From a practical point of view, most of the current efforts concentrate on analog quantum computing methods such as quantum annealing [12, 13], and quantum adiabatic simulation[14, 15]. Recently, several variational quantum algorithms for specific tasks have been developed, and analog approaches can be approximately solved using gate model NISQ devices. These algorithms and their applications are progressing in various fields such as variations quantum eigensolver (VQE) which is a hybrid algorithm to approximate the ground state eigenvalues for quantum simulations [16, 4], quantum approximate optimization algorithm (QAOA) for finding an approximate solution of an optimization problem[5, 17], dissipative-system Variational Quantum Eigensolver(dVQE) to simulate Non-equilibrium steady states an open system [18], molecular simulations on a quantum computer [19],variational quantum state diagonalization (VQSD) [20] , also to simulate dynamics of open and closed systems[21, 22]. A complete overview of these algorithms is provided in Ref.[23, 24]. In quantum mechanics, few problems have exact solution, whether or not Hamiltonian is time-dependent. Hence, approximate methods have been proposed[25]. The approximate methods play a significant role in the study of different quantum systems. In general, we have three approximate methods; they are Perturbation Theory (PT)[26], Variational theory[27] and WKB approximation[28]. Here we focuse on PT, suppose there is a problem the Hamiltonian of which is represented by , for which the exact solution is not known. The Hamiltonian of the system can be described in terms of two terms; the Hamiltonian is written , in which is called as the unperturbed Hamiltonian, and is called as the perturbation Hamiltonian, and is a continuous real parameter. It is important to realize that the system actually can be split in terms of these two Hamiltonians, and that should be known. In addition, there are two more conditions; one is that solution of the unperturbed Hamiltonian is completely known. The following condition, which is a stringen condition, that has to be much smaller than 1 , which means the perturbation terms are much smaller compared to the original Hamiltonian . In general, the PT can be divided into two categories, Time-Independent Perturbation Theory(TIPT) and Tim-Dependent Perturbation Theory(TDPT). In TIPT perturbation Hamiltonian, is independent of time, and in TDPT is dependent of time. Here, we consider TIPT, and TDPT, and investigate them with the variational quantum algorithm. In fact, in TDPT, we are dealing with a time-dependent Hamiltonian and try to find its spectrum (In the language of mathematics described in detail in Section 2). In this paper, we prospect the possibility of using a variational quantum algorithm to simulate quantum dynamics in TDPT and, TIPT. For this purpose, we employ time-dependent variational quantum algorithm introduced in Ref[21, 22, 29, 30, 31]. In this algorithm, the time-dependent quantum state is approximated by a parametrized quantum state and using McLachlan’s principle, the equation of motion for the variational parameters is obtained(described in detail in Section 3). The paper is organized as follows: In Section 2, we introduce Time-Independent and Time-Dependent Perturbation Theory. The variational quantum algorithm for quantum dynamics is described in Section 3. In Section 4, we present the numerical results. Finally, Section 5, gives the conclusions.
2 Perturbation Theory
Perturbation theory is widely used and plays an important role in describing real quantum systems, because it is impossible to find exact solutions to the Schrodinger equation for Hamiltonians even with moderate complexity. In general, the PT can be divided into two categories, TIPT and TDPT. In this section, we describe these two categories in detail.
2.1 Time-Independent Perturbation Theory
Time-independent perturbation theory is a mathematical tool for investigating quantum system which Hamiltonian is independent of time. Consider the time- independent Schrodinger equation
(1) |
where and are the eigenstate and energy respectively. The is unperturbed Hamiltonian and satisfies the time independent Schrodinger equation.Since, in TIPT, eigenstate and energy will be sought in the form of an expansion in powers of , After som calculation, in the first order approximation eigenstates and energies are expressed as
(2) |
For second-order approximation, we have
(3) |
Denote the and are expectation value of as .
2.2 Time-Dependent Perturbation Theory
In real world, there are many quantum systems of importance with time dependence, therefore, the dynamics of these systems must be examined by considering the time dependence. For a system described by a Hamiltonian , which is time–independent, the most general state of the system can be described by a wavefunction which can be expanded in the energy eigenbasis as follows
(4) |
where the coefficients, are time-independent and is the eigenvalue corresponding to the energy eigenstate of . For time dependent case, we consider a Hamiltonian as it can be split into two parts, that’s mean Hamiltonian is of the form
(5) |
we can again expand in, the time-independent eigenbasis of
(6) |
but the coefficients, will now in general be time-dependent. By using interaction picture and writing and given that the wavefunction satisfies the time-dependent Schrödinger equation, we obtain
With simple calculations we have
giving the following set of coupled, first–order differential equations for the coefficients
(7) |
where and It can be seen that, the coefficient varies with time i.e. the probability that a measurement will show the system to be in the eigenstate. It is exact, but not terribly useful because we must, in general, solve an infinite set of coupled differential equations. Here, instead of solving differential equations, we obtain the dynamics of the time-dependent Hamiltonian with the variational quantum algorithm directly.
3 Variational Quantum Algorithm
For simulate the time-inpendent Hamiltonian dynamics, we employ variational quantum algorithm introduced in Ref[21, 22, 29, 30, 31]. In this algorithm, state is approximated by a parametrized state , i.e.
where are variational parameters. By using time-dependent variational principle corresponding to the Schrödinger equation we have
(8) |
where, is Lagrangian. By considering and using the Euler-Lagrange equation we have
(9) |
where
(10) |
(11) |
For simulate the time-dependent Hamiltonian dynamics, we employ variational quantum algorithm introduced in Ref[21, 22, 29, 30, 31]. In this algorithm, state is approximated by a parametrized state , i.e.
where are variational parameters and is the time-ordering operator. By using McLachlan’s principle,( or Dirac and Frenkel variational principle) the equation of motion for the variational parameters is obtained by minimizing the quantity , so we have
(12) |
where
(13) |
The coefficients of the differential Eq.( 13) are determined using a quantum computer, while each propagation step is carried out by classically solving the differential equation. To obtain high accuracy of algorithm, we must be sensitive in choosing the wavefunction ansatz. Here we consider an ansatz of the form
The evolution operator is unitary, so it is equivalent to a certain rotation in the Hilbert space of states .i.e.
(14) |
where where are Pauli operators. So, we have,
(15) |
therefore the matrix elements of and are
(16) |
where the Hamiltonian expressed . The and are obtained in a quantum circuit via the Hadamard or Swap test. Note that the matrix elements in the first and second-order approximations i.e. Eq(2), Eq(3) and Eq(7) can be obtained by variational quantum algorithm.
4 Numerical Example
In this section, we numerically test the performance of the previously described variational quantum algorithm on some of the systems. In the first example, consider molecule and find ground state energy . We used a standard molecular basis set, the minimal STO-3G basis. Via JordanWigner or Bravyi-Kitaev transformation, the qubit-Hamiltonians of this molecule can be obtained. So,
(17) |
where the coefficients were all derived in this classical preprocessing step and are Puali matrixs. Whit using TIPT we can divid this Hamiltinain in two trem,
is the unperturbed Hamiltonian and is the perturbation Hamiltonain. is diagonal matrix and we can obtain eigenstate and energy by using TIPT. For variational quantum algorithm, we consider an anstaz of the form
. Output of variational algorithm compared it to TIPT solution ground state energy as shown in figure 1. Also we implement a quantum circuitfor evaluating coefficients on quantum processor in figure 2


In second example let us consider a two-state system with
Whit TDPT, we can obtain
where is the two-component vector and . With the initial condition , and this equation has the solution
(18) |
where is known as the Rabi frequency. The solution, which varies periodically in time, describes the transfer of probability from state 0 to state 1 and back. For variational quantum algorithm, we consider an anstaz of the form
Output of variational algorithm compared it to TDPT solution the transfer of probability from states as shown in figure 3. Also We propose a quantum circuit for evaluating coefficients on quantum processor in figure 4


5 Conclusion
We have considered a variational quantum algorithm for investigation of perturbation theory. We considered perturbation theory as two categories, time-independent perturbation theory and time-dependent perturbation theory. We have used a variational quantum algorithm which, exact state is approximated by a parametrized state and variational principle. In the case TIPT and, TDPT using the time-dependent variational principle and McLachlan’s principle corresponding to the Schrödinger equation, respectively, we obtained the differential equations for simulating dynamics. We compare the analytical and numerical results obtained from the exact solution with the variational quantum algorithm which, are in good agreement with each other.
References
- [1] R. P. Feynman. Simulating physics with computers. Int. J. Theor. Phys., 21:467, 1982.
- [2] Avinatan Hassidim Aram W. Harrow and Seth Lloyd. Quantum algorithm for linear systems of equations. Phys. Rev. Lett., 103:150502, 2009.
- [3] N. Alidoust A. Bestwick M. Block B. Bloom S. Caldwell N. Didier E. Schuyler Fried S. Hong P. Karalekas C. B. Osborn A. Papageorge E. C. Peterson G. Prawiroatmodjo N. Rubin Colm A. Ryan D. Scarabelli M. Scheer E. A. Sete P. Sivarajah Robert S. Smith A. Staley N. Tezak W. J. Zeng A. Hudson Blake R. Johnson M. Reagor M. P. da Silva C. Rigetti J. S. Otterbach, R. Manenti. Unsupervised machine learning on a hybrid quantum computer. arXiv:1712.05771 [quant-ph], 2017.
- [4] P. Shadbolt M. Yung X. Zhou P. J. Love A. Aspuru-Guzik A. Peruzzo, J. McClean and J. L. O’Brien. A variational eigenvalue solver on a photonic quantum processor. Nat.Commun., 5:4213, 2014.
- [5] J. Goldstone E. Farhi and S. Gutmann. A quantum approximate optimization algorithm. arXiv:1411.4028.
- [6] M. B. Hastin gs D. Wecker and M. Troyer. Towards practical quantum variational algorithms. Phys.Rev. A, 92:042303, 2015.
- [7] R. Babbush J. R. McClean, J. Rom ero and A. Aspuru-Guzik. The theor y of vari ational hybrid quantum-classical algorithms. New J. Phys., 18:023023, 2016.
- [8] Jaeyoon Cho, Dimitris G Angelakis, and Sougato Bose. Fractional quantum hall state in coupled cavities. Phys. Rev. Lett., 101(24):246809, 2008.
- [9] Andreas Trabesinger. Quantum simulation. Nature Physics., 8(263):00, 2012.
- [10] I. M. Georgescu, S. Ashhab, and Franco Nori. Quantum simulation. Rev. Mod. Phys., 86:153–185, Mar 2014.
- [11] J. Preskill. Quantum computing in the nisq era and beyond. Quantum, 2:79, 2018.
- [12] T. Kadowaki and H. Nishimori. Quantum annealing in the transverse ising model. Phys. Rev. E, 58:5355, 1998.
- [13] C. Sebenik C. Sten-son A.B. Finnila, M.A. Gomez and J.D. Doll. Quantum annealing: A new method for minimizing multidimensional functions. Chemical Physics Letters, 219:343, 1994.
- [14] Goldstone J. Gutmann S. Sipser M. Farhi, E. Quantum computation by adiabatic evolution. e-print arXiv:, 0001106, 2000.
- [15] Alán Aspuru-Guzik Ryan Babbush, Peter J. Love. Adiabatic quantum simulation of quantum chemistry. Scientific Reports, 4:6603, 2014.
- [16] K.Temme M. Takita-M. Brink J. M. Chow A. Kandala, A. Mezzacapo and J. M. Gambetta. A variational eigenvalue solver on a photonic quantum processor. Nature, 549:242, 2017.
- [17] E. Farhi and A. W. Harrow. Quantum supremacy through the quantum approximate optimization algorithm. arXiv:1602.07674.
- [18] Nakagawa Y. O. Mitarai K. Yoshioka, N. and K. Fujii. Variational quantum algorithm for non-equilirium steady states. arXiv:1908.09836 [quant-ph], 2019.
- [19] Economou S. E. Barnes-E. Grimsley, H. R. and Mayhall. An adaptive variational algorithm for exact molecular simulations on a quantum computer. Nature communications, 10:1, 2019.
- [20] Étude O’Neel-Judy-Lukasz Cincio Ryan LaRose, Arkin Tikku and Patrick J. Coles. Variational quantum state diagonalization. npj Quantum Information, 5:57, 2019.
- [21] Mahmoud Mahdian and H Davoodi Yeganeh. Hybrid quantum variational algorithm for simulating open quantum systems with near-term devices. Journal of Physics A: Mathematical and Theoretical, 53(41):415301, 2020.
- [22] Mahmoud Mahdian and H Davoodi Yeganeh. Incoherent quantum algorithm dynamics of an open system with near-term devices. Quantum Information Processing, 19(9):1–13, 2020.
- [23] Kishor Bharti, Alba Cervera-Lierta, Thi Ha Kyaw, Tobias Haug, Sumner Alperin-Lea, Abhinav Anand, Matthias Degroote, Hermanni Heimonen, Jakob S Kottmann, Tim Menke, et al. Noisy intermediate-scale quantum (nisq) algorithms. arXiv preprint arXiv:2101.08448, 2021.
- [24] Suguru Endo, Zhenyu Cai, Simon C Benjamin, and Xiao Yuan. Hybrid quantum-classical algorithms and quantum error mitigation. Journal of the Physical Society of Japan, 90(3):032001, 2021.
- [25] Jun John Sakurai and Eugene D Commins. Modern quantum mechanics, revised edition, 1995.
- [26] Tosio Kato. Perturbation theory for linear operators, volume 132. Springer Science & Business Media, 2013.
- [27] P Kramer. A review of the time-dependent variational principle. In Journal of Physics: Conference Series, volume 99, page 012009. IOP Publishing, 2008.
- [28] JL Dunham. The wentzel-brillouin-kramers method of solving the wave equation. Physical Review, 41(6):713, 1932.
- [29] Ying Li and Simon C. Benjamin. Efficient variational quantum simulator incorporating active error minimisation. pages 1–12, 2016.
- [30] Suguru Endo, Jinzhao Sun, Ying Li, Simon C Benjamin, and Xiao Yuan. Variational quantum simulation of general processes. Physical Review Letters, 125(1):010501, 2020.
- [31] Ping-Yuan Lo Yueh-Nan Chen Hong-Bin Chen, Clemens Gneiting and Franco Nori. Simulating open quantum systems with hamiltonian ensembles and the nonclassicality of the dynamics. Phys.Rev.Let., 120:030403, 2018.