freevirgil.hamiltonian

class freevirgil.hamiltonian(J=-2.0, mu=1.0)[source]

Class for Hamiltonian

\[H = -J\sum_{\left<ij\right>} \sigma_i\sigma_j + \mu\sum_i\sigma_i\]
__init__(J=-2.0, mu=1.0)[source]

Constructor

Parameters
  • J (float, optional) – Coupling strength

  • mu (float, optional) – Chemical potential

Methods

E(spin)

Energy of configuration spin

__init__([J, mu])

Constructor

avg(conf, T)

Exact average values