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.
Once the Hamiltonian is written in terms of Pauli operators and irrelevant states are discarded (finite-dimensional space), it would consist of a linear combination of Pauli strings consisting of tensor products ofPauli operators (for example), such that
,
where 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]
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.
The expectation value of a given state with parameters, has an expectation value of the energy or cost function given by
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 string, 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.
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]
For a given Hamiltonian (H) and a state vector if we can vary arbitrarily then will be the ground state energy and would be a ground state (assuming no degeneracy). But the above minimization problem over all possible states, where state is dimensional, is impractical. Thus to restrict the search space to a more practical size (e.g. poly(n)), we need to restrict the 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
The adjoining figure illustrates the high level steps in the VQE algorithm.
The circuit controls the subset of possible states that can be created, and the parameter contains the variational parameters, 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 function where for the VQE case. The update rule is:
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.
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.
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.
VQE can run on NISQ hardware.
VQE is highly versatile, as problems (apart from chemistry) can be expressed as Hamiltonians.
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]
^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.