Skip to main content

hyperfine.Atom1e

hyperfine.Atom1e(element=None, isotope=None)

Represents an atom object and contains a list of J levels.

Methods

Name Description
get_F_level_idx_map Maps each element of the mF_list to a F_level index.
get_clebsch_hf_factors Returns the Clebsch-Gordan coefficients for the hyperfine
get_clebsch_hf_factors_iso Returns the Clebsch-Gordan coefficients for the hyperfine
get_coupled_levels Return all mF-level index pairs between two sets of F levels.
get_decay_factors Returns the factors for the collapse operators of each hyperfine
get_energies Returns a list of energies for each mF level in all J levels.
get_g_F_list Returns the g_F factor of each mF level, in units of mu_B.
get_mF_list Unnests the mF levels into a single list of dicts.
get_num_mF_levels Returns the total number of mF levels in all J levels.
get_strength_factor Relative hyperfine transition strength factors.
get_zeeman_levels Returns the per-level g_F and m_F lists for a b_field.

get_F_level_idx_map

hyperfine.Atom1e.get_F_level_idx_map()

Maps each element of the mF_list to a F_level index.

get_clebsch_hf_factors

hyperfine.Atom1e.get_clebsch_hf_factors(F_level_idxs_a, F_level_idxs_b, q)

Returns the Clebsch-Gordan coefficients for the hyperfine transition dipole matrix elements of each coupled level pair.

Parameters

Name Type Description Default
F_level_idxs_a list[int] Indices of the F levels the transition is from (lower level). required
F_level_idxs_b list[int] Indices of the F levels the transition is to (upper level). required
q int The field polarisation. Choose from [-1, 0, 1]. required

Returns

Name Type Description
np.ndarray Array of factors, one for each pair from get_coupled_levels.

get_clebsch_hf_factors_iso

hyperfine.Atom1e.get_clebsch_hf_factors_iso(F_level_idxs_a, F_level_idxs_b)

Returns the Clebsch-Gordan coefficients for the hyperfine transition dipole matrix elements of each coupled level pair, for an isotropic field.

Parameters

Name Type Description Default
F_level_idxs_a list[int] Indices of the F levels the transition is from (lower level). required
F_level_idxs_b list[int] Indices of the F levels the transition is to (upper level). required

Returns

Name Type Description
np.ndarray Array of factors, one for each pair from get_coupled_levels.

Notes

  • An isotropic field is a field with equal components in all three possible polarizations.
  • Any given polarisation of the field only interacts with one of the three components of the dipole moment, so it is appropriate to average over the couplings (i.e. factor 1/3) rather than sum.

get_coupled_levels

hyperfine.Atom1e.get_coupled_levels(F_level_idxs_a, F_level_idxs_b)

Return all mF-level index pairs between two sets of F levels.

Parameters

Name Type Description Default
F_level_idxs_a list[int] Indices into self.F_levels for the first group. required
F_level_idxs_b list[int] Indices into self.F_levels for the second group. required

Returns

Name Type Description
list[list[int]] List of [i, j] pairs where i is an mF index from group a and
list[list[int]] j is an mF index from group b.

Note

Selection rules (e.g. forbidding J=J’ transitions) are not enforced here. Callers are responsible for passing physically valid level index sets.

get_decay_factors

hyperfine.Atom1e.get_decay_factors(F_level_idxs_a, F_level_idxs_b)

Returns the factors for the collapse operators of each hyperfine coupled level pair.

Parameters

Name Type Description Default
F_level_idxs_a list[int] Indices of the F levels the transition is from (lower level). required
F_level_idxs_b list[int] Indices of the F levels the transition is to (upper level). required

Returns

Name Type Description
np.ndarray Array of factors, one for each pair from get_coupled_levels.

Notes

This is equivalent to the clebsch_hf_factors for all polarisations as decay photons are of all polarisations. Note that for any coupled levels pair there will be only one non-zero factor to sum.

get_energies

hyperfine.Atom1e.get_energies()

Returns a list of energies for each mF level in all J levels.

get_g_F_list

hyperfine.Atom1e.get_g_F_list()

Returns the g_F factor of each mF level, in units of mu_B.

Raises

Name Type Description
ValueError if an F level has no g_F (give its g_F, g_J or L when constructing the LevelF).

get_mF_list

hyperfine.Atom1e.get_mF_list()

Unnests the mF levels into a single list of dicts.

get_num_mF_levels

hyperfine.Atom1e.get_num_mF_levels()

Returns the total number of mF levels in all J levels.

get_strength_factor

hyperfine.Atom1e.get_strength_factor(
    F_level_idx_lower,
    F_level_idx_upper,
    mF_level_lower_idx=0,
)

Relative hyperfine transition strength factors. Equal for each ground state (mF_level_lower_idx), so this parameter never needs to be set, just used for testing that claim.

Notes

  • Sum of the matrix elements from a single ground-state sublevel to the levels in a particular F’ energy level.
  • The sum S_{FF’} is independent of the ground state sublevel chosen.
  • The sum of S_{FF’} over upper F levels should be 1.

get_zeeman_levels

hyperfine.Atom1e.get_zeeman_levels()

Returns the per-level g_F and m_F lists for a b_field.

Merge into the system’s b_field block, e.g. {"magnitude": 1.0, **atom.get_zeeman_levels()}.

References

Refs