rydiqule.atom_utils.A_QState

class rydiqule.atom_utils.A_QState(n: int, l: int, j: float, m_j: float | List[float] | Literal['all'] | None = None, f: float | List[float] | Literal['all'] | None = None, m_f: float | List[float] | Literal['all'] | None = None)[source]

Bases: NamedTuple

Named tuple class designed to represent the quantum numbers a state spec of an alkali atom. n, l, and j quantum numbers are required, with optional m_j, f, and m_f.

__init__()

Methods

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

f

Alias for field number 4

j

Alias for field number 2

l

Alias for field number 1

m_f

Alias for field number 5

m_j

Alias for field number 3

n

Alias for field number 0

qnums

stype

_asdict()

Return a new dict which maps field names to their values.

_field_defaults = {'f': None, 'm_f': None, 'm_j': None}
_fields = ('n', 'l', 'j', 'm_j', 'f', 'm_f')
classmethod _make(iterable)

Make a new A_QState object from a sequence or iterable

_replace(**kwds)

Return a new A_QState object replacing specified fields with new values

count(value, /)

Return number of occurrences of value.

f: float | List[float] | Literal['all'] | None

Alias for field number 4

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

j: float

Alias for field number 2

l: int

Alias for field number 1

m_f: float | List[float] | Literal['all'] | None

Alias for field number 5

m_j: float | List[float] | Literal['all'] | None

Alias for field number 3

n: int

Alias for field number 0

property qnums: Tuple[float | List[float] | Literal['all'], ...]
property stype: str