Skip to content

Commit

Permalink
Merge pull request #141 from RichRick1/main
Browse files Browse the repository at this point in the history
Fixed documentation of spin hamiltonians
  • Loading branch information
RichRick1 authored Aug 26, 2024
2 parents 27414ab + 95ead69 commit dc9835b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions moha/hamiltonians.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,10 +616,8 @@ def __init__(self,
The form of the Hamiltonian is given by:
.. math::
\hat{H}_{X X Z}=\sum_p\left(\mu_p^Z-J_{p p}^{\mathrm{eq}}\right)
S_p^Z+\sum_{p q} J_{p q}^{\mathrm{ax}} S_p^Z S_q^Z+\sum_{p q}
J_{p q}^{\mathrm{eq}} S_p^{+} S_q^{-}
\hat{H}_{Ising}=\sum_p\mu_p^Z
S_p^Z+\sum_{p q} J_{p q}^{\mathrm{ax}} S_p^Z S_q^Z
"""
if isinstance(J_ax, float):
J_eq = 0
Expand Down Expand Up @@ -659,7 +657,7 @@ def __init__(self,
The form of the Hamiltonian is given by:
.. math::
\hat{H}_{X X Z}=\sum_p\left(\mu_p^Z-J_{p p}^{\mathrm{eq}}\right)
\hat{H}_{RG}=\sum_p\left(\mu_p^Z-J_{p p}^{\mathrm{eq}}\right)
S_p^Z+\sum_{p q} J_{p q}^{\mathrm{eq}} S_p^{+} S_q^{-}
"""
Expand Down

0 comments on commit dc9835b

Please sign in to comment.