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. |
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. |
- 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._wrapped.BasisPair
object.- 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 (
Optional
[str
]) – 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.
- get_label(fmt)
Label representing the ket.
- Parameters:
fmt (
Literal
['raw'
,'ket'
,'bra'
]) – The format of the label, i.e. whether to return the raw label, or the label in ket or bra notation.- Return type:
str
- Returns:
The label of the ket in the given format.
- property m: float
The magnetic quantum number m (int or half-int).
- property parity: Literal['even', 'odd', 'unknown']
The parity of the ket.