Observable
- class ttnopt.Observable(indices: List[int], operators_list: List[List[str]], coef_list: List[float] | List[complex])[source]
Bases:
objectA class for observables.
- __init__(indices: List[int], operators_list: List[List[str]], coef_list: List[float] | List[complex])[source]
Initialize an Observable object.
- Parameters:
indices – Indices of the observable.
operators_list – List of operators, “S+”, “S-”, “Sz”, “Sx” and “Sy”.
coef_list – Coefficients for each operator.