rydiqule.atom_utils.validate_qnums

rydiqule.atom_utils.validate_qnums(qstate: A_QState, I: float | None = None)[source]

Validate that the provided named_tuple is a valid rydberg atomic state

Parameters:
  • qstate (A_QState) – Named tuple to check, should have fields ("n","l","j","m_j","f","m_f")

  • I (Union[None,float], optional) – Nuclear spin of the rydberg atom of which this is a state. If None, all f values are invalid automaticaly. Defaults to None

Raises:
  • ValueError – If the tuple representing the state does not have 6 elements

  • AssertionError – If the states of the state are not physically allowed