KetPair
Class Methods
| 
 | Creating a KetPair object directly is not possible. | 
| 
 | Get the energy of the ket in the given unit. | 
| 
 | Label representing the ket pair. | 
Class Attributes and Properties
| The total momentum quantum number f (int or half-int). | |
| The magnetic quantum number m (int or half-int). | |
| The parity of the ket. | |
| Return the state atoms of the ket pair. | 
- class KetPair[source]
- Ket for a pair state of two atoms. - For pair systems, we choose KetPair object as the product states of the single-atom eigenstates. Thus, the Ket pair objects depend on the system and the applied fields. Therefore for different pair systems the KetPair objects are not necessarily orthogonal anymore. - Currently one cannot create a KetPair object directly, but they are used in the background when creating a - pairinteraction.BasisPairobject.- get_label(fmt='raw', *, max_kets=3)[source]
- Label representing the ket pair. - Parameters:
- fmt ( - Literal[- 'raw',- 'ket',- 'bra',- 'detailed']) – The format of the label, i.e. whether to return the raw label, or the label in ket or bra notation.
- max_kets ( - int) – Maximum number of single atom kets to include in the label for each StateAtom.
 
- Return type:
- str
- Returns:
- A string representation of the ket pair. 
 
 - property f: float
- The total momentum quantum number f (int or half-int). 
 - get_energy(unit=None)
- Get the energy of the ket in the given unit. - Parameters:
- unit ( - str|- None) – The unit to which to convert the energy to. Default None will return a pint.Quantity.
- Return type:
- Union[- float,- PlainQuantity[- float]]
- Returns:
- The energy as float if a unit was given, otherwise a pint.Quantity. 
 
 - property m: float
- The magnetic quantum number m (int or half-int). 
 - property parity: Literal['even', 'odd', 'unknown']
- The parity of the ket.