Skip to main content
KetQat

Appearance

Definition · intermediate

Ising cost Hamiltonian (QUBO encoding)

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→Rf : \{0,1\}^n \to \R be a cost function. Its cost Hamiltonian is the diagonal operator Hf=∑x∈{0,1}nf(x) ∣x⟩⟨x∣H_f = \sum_{x \in \{0,1\}^n} f(x)\, \ketbra{x}{x} on nn qubits; its ground states are spanned by the minimizers of ff and its ground energy is min⁡xf(x)\min_x f(x). Since Z∣xi⟩=(−1)xi∣xi⟩Z\ket{x_i} = (-1)^{x_i}\ket{x_i}, every such operator is a real polynomial in Z1,…,ZnZ_1, \dots, Z_n.

When ff is quadratic, f(x)=xTQxf(x) = x^{T} Q x for a real n×nn \times n matrix QQ (a QUBO instance; linear terms sit on the diagonal because xi2=xix_i^2 = x_i), substituting xi=(1−zi)/2x_i = (1 - z_i)/2 with spins zi=±1z_i = \pm 1 gives the Ising form

Hf=∑i<jJij ZiZj+∑ihiZi+c I,Jij=14(Qij+Qji),hi=−12Qii−14∑j≠i(Qij+Qji),H_f = \sum_{i<j} J_{ij}\, Z_i Z_j + \sum_i h_i Z_i + c\, I, \qquad J_{ij} = \tfrac14 (Q_{ij} + Q_{ji}),\quad h_i = -\tfrac12 Q_{ii} - \tfrac14 \sum_{j \ne i} (Q_{ij} + Q_{ji}),

with the constant c=12∑iQii+14∑i≠jQijc = \tfrac12\sum_i Q_{ii} + \tfrac14\sum_{i \ne j} Q_{ij}. The two forms describe the same problem; they differ only in variables. For MaxCut on a graph G=(V,E)G = (V, E) one maximizes the number of cut edges, C=∑(u,v)∈E12(I−ZuZv)C = \sum_{(u,v) \in E} \tfrac12 (I - Z_u Z_v), equivalently minimizes −C-C. Constraints are usually added as penalty terms that raise the energy of infeasible strings; Lucas collects Ising encodings of many NP-hard problems.

Related
Stated in

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. Andrew Lucas (2014). Ising formulations of many NP problems. Frontiers in Physics 2, 5. doi:10.3389/fphy.2014.00005arXiv:1302.5843
  2. Edward Farhi, Jeffrey Goldstone, Sam Gutmann (2014). A quantum approximate optimization algorithm. arXiv:1411.4028

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. 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

  1. 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).