epraya.ERetrack#
- ERetrack(field, energy, einvector, h1, Ham, tol1=1e-8)#
Organize the eigenvectors and energies to relate them with the quantum numbers of the system, taking as references the values at high field. It considers the values at high field and goes backwards. In every value, in the degenerate subspace, the basis is rotated using the Kabsch algorithm to match the vectors tracked in the last iteration.
In the next stephe overlap matrix O=|<phi_a(i)|phi_b(i+1)>|^2 is calculated and useas reference to solve the assigment problem using the J-V method, reorganizing the energies and eigenvectorss. Finally the phase ofthe eigenvectors is changed so <phi_k(i)|phi_k(i+1)> is real and positive.
- Parameters:
field (np.array) – Array with the values of the magnetic field.
energy (np.array) – Array of the energy values of the hamiltonian.
einvector (np.array) – Array of the eigenvectors of the hamiltonian.
h1 (np.array) – All non Zeeman interaction matrix.
Ham (Object) – Container of the hamiltonian parameters
tol1 (float) – Relative tolerance to consider two energies degenerate. Default is 1e-5 GHz
- Returns:
Enegria (np.array) – Array of the sorted energy values of the hamiltonian.
Vector (np.array) – Array of the sorted eigenvectors of the hamiltonian.