A diagonal Hamiltonian of one- and two-body Pauli-Z terms whose eigenvalue on each computational basis state equals the cost of the corresponding bit string, so that minimizing the cost is finding a ground state; equivalent to quadratic unconstrained binary optimization.
Established definitionMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01
AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.
Let f:{0,1}n→R be a cost function. Its cost Hamiltonian is the diagonal operator
Hf=∑x∈{0,1}nf(x)∣x⟩⟨x∣ on n qubits; its ground states are spanned by
the minimizers of f and its ground energy is minxf(x). Since Z∣xi⟩=(−1)xi∣xi⟩,
every such operator is a real polynomial in Z1,…,Zn.
When f is quadratic, f(x)=xTQx for a real n×n matrix Q (a QUBO
instance; linear terms sit on the diagonal because xi2=xi), substituting
xi=(1−zi)/2 with spins zi=±1 gives the Ising form
with the constant c=21∑iQii+41∑i=jQij. The two forms
describe the same problem; they differ only in variables. For MaxCut on a graph G=(V,E)
one maximizes the number of cut edges,
C=∑(u,v)∈E21(I−ZuZv), equivalently minimizes −C. Constraints are
usually added as penalty terms that raise the energy of infeasible strings;
Lucas collects Ising encodings of many NP-hard problems.
Claude (AI drafting assistant)Writing, original draft (CRediT roles)
Review history
Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)
QUBO-to-Ising substitution x_i=(1-z_i)/2 re-derived and the J_ij, h_i, c formulas checked numerically against x^T Q x on all 16 strings of a random 4x4 Q (max error 2e-16); MaxCut cost operator checked; Lucas (2014) arXiv:1302.5843 and Farhi-Goldstone-Gutmann arXiv:1411.4028 metadata confirmed via the arXiv API.
Revision history
2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
Current revision 33a8e18e65845eca. Source file knowledge/records/definition/ising-cost-hamiltonian.md in the content repository (readable there once it is public).