Sign in
← Atlas
Strong empiricalAlgorithmsVariational quantum algorithm

Variational quantum eigensolver for ground-state energy

A hybrid chemistry workflow that compares a quantum expectation loop with classical eigensolvers.

chemistryvqeground statehybrid

Atlas stars stay in the public catalog. Saving this entry to your workspace starts an unstarred private copy.

VQE combines a parameterized state, repeated measurements of a Hamiltonian, and a classical optimizer. It remains an important NISQ-era chemistry pattern because it trades deep coherent evolution for repeated shallow experiments.

Circuit & simulation
Energy92%
What this takes and returns
TakesNothingWhat joins here

No input port at this edge: the record publishes no gate sequence and no register, so there is nothing here to read one off — and unlike a declared hole, nothing has been recorded about what belongs here.

Nothing in the Atlas meets this end.

ReturnsNothingWhat joins here

No output port at this edge: the record publishes no gate sequence and no register, so there is nothing here to read one off — and unlike a declared hole, nothing has been recorded about what belongs here.

Nothing in the Atlas meets this end.

This record publishes no gate sequence and no register, so there is nothing here to read an interface off. Absent rather than empty. See all 152 →

Where this sits

This record is named by the layer graph at:

  • Variational quantum eigensolver Method

    Takes A Hermitian HH reachable as a sum of terms, as sparse-access oracles or as a block-encoding; a way to prepare trial states, and — for the methods that need it — a trial state whose overlap with the ground state is not negligible; a target additive error ε\varepsilon and a confidence 1δ1-\delta. Returns A scalar estimate of the lowest eigenvalue with a stated additive-error guarantee, plus the run or query budget it consumed. Whether that estimate is also a rigorous upper bound is a property of the method and is not promised by the slot.

How it works

VQE estimates a ground-state energy using the variational principle: for any normalized trial state ψ(θ)=U(θ)0|\psi(\theta)\rangle=U(\theta)|0\rangle and Hamiltonian HH, the Rayleigh quotient obeys ψ(θ)Hψ(θ)E0\langle\psi(\theta)|H|\psi(\theta)\rangle \ge E_0, the true ground energy, with equality only when ψ(θ)|\psi(\theta)\rangle is an exact ground eigenstate. The circuit prepares ψ(θ)|\psi(\theta)\rangle with a parameterized ansatz U(θ)U(\theta), measures each Pauli term of H=kckPkH=\sum_k c_k P_k to build H(θ)\langle H\rangle(\theta), and hands that scalar to a classical optimizer that updates θ\theta to push the energy down — a hybrid quantum/classical loop repeated to convergence. This record checks that expectation-value loop for a small Pauli Hamiltonian against exact diagonalization, matching its own caveat: the variational bound is guaranteed by the math above, but reaching a chemically useful energy still depends on ansatz expressivity, optimizer convergence, and shot noise this toy fixture does not certify.

Implementation
Native
vqe_energy.py
import pennylane as qml
from pennylane import numpy as np

dev = qml.device("default.qubit", wires=2)
H = qml.Hamiltonian([0.5, 0.5], [qml.PauliZ(0), qml.PauliZ(1)])

@qml.qnode(dev)
def energy(theta):
    qml.RY(theta[0], wires=0)
    qml.CNOT(wires=[0, 1])
    return qml.expval(H)

FINAL_CIRCUIT = energy

The fixture demonstrates the hybrid loop shape; it is not a molecular chemistry benchmark.

Quantum vs classical

Classical baseline

Exact diagonalization for small Hamiltonians; coupled-cluster, DMRG, tensor networks, or other electronic-structure methods at scale.

Quantum claim

VQE can estimate a variational energy using shallow circuits plus a classical optimizer, not an automatic advantage over mature chemistry software.

How to compare

Compare energy error, total shots, circuit depth, optimizer calls, basis/mapping choices, and classical wall-clock time.

Declared gaps

Nobody has reviewed this record for gaps yet.

Literature & references
A variational eigenvalue solver on a quantum processor2013 · Alberto Peruzzo, Jarrod McClean, Peter Shadbolt, Man-Hong Yung, Xiao-Qi Zhou, Peter J. Love, Alán Aspuru-Guzik, Jeremy L. O'Brien

Original VQE proposal and photonic demonstration for a small chemistry problem.

arxiv.org/abs/1304.3061
Optimization of the Variational Quantum Eigensolver for Quantum Chemistry Applications2021 · R. J. P. T. de Keijzer, V. E. Colussi, B. Škorić, S. J. J. M. F. Kokkelmans

Surveys optimizer, ansatz, and measurement choices that affect chemistry-oriented VQE runs.

arxiv.org/abs/2102.01781