This article was automatically translated from the original Turkish version.
Variational Quantum Eigensolver (VQE), proposed in 2014 by Alberto Peruzzo, Alan Aspuru-Guzik and Jeremy O'Brien, is a hybrid algorithm that combines quantum and classical computers.
The primary goal of this algorithm is to estimate the ground state energy of a specific quantum system.
VQE is specifically designed for today’s NISQ (Noisy Intermediate-Scale Quantum) devices, as it aims to efficiently utilize the currently limited capacity of quantum computers by employing relatively short (shallow) quantum circuits.
To properly understand VQE, it is essential to grasp two key principles:
Let us elaborate on these two points:
VQE is based on the variational principle, a fundamental concept in quantum mechanics.
According to the variational principle:
For any normalized wave function
1. Prepare the Ansatz Wave Function
2. Measure the Hamiltonian
3. Calculate the Energy
4. Perform Classical Optimization
First, let us define what an Ansatz is.
Essentially, it is a parameterized quantum circuit that serves as an approximation of the wave function or state of the problem being solved. The primary purpose of the ansatz is to find the optimal set of parameters that minimizes the expected value of the Hamiltonian. In this way, VQE obtains an upper bound on the ground state energy of the system.
We can summarize this as follows:
Mathematically, we can express the ansatz as:
As previously mentioned, the Hamiltonian is an operator that measures the energy of the system.
When the Hamiltonian is expressed as a sum of tensor products of Pauli matrices, each pair of Pauli matrices represents the interactions between different quantum components of the system.
For example,
2. An example VQE algorithm constructed using Qiskit developed by IBM:
Variational Quantum Eigensolver - Qiskit
The choice of library for implementing the algorithm—such as Qiskit, Cirq, or PennyLane—is entirely up to you. You may base your decision on criteria such as visualization quality, module reliability, and Python compatibility.

Visualization Example with Qiskit (IBM Quantum Documentation.

Visualization Example with Cirq (Cirq Documentation.
Bernhardt, Chris. Quantum Computing for Everyone [Herkes için Kuantum Bilgisayarı]. TÜBİTAK Popüler Bilim Kitapları, 2023. Accessed February 19, 2024.
Chasnov, Jeffery. *Symmetric and Hermitian Matrices*. LibreTexts. Accessed April 2, 2025. https://math.libretexts.org/Bookshelves/Differential_Equations/Applied_Linear_Algebra_and_Differential_Equations_(Chasnov)/02%3A_II._Linear_Algebra/05%3A_Eigenvalues_and_Eigenvectors/5.03%3A_Symmetric_and_Hermitian_Matrices.
Google Quantum AI. *Variational Algorithm*. Google. Accessed February 8, 2025. https://quantumai.google/cirq/experiments/variational_algorithm.
Google Scholar. "Ag_6KEgAAAAJ Profile." Accessed April 11, 2025. https://scholar.google.com/citations?user=Ag_6KEgAAAAJ&hl=en.
Google Scholar. "B72DOToAAAAJ Profile." Accessed April 11, 2025. https://scholar.google.co.uk/citations?user=B72DOToAAAAJ&hl=en.
Google Scholar. "BxIIt5QAAAAJ Profile." Accessed April 11, 2025. https://scholar.google.com/citations?user=BxIIt5QAAAAJ&hl=fr.
IBM Quantum. *Variational Quantum Eigensolver*. IBM. Accessed February 9, 2025. https://learning.quantum.ibm.com/tutorial/variational-quantum-eigensolver.
Kleiman, David. *Operators, Observables, and Wavefunctions*. LibreTexts. Accessed February 6, 2025. https://chem.libretexts.org/Courses/University_of_Florida/CHM2047%3A_One-Semester_General_Chemistry_(Kleiman)/02%3A_Describing_Quantum_systems/2.04%3A_Operators_Observables_and_Wavefunctions.
Qiskit. *Variational Quantum Eigensolver for Molecules*. GitHub. Accessed February 27, 2024. https://github.com/Qiskit/textbook/blob/main/notebooks/ch-applications/vqe-molecules.ipynb.
Stęchły, Marek. Introduction to Variational Quantum Algorithms. Accessed February 27, 2024.
Tilly, Joe, Hongxiang Chen, Shuxiang Cao, Davide Picozzi, Kunal Setia, Yudong Li, Edward Grant, Leonard Wossnig, Ivan Rungger, George H. Booth, and Jonathan Tennyson. The Variational Quantum Eigensolver: A Review of Methods and Best Practices. Accessed March 2025
Fundamentals of VQE
Providing an Upper Bound on Energy (Variational Principle)
How Does VQE Work?
Preparing the Ansatz Wave Function
Measuring the Hamiltonian