Variational algorithms, VQE and QAOA

These questions probe whether you understand NISQ-era methods and their limits. Strong candidates describe the optimisation loop and say clearly that advantage over classical methods is unproven.

11 questions. Reviewed December 2026. Answers are model answers to adapt, not scripts to memorise.

What interviewers test

  • The hybrid loop
  • Ansatz choice and trainability
  • Realistic claims about advantage

How to answer well

  • Describe the loop: prepare, measure, update parameters, repeat.
  • Mention shot noise and barren plateaus as the practical problems.
  • Do not claim a proven advantage for VQE or QAOA.

1 · Beginner

What is a variational quantum algorithm?

A hybrid method. A parameterised quantum circuit (the ansatz) prepares a state, the device measures the expectation of a cost operator, and a classical optimiser updates the parameters to lower the cost. Repeat until convergence. The circuits are shallow, which suits noisy devices.

Likely follow-up: Why do shallow circuits matter on NISQ hardware?

Go deeper: Variational algorithm · VQE/QAOA Playground

2 · Beginner

What does VQE compute?

The ground-state energy of a Hamiltonian. By the variational principle, the energy ⟨ψ(θ)|H|ψ(θ)⟩ of any trial state is at least the true ground energy, so minimising over θ gives an upper bound that approaches it as the ansatz becomes expressive enough. The Hamiltonian is split into Pauli terms whose expectations are measured separately.

Likely follow-up: Why does the variational principle make it safe to minimise?

Go deeper: VQE/QAOA Playground

3 · Beginner

What does QAOA do?

It targets combinatorial optimisation, such as MaxCut. It alternates p layers of a cost unitary (phases set by the objective) and a mixer (usually X rotations), with 2p angles tuned classically. Increasing p can only improve the best achievable result, and in the limit of large p it can approach the optimum.

Likely follow-up: What is the cost of one extra layer?

Go deeper: QAOA

4 · Intermediate

What is an ansatz, and how do you choose one?

The ansatz is the parameterised circuit family. Chemistry-inspired ansätze such as UCCSD encode physical structure but are deep. Hardware-efficient ansätze use native gates and are shallow but have no problem-specific structure, which can cause trainability problems. The choice trades expressibility against depth and trainability.

Likely follow-up: What symmetries could you build in?

Go deeper: Ansatz

5 · Intermediate

What is a barren plateau?

A region where gradients of the cost vanish exponentially with the number of qubits, so the optimiser cannot find a direction without exponentially many shots. It appears for sufficiently random, deep, expressive circuits and also for global cost functions and with noise. Mitigations include local costs, shallower or structured ansätze and good initialisation.

Likely follow-up: Does noise cause plateaus too?

Go deeper: Barren plateau

6 · Intermediate

How do you get gradients of a quantum circuit?

The parameter-shift rule: for a gate generated by a Pauli, the derivative equals half the difference of the expectation with the angle shifted by +π/2 and −π/2. It is exact on hardware, unlike finite differences, which amplify shot noise. The price is two circuit evaluations per parameter per gradient.

Likely follow-up: How does the cost scale with the number of parameters?

7 · Intermediate

How does shot noise affect the optimisation?

Each expectation is estimated from a finite number of shots, with standard error shrinking as 1/√shots. So to resolve an energy difference ε you need roughly 1/ε² shots per term, and the Hamiltonian may have many terms. Shot budget, not qubit count, can dominate runtime, which limits what VQE can reach at chemical accuracy.

Likely follow-up: How can you reduce the number of measurement settings?

8 · Advanced

Do variational algorithms beat classical computers today?

Not in any established, practically useful case. For small systems classical solvers match or beat them. Their potential relies on larger problems where classical methods struggle, but trainability, noise and measurement cost are open obstacles, and some results show classical algorithms can simulate certain variational circuits. The honest answer is that it is an active research question.

Likely follow-up: What would convince you otherwise?

Common mistake: Claiming VQE or QAOA already outperform classical methods.

Go deeper: Do variational algorithms beat classical computers?

9 · Advanced

How does QAOA at depth p=1 perform on MaxCut?

It is well studied: for 3-regular graphs, p=1 QAOA has a proven approximation ratio of at least 0.6924, while the classical Goemans–Williamson algorithm guarantees about 0.878 for MaxCut in general. Higher p improves the QAOA ratio. On small graphs, you can compute the exact expectation, as the playground on this site does.

Likely follow-up: What is the ratio for the triangle graph at p=1?

Go deeper: VQE/QAOA Playground

10 · Advanced

What is error mitigation and how does it differ from error correction?

Mitigation reduces the bias in expected values without extra encoded qubits, by running extra circuits and post-processing: zero-noise extrapolation, probabilistic error cancellation, symmetry verification. It costs extra shots, often exponential in circuit size. Error correction instead encodes logical qubits to suppress errors in the quantum state itself.

Likely follow-up: Why does mitigation not scale indefinitely?

Go deeper: Error mitigation

11 · Advanced

What alternatives to gradient descent are used, and why?

Gradient-free methods (COBYLA, Nelder–Mead), noise-robust stochastic methods (SPSA, which needs only two evaluations per step independent of parameter count), quantum natural gradient, and Adam. The right choice depends on shot noise and parameter count, and landscapes can have many local minima.

Likely follow-up: Why is SPSA popular on hardware?

Keep studying