StatePair
Class Methods
|
|
|
|
Return the coefficients of the state as a 1d-array. |
|
Return the ket corresponding to the state (i.e. the ket with the maximal overlap). |
|
Return the index of the ket corresponding to the state (i.e. the ket with the maximal overlap). |
|
|
Label representing the state. |
|
|
|
Class Attributes and Properties
Return a list containing the kets of the basis. |
|
Return the number of kets in the basis. |
- class StatePair[source]
Pair state of two atoms.
Currently StatePair objects don’t offer any additional functionality.
- get_matrix_element(other, *args, **kwargs)[source]
- Return type:
Any
- Parameters:
other (Any)
args (Any)
kwargs (Any)
- __init__(*args, **kwargs)
- Parameters:
args (Any)
kwargs (Any)
- Return type:
None
- get_coefficients()
Return the coefficients of the state as a 1d-array.
The coefficients are stored in a numpy.array with shape (number_of_kets,).
The coefficients are normalized, i.e. the sum of the absolute values of the coefficients is equal to 1.
- Return type:
ndarray
[tuple
[Any
,...
],dtype
[Any
]]
- get_corresponding_ket()
Return the ket corresponding to the state (i.e. the ket with the maximal overlap).
- Return type:
TypeVar
(KetType
, bound= KetBase, covariant=True)
- get_corresponding_ket_index()
Return the index of the ket corresponding to the state (i.e. the ket with the maximal overlap).
- Return type:
int
- get_label(max_kets=3)
Label representing the state.
- Return type:
str
- Returns:
The label of the ket in the given format.
- Parameters:
max_kets (int)
- property kets: list[KetType]
Return a list containing the kets of the basis.
- property number_of_kets: int
Return the number of kets in the basis.