Note
Go to the end to download the full example code.
Convention of spin Hamiltonian¶
Exercises
Create an instance of
magnopy.Conventionfor the following Hamiltonians\[\begin{split}\mathcal{H}_1 = - \sum_{i \neq j} J_{ij} \mathbf{S}_i \cdot \mathbf{S}_j \\ \mathcal{H}_2 = - \sum_{i, j} J_{ij} \mathbf{S}_i \cdot \mathbf{S}_j \\ \mathcal{H}_3 = 0.5 \sum_{i, j} J_{ij} \mathbf{S}_i \cdot \mathbf{S}_j \\ \mathcal{H}_4 = - \sum_{i < j} J_{ij} \mathbf{e}_i \cdot \mathbf{e}_j\end{split}\]
import magnopy
Exercise 1¶
convention_1 = magnopy.Convention(
name="H-1", multiple_counting=False, spin_normalized=False, c22=-1
)
convention_2 = magnopy.Convention(
name="H-2", multiple_counting=True, spin_normalized=False, c22=-1
)
convention_3 = magnopy.Convention(
name="H-3", multiple_counting=True, spin_normalized=False, c22=0.5
)
convention_4 = magnopy.Convention(
name="H-4", multiple_counting=False, spin_normalized=True, c22=-1
)
Total running time of the script: (0 minutes 0.001 seconds)