Ang pahinang ito ay hindi pa naisalin. Nakikita mo ang orihinal na bersyon sa Ingles.
Variational Quantum Eigensolver (VQE)
For this module, students must have a working Python environment, and the latest versions of the following packages installed:
qiskitqiskit_ibm_runtimeqiskit-aerqiskit.visualizationnumpypylatexenc
To set up and install these packages, see the Install Qiskit guide. To run jobs on real quantum computers, students will need to set up an IBM Cloud account, following the steps in the Set up your IBM Cloud account guide.
This module has been tested and used approximately 8 minutes of QPU time. This is an estimate, and your actual usage may vary.
# Uncomment and modify this line as needed to install dependencies
#!pip install 'qiskit>=2.1.0' 'qiskit-ibm-runtime>=0.40.1' 'qiskit-aer>=0.17.0' 'numpy' 'pylatexenc'
Introduction
Since the development of the quantum mechanical model in the early 20th century, scientists have understood that electrons do not follow fixed paths around an atom's nucleus but rather exist in regions of probability called orbitals. These orbitals correspond to specific, discrete energy levels that electrons can occupy. Electrons naturally reside in the lowest available energy levels, known as the ground state. However, if an electron absorbs sufficient energy, it can jump to a higher energy level, entering an excited state. This excited state is temporary, and the electron will eventually return to a lower energy level, releasing the absorbed energy, often in the form of light. This fundamental process of energy absorption and emission is important to understanding how atoms interact and form bonds.
When atoms come together to form molecules, their atomic orbitals combine to form molecular orbitals. The arrangement and energy levels of electrons within these molecular orbitals dictate the properties of the resulting molecule and the strength of the chemical bonds. For instance, in the formation of a hydrogen molecule () from two individual hydrogen atoms, the electron from each atom occupies atomic orbitals. As the atoms approach each other, these atomic orbitals overlap and combine to form new molecular orbitals — one with lower energy (a bonding orbital) and one with higher energy (an anti-bonding orbital). The two electrons, one from each hydrogen atom, will preferentially occupy the lower-energy bonding orbital, leading to the formation of a stable covalent bond that holds the molecule together. The energy difference between the separated atoms and the formed molecule, particularly the energy of the electrons in the molecular orbitals, determines the stability and properties of the bond.
In the following sections, we will explore this process of molecular formation, focusing on the molecule. We will use a real quantum computer, combined with classical optimization techniques, to find the energy of this simple yet fundamental process. This experiment will provide a practical demonstration of how quantum computation can be applied to solve problems in computational chemistry, providing insights into the role of electron energy.
VQE - A variational quantum algorithm for eigenvalue problems
Approximation techniques for chemistry - variational principle and the basis set
Erwin Schrödinger's contributions to quantum mechanics are not limited to introducing a new electronic model; fundamentally, he established wave mechanics by developing the famous time-dependent Schrödinger equation:
Here, is the Hamiltonian operator, which represents the total energy of the system, and is the wave function that contains all the information about the system’s quantum state. (Note: is the total time derivative, and we do not explicitly include the energy eigenvalue here.)
However, in many practical applications — such as determining the allowed energy levels of atoms and molecules — we instead use the time-independent Schrödinger equation (energy eigenvalue equation), which is derived from the time-dependent form by assuming a stationary state. A stationary state is a quantum state in which the probability density of finding a particle at a given point in space does not change over time.
In this form, represents the energy eigenvalue corresponding to the quantum state . The Hamiltonian includes various energy contributions, such as the kinetic energy of electrons and nuclei, the attractive forces between electrons and nuclei, and the repulsive forces between electrons.
Solving the energy eigenvalue equation allows us to calculate the quantized energy levels of atomic and molecular systems. However, for molecules, solving it exactly is difficult because the wave function , which describes the spatial distribution of electrons, is complex and high-dimensional.
As a result, scientists use approximation techniques to obtain practical and accurate solutions. In this work, we will focus on two key methods:
-
Variational principle
This method approximates the wave function and adjusts it to get as close as possible to the target energy, usually the ground state energy of the system. The key idea behind the variational principle is simple:
- If we guess a wave function (a "trial function"), the energy calculated from it will always be equal to or higher than the ground state energy () of the system.
- By adjusting parameters in the trial function, , we can get a better and better approximation of the ground state energy.
- Its accuracy heavily depends on the choice of the trial wave function . A poorly-chosen trial function may lead to an energy estimate that is far from accurate.
-
Basis set approximation
The second approximation method comes in the stage of constructing the wave function — the basis set approach. In quantum chemistry, solving the Schrödinger equation exactly for molecules is almost impossible. Instead, we approximate the complex, multi-electron wave function by building it up from simpler, predefined mathematical functions. A basis set is essentially a collection of these known mathematical functions, typically centered on the atoms in the molecule, that are used as building blocks to represent the shape and behavior of the electrons in the system. Think of it like trying to recreate a detailed sculpture using only a collection of standard LEGO bricks – the more types and sizes of bricks you have (the larger the basis set), the more accurately you can approximate the original shape.
These basis functions are often inspired by the analytical solutions for simple systems like the hydrogen atom, taking forms like Gaussian or Slater-type functions, though they are still approximations. Instead of working with the theoretically "exact" but intractable full molecular orbitals, we express them as a linear combination (a sum with coefficients) of these basis functions. This method is known as the Linear Combination of Atomic Orbitals (LCAO) approach when the basis functions resemble atomic orbitals. By optimizing the coefficients in this linear combination, we can find the best possible approximate wave function and energy within the limitations of the chosen basis set.
- The more functions included in the basis set, the better the approximation, but this comes at the cost of higher computational effort.
- A small basis set provides a rough estimate, while a large basis set gives more precise results at the expense of requiring more computational resources.
To summarize, to make calculations feasible and reduce computational cost, we use the variational principle by approximating the wave function, which reduces the computational complexity and allows for iterative optimization to minimize energy. Meanwhile, the basis set approach simplifies calculations by representing atomic orbitals as a combination of predefined functions, rather than solving for a continuous wave function directly.
Check your understanding
Consider the trial wave function where is a normalization constant and is an adjustable parameter.
(a) Normalize the trial wave function by determining such that
.
(b) Compute the expectation value of the Hamiltonian given by:
where , which corresponds to a simple harmonic oscillator potential.
(c) Use the variational principle to find the optimal by minimizing
Answer:
(a) To normalize given trial wave function:
Use the Gaussian integral:
set then get:
(b) The Hamiltonian for a harmonic oscillator is:
- Kinetic energy expectation value