Choosing an ansatz: expressibility versus trainability

The hardware-efficient ansatz used in the lab, how its parameters grow, and why more is not always better.

8 min read · reviewed December 2026

What an ansatz is

The ansatz is the parameterised circuit that prepares the trial state. Its choice decides which states VQE can reach at all. If the true ground state is not in the family, no optimiser will find it.

The lab’s ansatz

Layers of RY rotations on every qubit, separated by a ladder of CNOT gates, with a final RY layer. It is a hardware-efficient style of ansatz, the kind used in Kandala et al. 2017: it uses only gates that are cheap on many devices. Because RY and CNOT have real matrices, the state has real amplitudes, which suits Hamiltonians whose matrices are real, as here.

Parameters in the lab’s ansatz: one RY rotation per qubit before every CNOT ladder and after the last. CNOTs per layer = qubits − 1.
Qubits0 layers1 layer2 layers3 layers4 layers
2246810
33691215
448121620

Depth versus accuracy

With the same optimiser settings, deeper circuits can reach lower energies. The table shows this for three qubits.

Energy error of VQE with 3 qubits and parameter 1, after 200 gradient steps, best of 3 random starts. Error = circuit energy minus exact ground energy.
ModelExact energy0 layers1 layer2 layers3 layers
Transverse-field Ising chain-3.49400.331680.020490.000050.00000
Heisenberg chain-4.00002.000000.171570.00000-0.00000

The trade-off

  • Too shallow: the family is too small and the error cannot reach zero.
  • Too deep: more parameters make the optimisation harder, and on hardware more gates mean more noise.
  • Random deep circuits can have nearly flat cost landscapes. This is the barren plateau problem, described by McClean et al. in 2018. Check the original paper for the precise statement.

Try it

Questions

Is the hardware-efficient ansatz always best?

No. It is easy to run but has no knowledge of the problem. Problem-inspired ansätze use the structure of the Hamiltonian.

Why does the lab use RY and not RX or RZ?

RY keeps all amplitudes real, which matches the real Hamiltonians in the lab and keeps the simulation simple.

What is a barren plateau?

A region where the gradient of the cost is extremely small everywhere, so the optimiser cannot tell which way to go.

Read next

Sources and further reading

Check the original sources for exact citations.