Ising Model Class

Spin-1/2 Ising model with nearest-neighbor interactions and a local field.

class edlgt.models.ising_model.IsingModel(sectors=None, **kwargs)[source]

Bases: QuantumModel

Nearest-neighbor Ising model with a transverse field.

Initialize the Ising model and site-local Pauli operators.

Parameters:
  • sectors (list or None, optional) – Target sector(s) for the global Z2 parity symmetry. Pass [1] for the even-parity sector or [-1] for odd. If None, no symmetry reduction is applied.

  • **kwargs – Arguments forwarded to QuantumModel.

build_Hamiltonian(coeffs)[source]

Assemble the Ising Hamiltonian.

Parameters:

coeffs (dict) – Coupling dictionary with keys "J" (nearest-neighbor coupling) and "h" (transverse-field strength).