StatePair

Class Methods

__init__(*args, **kwargs)

get_amplitude(other)

get_coefficients()

Return the coefficients of the state as a 1d-array.

get_corresponding_ket()

Return the ket corresponding to the state (i.e. the ket with the maximal overlap).

get_corresponding_ket_index()

Return the index of the ket corresponding to the state (i.e. the ket with the maximal overlap).

get_label([max_kets])

Label representing the state.

get_matrix_element(other, *args, **kwargs)

get_overlap(other)

Class Attributes and Properties

kets

Return a list containing the kets of the basis.

number_of_kets

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_amplitude(other)[source]
Return type:

Any

Parameters:

other (Any)

get_overlap(other)[source]
Return type:

Any

Parameters:

other (Any)

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.