Skip to content
DARC
■ Change #93 · wiki.edited

Variational quantum algorithms: VQE and QAOA: Normalize Markdown to canonical form

by DARC wiki2026-10-22 20:31:09 UTCOpen the page →
explainer.student
**VQE.** A circuit $U(\theta)$ with adjustable angles $\theta$ prepares a trial state $|\psi(\theta)\rangle$. The energy $E(\theta)=\langle\psi(\theta)|H|\psi(\theta)\rangle$ is estimated by measuring the pieces of the Hamiltonian $H$ (written as a sum of Pauli terms) many times and averaging. A classical optimiser, such as gradient descent, updates $\theta$. By the variational principle, every trial energy is at least the true ground energy, so lower is better.
**QAOA.** For a cost function $C(z)$ on bit strings (for example the number of edges cut in a graph, MaxCut), the circuit alternates two kinds of layers: $e^{-i\gamma C}$, which applies phases according to the cost, and $e^{-i\beta B}$ with $B=\sum_i X_i$, which mixes bit strings. With $p$ layers there are $2p$ angles to tune. As $p$ grows the method can imitate slow adiabatic evolution towards the best answer.
**Obstacles.**
− - *Barren plateaus*: for random deep circuits the gradient of $E(\theta)$ is exponentially small in the number of qubits, so estimating it needs exponentially many measurements.
− - *Classical simulability*: circuits proven to avoid barren plateaus often live in a small subspace that a classical computer can simulate.
− - *Shot noise*: the error of an average of $S$ measurements falls like $1/\sqrt S$, so high precision needs many runs.
+ - _Barren plateaus_: for random deep circuits the gradient of $E(\theta)$ is exponentially small in the number of qubits, so estimating it needs exponentially many measurements.
+ - _Classical simulability_: circuits proven to avoid barren plateaus often live in a small subspace that a classical computer can simulate.
+ - _Shot noise_: the error of an average of $S$ measurements falls like $1/\sqrt S$, so high precision needs many runs.
+
**Record.** Early QAOA guarantees were later matched by classical algorithms; high-depth analyses and small-scale numerical studies give mixed but sometimes encouraging evidence. The open question is whether any natural problem shows a lasting advantage.
− **Practical note.** Gradients can be measured on the device itself with the *parameter-shift rule*: for gates of the form $e^{-i\theta P/2}$ with $P$ a Pauli operator, the derivative equals half the difference of two energy measurements at $\theta\pm\pi/2$.
+ **Practical note.** Gradients can be measured on the device itself with the _parameter-shift rule_: for gates of the form $e^{-i\theta P/2}$ with $P$ a Pauli operator, the derivative equals half the difference of two energy measurements at $\theta\pm\pi/2$.
hash be11397ee11d96b5c068bde470c12c99c3a54e1b9e0030d3cef50ac2a0d6ac51
previous 484529fca57e80e7b9c1a11ea826b55101f592811017b901a29104f2f6f5340a