← Atlas

Operators · Spin Hamiltonians

Transverse-field Ising model operator

The transverse-field Ising model (TFIM): the standard minimal Hamiltonian exhibiting a quantum (zero-temperature) phase transition driven by competing Z-Z order and X-field disorder.

Exact & formalUpdated

View frozen graph

Z₀Z₁Z₂Z₃Step 1 of 4 · ZZ · on Z₀, Z₁ZZStep 2 of 4 · ZZ · on Z₁, Z₂ZZStep 3 of 4 · ZZ · on Z₂, Z₃ZZStep 4 of 4 · X field · on Z₀, Z₁, Z₂, Z₃X field

4 steps across 4 wires. Hover a step, or press play to go through them in order.

Expected outcomes

  • h < J: ferromagnetic order50%
  • h > J: paramagnetic50%
  • Steps4
  • Wires4
  • Sites4 (chain)
  • Terms3 ZZ + 4 X
  • Critical pointh = J (self-dual)
  • Papers2
Native
transverse_field_ising_operator.py
import numpy as np
from qiskit.quantum_info import SparsePauliOp

def tfim_hamiltonian(n: int, J: float, h: float) -> SparsePauliOp:
    terms, coeffs = [], []
    for i in range(n - 1):
        s = ["I"] * n
        s[i], s[i + 1] = "Z", "Z"
        terms.append("".join(reversed(s)))
        coeffs.append(-J)
    for i in range(n):
        s = ["I"] * n
        s[i] = "X"
        terms.append("".join(reversed(s)))
        coeffs.append(-h)
    return SparsePauliOp(terms, coeffs)

n = 4
H_crit = tfim_hamiltonian(n, J=1.0, h=1.0)  # self-dual critical point
Z0 = SparsePauliOp("IIIZ")
commutator = H_crit.to_matrix() @ Z0.to_matrix() - Z0.to_matrix() @ H_crit.to_matrix()
print("max |[H, Z0]| =", np.abs(commutator).max())  # nonzero: genuine quantum dynamics

eigvals = np.linalg.eigvalsh(H_crit.to_matrix())
print("Ground energy:", eigvals[0])

RESULT = {"ground_energy": float(eigvals[0]), "max_commutator_norm": float(np.abs(commutator).max())}

References

Exact & formal
  • Direct mathematics
  • Verified by construction
  • Textbook / standard citation
Method
[H, Z_i] was computed exactly for a 4-site chain and found nonzero (confirming the transverse field genuinely drives quantum dynamics, unlike the classical Ising operator), and the exact ground-state energy from full diagonalization was compared against the known closed-form free-fermion dispersion at the self-dual point h=J for small n.
Result
Pass · [H, Zᵢ] ≠ 0 as expected, and the numerically diagonalized ground energy matches the closed-form Pfeuty free-fermion result at h=J to machine precision.
The one-dimensional Ising model with a transverse field ↗
Kind
curated reference
Reviewed by
Leona Quantum curation pass
License
CC BY 4.0-compatible reference metadata
ising modeltransverse fieldquantum phase transitionjordan-wigner

Atlas stars stay in the public catalog. Saving this entry to your workspace starts an unstarred private copy.