epraya.Padaptarray#
- Padaptarray(espac, h1, hx, hy, hz, nx, ny, nz)#
Constructs the Zeeman hamiltonian, adds it to the complete one and finds the energy values and eigenvectors.
- Parameters:
espac (np.array) – Array with the values of the magnetic field.
h1 (np.array) – Hamiltonian matrix that contains all no Zeeman interactions.
hx (np.array) – Hamiltonian matrix of the Zeeman interaction in the x direction.
hy (np.array) – Hamiltonian matrix of the Zeeman interaction in the y direction.
hz (np.array) – Hamiltonian matrix of the Zeeman interaction in the z direction.
nx (float) – Weight coefficient for the interaction in the x direction.
ny (float) – Weight coefficient for the interaction in the y direction.
nz (float) – Weight coefficient for the interaction in the z direction.
- Returns:
Elist (np.array) – Array of the energy values of the hamiltonian.
Vlist (np.array) – Array of the eigenvectors of the hamiltonian.
h2 (np.array) – Total Zeeman interaction matrix.