Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Variational quantum eigensolver

From Wikipedia, the free encyclopedia
Quantum algorithm

Inquantum computing, thevariational quantum eigensolver (VQE) is aquantum algorithm forquantum chemistry,quantum simulations andoptimization problems. It is a hybrid algorithm that uses both classical computers and quantum computers to find theground state of a given physical system. Given a guess oransatz, the quantum processor calculates the expectation value of the system with respect to anobservable, often the Hamiltonian, and a classicaloptimizer is used to improve the guess. The algorithm is based on thevariational method of quantum mechanics.

It was originally proposed in 2014, with corresponding authors Alberto Peruzzo,Alán Aspuru-Guzik andJeremy O'Brien.[a][1][2] The algorithm has also found applications inquantum machine learning and has been further substantiated by general hybrid algorithms between quantum and classical computers.[3] It is an example of anoisy intermediate-scale quantum (NISQ) algorithm.

Description

[edit]

Pauli encoding

[edit]

The objective of the VQE is to find a set of quantum operations that prepares the lowest energy state (or minima) of a close approximation to some target quantity or observable. While the only strict requirement for the representation of an observable is its efficiency in estimating its expectation values, it is often more straightforward if the operator has a compact or simple expression in terms of Pauli operators or tensor products of Pauli operators.

For a fermionic system, it is often most convenient to qubitize: that is to write the many-bodyHamiltonian of the system usingsecond quantization, and then use a mapping to write thecreation-annihilation operators in terms of Pauli operators. Common schemes for fermions includeJordan–Wigner transformation,Bravyi–Kitaev transformation[4], and parity transformation.[5][6]

Once the HamiltonianH^{\displaystyle {\hat {H}}} is written in terms of Pauli operators and irrelevant states are discarded (finite-dimensional space), it would consist of a linear combination of Pauli stringsP^i{\displaystyle {\hat {P}}_{i}} consisting of tensor products ofPauli operators (for exampleXIZX{\displaystyle X\otimes I\otimes Z\otimes X}), such that

H^=iαiP^i{\displaystyle {\hat {H}}=\sum _{i}\alpha _{i}{\hat {P}}_{i}},

whereαi{\displaystyle \alpha _{i}} are numerical coefficients. Based on the coefficients, the number of Pauli strings can be reduced in order to optimize the calculation.[7]

The VQE can be adapted to other optimization problems by adapting the Hamiltonian to be a cost function.[8]

Ansatz and initial trial function

[edit]

The choice of ansatz state depends on the system of interest. Ingate-based quantum computing, the ansatz is given by a parametrizedquantum circuit, whose parameters can be updated after each run. The ansatz has to be adaptable enough to not miss the desired state. A common method to obtain a valid ansatz is given by the unitary coupled cluster (UCC) framework and its extensions.[6]

If the ansatz is not chosen adequately the procedure may halt at suboptimal parameters that do not correspond to a minima. In this situation, the algorithm is said to have reached a 'barren plateau'.[6]

Example of a hardware efficient ansatz.

The ansatz can be set to an initial trial function to start the algorithm. For example, for a molecular system, one can use theHartree–Fock method to provide a starting state that is close to the real ground state.

Another variant of the ansatz circuit is the hardware efficient ansatz, which consists of sequence of 1 qubit rotational gates and 2 qubit entangling gates.[citation needed] The number of repetitions of 1-qubit rotational gates and 2-qubit entangling gates is called the depth of the circuit.

Measurement

[edit]

The expectation value of a given state|ψ(θ1,,θN){\displaystyle |\psi (\theta _{1},\cdots ,\theta _{N})\rangle } with parameters{θi}i=1N{\displaystyle \{\theta _{i}\}_{i=1}^{N}}, has an expectation value of the energy or cost function given by

E(θ1,,θn)=H^=iαiψ(θ1,,θN)|P^i|ψ(θ1,,θN){\displaystyle E(\theta _{1},\cdots ,\theta _{n})=\langle {\hat {H}}\rangle =\sum _{i}\alpha _{i}\langle \psi (\theta _{1},\cdots ,\theta _{N})|{\hat {P}}_{i}|\psi (\theta _{1},\cdots ,\theta _{N})\rangle }

so in order to obtain the expectation value of the energy, one can measure the expectation value of each Pauli string (number of counts for a given value over the total number of counts). This step corresponds to measuring each qubit in the axis provided by the Pauli string.[8] For example, for the stringXYY{\displaystyle X\otimes Y\otimes Y}, the first qubit is to be measured in thex-axis, while the last two are to be measured in they-axis of theBloch sphere. If measurement in thez-axis is only possible, thenClifford gates can be used to transform between axes. If two Pauli strings commute, then they can be both measured simultaneously using the same circuit and interpreting the result according to the Pauli algebra.

Variational method and optimization

[edit]

Given a parametrized ansatz for the ground state eigenstate, with parameters that can be modified, one is sure to find the parametrized state that is closest to the ground state based on thevariational method of quantum mechanics. Using classical algorithms in a digital computer, the parameters of the ansatz can be optimized. For this minimization, it is necessary to find the minima of a multivariable function. Classical optimizers usinggradient descent can be used for this purpose.[8]

Formulation

[edit]
icon
This sectiondoes notcite anysources. Please helpimprove this section byadding citations to reliable sources. Unsourced material may be challenged andremoved.(June 2024) (Learn how and when to remove this message)

For a given Hamiltonian (H) and a state vector|ψ{\displaystyle |\psi \rangle } if we can vary|ψ{\displaystyle |\psi \rangle } arbitrarily thenmin|ψψ|H|ψ{\displaystyle \min _{|\psi \rangle }\langle \psi |H|\psi \rangle } will be the ground state energy andargmin|ψψ|H|ψ{\displaystyle \operatorname {argmin} _{|\psi \rangle }\langle \psi |H|\psi \rangle } would be a ground state (assuming no degeneracy). But the above minimization problem over all possible states|ψ{\displaystyle |\psi \rangle }, where state|ψ{\displaystyle |\psi \rangle } is2n{\displaystyle 2^{n}} dimensional, is impractical. Thus to restrict the search space to a more practical size (e.g. poly(n)), we need to restrict the|ψ{\displaystyle |\psi \rangle } to only a subset of possible n-qubit states which is based on conventional physics, chemistry and quantum mechanics knowledge.

High Level illustration of Variational Quantum Algorithm

Algorithm

[edit]

The adjoining figure illustrates the high level steps in the VQE algorithm.

The circuitU(θ){\displaystyle U({\vec {\theta }})} controls the subset of possible states that can be created, and the parameterθ{\displaystyle {\vec {\theta }}} contains the variational parameters,θ=(θ1θ2θp){\displaystyle {\vec {\theta }}={\begin{pmatrix}\theta _{1}\\\theta _{2}\\\vdots \\\theta _{p}\end{pmatrix}}} where the number of parameters chosen are enough to lend the algorithm expressive power to compute the ground state of the system, but not too big to increase the computational cost of the optimization step.

By running the circuit many times and constantly updating the parameters to find the global minima of the expectation value of the desired observable, one can approach the ground state of the given system and store it in a quantum processor as a series ofquantum gate instructions.

In case of gradient descent, it's required to minimize a cost functionf(θ){\displaystyle f({\vec {\theta }})} where for the VQE casef(θ)=ψ(θ)|H|ψ(θ){\displaystyle f({\vec {\theta }})=\langle \psi ({\vec {\theta }})|H|\psi ({\vec {\theta }})\rangle }. The update rule is:

θ(new)=θ(old)rf(θ(old)){\displaystyle {\vec {\theta }}^{({\text{new}})}={\vec {\theta }}^{({\text{old}})}-r\nabla f({\vec {\theta }}^{({\text{old}})})}

wherer is the learning rate (step size) and

f(θ(old))=(f(θ(old))θ1,f(θ(old))θ2,){\displaystyle \nabla f({\vec {\theta }}^{({\text{old}})})=\left({\frac {\partial f({\vec {\theta }}^{({\text{old}})})}{\partial \theta _{1}}},{\frac {\partial f({\vec {\theta }}^{({\text{old}})})}{\partial \theta _{2}}},\ldots \right)^{\top }}

In order to compute the gradients, theparameter shift rule is used.[9][10]

Example

[edit]

Considering a single Pauli gate example:

U(θ)=eiθ2P,{\displaystyle U(\theta )=e^{-i{\frac {\theta }{2}}P},}

whereP =X,Y or Z, then

θU=Uθ=i2Peiθ2P=i2PU=i2UP{\displaystyle \nabla _{\theta }U={\frac {\partial U}{\partial \theta }}=-{\frac {i}{2}}Pe^{-i{\frac {\theta }{2}}P}=-{\frac {i}{2}}PU=-{\frac {i}{2}}UP}

As,f(θ)=ϕ|UAU|ϕ{\displaystyle f(\theta )=\langle \phi |U^{\dagger }AU|\phi \rangle }. Thus,

θf(θ)=θϕ|UAU|ϕ=ϕ|(i2P)UAU|ϕ+ϕ|UA(i2P)U|ϕ{\displaystyle \nabla _{\theta }f(\theta )={\frac {\partial }{\partial \theta }}\langle \phi |U^{\dagger }AU|\phi \rangle =\langle \phi |\left({\frac {i}{2}}P\right)U^{\dagger }AU|\phi \rangle +\langle \phi |U^{\dagger }A\left(-{\frac {i}{2}}P\right)U|\phi \rangle }
=12ϕ|U(θ+π2)AU(θ+π2)|ϕ12ϕ|U(θπ2)AU(θπ2)|ϕ{\displaystyle ={\frac {1}{2}}\langle \phi |U^{\dagger }(\theta +{\frac {\pi }{2}})AU(\theta +{\frac {\pi }{2}})|\phi \rangle -{\frac {1}{2}}\langle \phi |U^{\dagger }(\theta -{\frac {\pi }{2}})AU(\theta -{\frac {\pi }{2}})|\phi \rangle }
=12(f(θ+π2)f(θπ2)){\displaystyle ={\frac {1}{2}}\left(f(\theta +{\frac {\pi }{2}})-f(\theta -{\frac {\pi }{2}})\right)}

The above result has interesting properties as:

  1. The same circuit can be used to evaluatef(θ){\displaystyle f(\theta )} andθf(θ){\displaystyle \nabla _{\theta }f(\theta )}
  2. f(){\displaystyle f(\cdot )} needs to be evaluated 2 times to arrive at the gradient value
  3. As the angle precision±π2{\displaystyle \pm {\frac {\pi }{2}}} is large, gate precision can be kept low

Advantages and disadvantages

[edit]
icon
This sectiondoes notcite anysources. Please helpimprove this section byadding citations to reliable sources. Unsourced material may be challenged andremoved.(June 2024) (Learn how and when to remove this message)
  1. The VQE circuit does not require many gates compared withquantum phase estimation algorithm (QPE), it is more robust to errors and lends itself well to error mitigation strategies.
  2. It is a heuristic method and thus does not guarantee convergence to the ground state value. The method is highly influenced by the choice of ansatz circuit and the optimization methods.
  3. Number of measurements required to conclude the value of ground state is higher compared to the QPE and scales approximately with the number of terms in the Hamiltonian.
  4. VQE can run on NISQ hardware.
  5. VQE is highly versatile, as problems (apart from chemistry) can be expressed as Hamiltonians.

Use

[edit]

In chemistry

[edit]

As of 2022, the variational quantum eigensolver can only simulate small molecules like thehelium hydride ion[1] or theberyllium hydride molecule.[11] Larger molecules can be simulated by taking into account symmetry considerations. In 2020, a 12-qubit simulation of a hydrogen chain (H12) was demonstrated usingGoogle'sSycamore quantum processor.[12]

See also

[edit]

Notes

[edit]
  1. ^Full authors: Alberto Peruzzo, Jarrod McClean, Peter Shadbolt, Man-Hong Yung, Xiao-Qi Zhou, Peter J. Love, Alan Aspuru-Guzik and Jeremy L. O'Brien. All equally contributing.

References

[edit]
  1. ^abPeruzzo, Alberto; McClean, Jarrod; Shadbolt, Peter; Yung, Man-Hong; Zhou, Xiao-Qi; Love, Peter J.; Aspuru-Guzik, Alán; O'Brien, Jeremy L. (2014)."A variational eigenvalue solver on a photonic quantum processor".Nature Communications.5 (1): 4213.arXiv:1304.3061.Bibcode:2014NatCo...5.4213P.doi:10.1038/ncomms5213.ISSN 2041-1723.PMC 4124861.PMID 25055053.
  2. ^Bharti, Kishor; Cervera-Lierta, Alba; Kyaw, Thi Ha; Haug, Tobias; Alperin-Lea, Sumner; Anand, Abhinav; Degroote, Matthias; Heimonen, Hermanni; Kottmann, Jakob S.; Menke, Tim; Mok, Wai-Keong; Sim, Sukin; Kwek, Leong-Chuan; Aspuru-Guzik, Alán (2022-02-15)."Noisy intermediate-scale quantum algorithms".Reviews of Modern Physics.94 (1) 015004.arXiv:2101.08448.Bibcode:2022RvMP...94a5004B.doi:10.1103/RevModPhys.94.015004.hdl:10356/161272.
  3. ^McClean, Jarrod R; Romero, Jonathan; Babbush, Ryan; Aspuru-Guzik, Alán (2016-02-04)."The theory of variational hybrid quantum-classical algorithms".New Journal of Physics.18 (2) 023023.arXiv:1509.04279.Bibcode:2016NJPh...18b3023M.doi:10.1088/1367-2630/18/2/023023.ISSN 1367-2630.S2CID 92988541.
  4. ^Bravyi, Sergey B.; Kitaev, Alexei Yu. (2002-05-25)."Fermionic Quantum Computation".Annals of Physics.298 (1):210–226.arXiv:quant-ph/0003137.doi:10.1006/aphy.2002.6254.ISSN 0003-4916.
  5. ^Steudtner, M (2019).Methods to simulate fermions on quantum computers with hardware limitations (PhD Thesis). University of Leiden.
  6. ^abcTilly, Jules; Chen, Hongxiang; Cao, Shuxiang; Picozzi, Dario; Setia, Kanav; Li, Ying; Grant, Edward; Wossnig, Leonard; Rungger, Ivan; Booth, George H.; Tennyson, Jonathan (2022-06-12). "The Variational Quantum Eigensolver: A review of methods and best practices".Physics Reports.986:1–128.arXiv:2111.05176.Bibcode:2022PhR...986....1T.doi:10.1016/j.physrep.2022.08.003.S2CID 243861087.
  7. ^Seeley, Jacob T.; Richard, Martin J.; Love, Peter J. (2012-12-12)."The Bravyi-Kitaev transformation for quantum computation of electronic structure".The Journal of Chemical Physics.137 (22): 224109.arXiv:1208.5986.Bibcode:2012JChPh.137v4109S.doi:10.1063/1.4768229.ISSN 0021-9606.PMID 23248989.S2CID 30699239.
  8. ^abcMoll, Nikolaj; Barkoutsos, Panagiotis; Bishop, Lev S; Chow, Jerry M; Cross, Andrew; Egger, Daniel J; Filipp, Stefan; Fuhrer, Andreas; Gambetta, Jay M; Ganzhorn, Marc; Kandala, Abhinav; Mezzacapo, Antonio; Müller, Peter; Riess, Walter; Salis, Gian (2018)."Quantum optimization using variational algorithms on near-term quantum devices".Quantum Science and Technology.3 (3): 030503.arXiv:1710.01022.Bibcode:2018QS&T....3c0503M.doi:10.1088/2058-9565/aab822.ISSN 2058-9565.S2CID 56376912.
  9. ^Wierichs, David; Izaac, Josh; Wang, Cody; Lin, Cedric Yen-Yu (2022-01-01). "General parameter-shift rules for quantum gradients".Quantum.6: 677.arXiv:2107.12390.doi:10.22331/q-2022-03-30-677.
  10. ^Markovich, Liubov; Malikis, Savvas; Polla, Stefano; Tura, Jordi (2024-06-01). "Parameter shift rule with optimal phase selection".Physical Review A.109 (6) 062429. APS.doi:10.1103/PhysRevA.109.062429.hdl:1887/4175663.
  11. ^Kandala, Abhinav; Mezzacapo, Antonio; Temme, Kristan; Takita, Maika; Brink, Markus; Chow, Jerry M.; Gambetta, Jay M. (2017)."Hardware-efficient variational quantum eigensolver for small molecules and quantum magnets".Nature.549 (7671):242–246.arXiv:1704.05018.Bibcode:2017Natur.549..242K.doi:10.1038/nature23879.ISSN 1476-4687.PMID 28905916.S2CID 4390182.
  12. ^Arute, Frank; Arya, Kunal; Babbush, Ryan; et al. (2020)."Hartree-Fock on a superconducting qubit quantum computer".Science.369 (6507):1084–1089.arXiv:2004.04174.Bibcode:2020Sci...369.1084..doi:10.1126/science.abb9811.ISSN 0036-8075.PMID 32855334.S2CID 215548188.
General
Theorems
Quantum
communication
Quantum cryptography
Quantum algorithms
Quantum
complexity theory
Quantum
processor benchmarks
Quantum
computing models
Quantum
error correction
Physical
implementations
Quantum optics
Ultracold atoms
Spin-based
Superconducting
Quantum
programming
Retrieved from "https://en.wikipedia.org/w/index.php?title=Variational_quantum_eigensolver&oldid=1338635206"
Category:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp