netket.operator.Ising

netket.operator.Ising(hilbert, h, J=1.0)[source]

Constructs a new Ising given a hilbert space, a transverse field, and (if specified) a coupling constant.

Parameters
  • hilbert – Hilbert space the operator acts on.

  • h – The strength of the transverse field.

  • J – The strength of the coupling. Default is 1.0.

Examples

Constructs an Ising operator for a 1D system.

>>> import netket as nk
>>> g = nk.graph.Hypercube(length=20, n_dim=1, pbc=True)
>>> hi = nk.hilbert.Spin(s=0.5, graph=g)
>>> op = nk.operator.Ising(h=1.321, hilbert=hi, J=0.5)
>>> print(op.hilbert.size)
20