QuantumKitHub / MPSKitModels.jl

MIT License
16 stars 13 forks source link

Q-state Potts model incorrectly defined #28

Open borisdevos opened 1 week ago

borisdevos commented 1 week ago

The current potts_exchange and potts_field functions where $q$ is a parameter is defined in such a way that only $q=3$ is correct. The Hamiltonian for the Q-state Potts model is $$H = -\sum{i=1}^L\sum{k=1}^{Q-1} (JZi^\dagger Z{i+1})^k + h X_i^k)$$, with $Z$ and $X$ already correctly defined in potts_exchange and potts_field.

lkdvos commented 1 week ago

Aren't these functions asserting that q = 3? I'm more than happy to add the other cases as well, but could you provide some things that I can test?