Problem and Driver Hamiltonians
Every adiabatic or annealing algorithm is built from two Hamiltonians: a driver that is easy to start from, and a problem Hamiltonian whose ground state is the answer. This lesson defines both and shows how to prepare the driver's ground state in the simulator.
The driver (transverse-field) Hamiltonian
The standard driver on qubits applies a transverse field to every qubit:
Because is a sum of commuting single-qubit terms, its ground state factorizes. Each is minimized by the eigenstate of , which is
So the ground state of is the uniform superposition
prepared by one Hadamard per qubit. Its energy is , since each term contributes .
The problem Hamiltonian
The problem Hamiltonian is diagonal in the computational basis: every basis state is already an eigenstate, with eigenvalue equal to a classical cost function :
The ground state of is therefore the bit string that minimizes . A typical construction uses operators, for example a single-qubit field whose ground state is (eigenvalue ), or two-body couplings for interacting spins. Because is diagonal, preparing its ground state is exactly the hard combinatorial problem you want to solve — which is why you start from the easy driver instead and interpolate.
Try it
Prepare the ground state of the 2-qubit driver . The grader checks the full statevector, so each of the four amplitudes should equal .
After running, the statevector panel should show each with amplitude — the uniform superposition .
Sign in on the full site to ask questions and join the discussion.