|q⟩ Bad Qubits

advanced · Programming · Advanced VQE & Ansatz Design

Excited-State Methods

Plain VQE finds the ground state — the lowest eigenvalue of HH — because the variational principle bounds the energy from below by E0E_0. But chemistry and materials science also need excited states: optical spectra, reaction barriers, and band gaps are all energy differences between eigenstates. This lesson surveys how the variational toolbox is extended upward.

The obstacle: the variational principle only sees the bottom

For any normalized trial state, ⟨ψ∣H∣ψ⟩≥E0\langle\psi|H|\psi\rangle \ge E_0, with equality only at the ground state. Minimizing the energy therefore always slides toward E0E_0. To reach E1,E2,…E_1, E_2, \dots we must change the optimization so that the ground state is no longer the answer it converges to.

Method 1: Orthogonality-constrained VQE (VQD)

Variational Quantum Deflation finds excited states one at a time. After obtaining the ground state ∣ψ0⟩|\psi_0\rangle, minimize a modified cost for the next state that penalizes overlap with the states already found:

Ck(θ)=⟨ψk∣H∣ψk⟩+∑j<kβj ∣⟨ψj∣ψk⟩∣2.C_k(\boldsymbol{\theta}) = \langle\psi_k|H|\psi_k\rangle + \sum_{j<k}\beta_j\,\bigl|\langle\psi_j|\psi_k\rangle\bigr|^2.

The penalty weights βj\beta_j must exceed the relevant energy gaps so that any overlap with a lower state costs more energy than it saves. Driven down, the optimizer is forced into the orthogonal complement, where the lowest available eigenstate is now EkE_k. The overlap terms ∣⟨ψj∣ψk⟩∣2|\langle\psi_j|\psi_k\rangle|^2 are themselves measured on hardware (e.g. via a swap test or a compute-uncompute circuit).

Method 2: Subspace-search VQE (SSVQE)

Instead of one state at a time, SSVQE optimizes a single ansatz on several mutually orthogonal inputs simultaneously. Feed in orthogonal reference states ∣r0⟩,∣r1⟩,…,∣rk⟩|r_0\rangle, |r_1\rangle, \dots, |r_{k}\rangle (for instance distinct computational-basis strings) and minimize a weighted sum of their energies,

C(θ)=∑jwj ⟨rj∣U†(θ) H U(θ)∣rj⟩,w0>w1>⋯>0.C(\boldsymbol{\theta}) = \sum_{j} w_j\,\langle r_j|U^\dagger(\boldsymbol{\theta})\,H\,U(\boldsymbol{\theta})|r_j\rangle, \qquad w_0 > w_1 > \dots > 0.

Because a unitary preserves orthogonality, the outputs U(θ)∣rj⟩U(\boldsymbol{\theta})|r_j\rangle stay orthogonal automatically — no explicit overlap penalty is needed. With strictly decreasing weights the minimum aligns each output with a successive eigenstate, recovering E0E_0 through EkE_k in one optimization.

Method 3: Quantum subspace expansion

A third route keeps the ground-state circuit fixed and expands a small basis around it. Choose a set of cheap excitation operators {Oi}\{O_i\} (e.g. single Pauli excitations) and form the projected Hamiltonian and overlap matrices

Hij=⟨ψ0∣Oi†HOj∣ψ0⟩,Sij=⟨ψ0∣Oi†Oj∣ψ0⟩.\mathcal{H}_{ij} = \langle\psi_0|O_i^\dagger H O_j|\psi_0\rangle, \qquad \mathcal{S}_{ij} = \langle\psi_0|O_i^\dagger O_j|\psi_0\rangle.

Both are measured on the quantum device, then a small generalized eigenvalue problem H c=E S c\mathcal{H}\,\mathbf{c} = E\,\mathcal{S}\,\mathbf{c} is solved on a classical computer. Its eigenvalues approximate the low-lying spectrum, including excited states. The quantum cost is only the matrix elements; the diagonalization is classical and tiny.

Choosing a method

Key takeaways

Sign in on the full site to ask questions and join the discussion.