coniii.enumerate_potts module
Exact enumeration and code generation for Potts models.
The Potts analogue of coniii.enumerate. Potts models admit
several parameterizations, especially under limited data; this module
implements a few useful ones (e.g.
SpecificFieldGenericCouplings) and writes the corresponding
equation files into coniii.ising_eqn.
- class coniii.enumerate_potts.PythonFileWriterBase(n, k)[source]
Bases:
object
- class coniii.enumerate_potts.SpecificFieldGenericCouplings(n, k)[source]
Bases:
PythonFileWriterBaseThis version specifies a field for every distinct Potts state, but considers correlation averaged over all possible states as long as they agree.
When writing the equations, the fields are assumed to first increase by spin index then by state index (fields for the n spins for k=0 come first, then for k=1, etc.). The couplings come after in the conventional order of ij where j increases up to i before i is incremented.