Skip to content

Commit

Permalink
Merge pull request #74 from mpmdean/correct_first_example
Browse files Browse the repository at this point in the history
fix mistakes in ex0
  • Loading branch information
mpmdean authored Jul 9, 2020
2 parents 47d57e8 + cd56091 commit bd9c5c8
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions examples/sphinx/example_0_ed_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# Parameters
# ------------------------------------------------------------------------------
# Define the orbital angular momentum number :math:`l=1` (i.e. a `p` shell),
# the number of orbitals, the orbital occupancy and the Slater integrals.
# the number of spin-orbitals, the occupancy and the Slater integrals.
# :math:`F^{k}` with :math:`k=0,2`:
l = 1
norb = 6
Expand All @@ -33,11 +33,11 @@
# The Coulomb interactions enter the Hamiltonain as
#
# .. math::
# \begin{equation*}
# \hat{H} = \sum_{i, j, t, u}
# U_{m_{l_i}m_{s_i}, m_{l_j}m_{s_j}, m_{l_t}m_{s_t},
# m_{l_u}m_{s_u}}^{i,j,t,u}
# \end{equation*}
# \begin{equation}
# \hat{H} = \sum_{\alpha,\beta,\gamma,\delta} U_{\alpha,\beta,\gamma,\delta}
# \hat{f}^{\dagger}_{\alpha}\hat{f}^{\dagger}_{\beta}\hat{f}_{\gamma}\hat{f}_{\delta},
# \end{equation}
#
#
# which is parameterized by tensor
#
Expand Down Expand Up @@ -71,7 +71,7 @@
print(np.array(basis))
################################################################################
# We expect the number of these states to be given by the mathematical
# combination of two electrons distributed among six states (three orbitals
# combination of two electrons distributed among six states (three spin-orbitals
# with two spins per orbital).
message = ("We predict C(norb={}, noccu={})={:.0f} states and we got {:d}, "
"which is reassuring!")
Expand Down Expand Up @@ -165,8 +165,12 @@
# We see :math:`S=0` and :math:`S=1` states coming from the
# two combinations of the spin 1/2 particles. :math:`L` can take values of
# 0, 1, 2. Remember that spin states have degeneracy of :math:`2S+1` and the
# same is true for orbital states. We must multiply these :math:`S` and
# same is true for orbital states.
# We must multiply these :math:`S` and
# :math:`L` degeneracies to get the total degeneracy.
# Since these particles are fermions, the
# overall state must be antisymmetric, which dictates the allowed combinations
# of :math:`S` and :math:`L`.

################################################################################
# Energy level diagram
Expand All @@ -191,7 +195,7 @@

################################################################################
# We see Hund's rules in action! Rule 1 says that the highest spin :math:`S=1`
# state has the lowest energy. Of the two :math:`S=1` states, the state with
# state has the lowest energy. Of the two :math:`S=0` states, the state with
# larger :math:`L=1` is lower energy following rule 2.

################################################################################
Expand Down Expand Up @@ -243,6 +247,6 @@

################################################################################
# It is clear that we have split the :math:`S=1` state, which branches into
# three states from :math:`J=S-L` to :math:`J=S+L`. Since the shell is less than
# half full, Hund's third rule dictates that the smaller :math:`J` states
# have the lower energies.
# three states from :math:`J=|L-S|, |L-S|+1, ..., |L+S|`. Since the shell is
# less than half full, Hund's third rule dictates that the smaller :math:`J`
# states have the lower energies.

0 comments on commit bd9c5c8

Please sign in to comment.