epraya.StevensO#
- StevensO(ssx, ssy, ssz, s, Ham, dim)#
Expanded Stevens operators following the rule k<=2s and the definition by Rudowicz and Chung.
- Parameters:
ssx (np.array) – Pauli matrix of the spin x component.
ssy (np.array) – Pauli matrix of the spin y component.
ssz (np.array) – Pauli matrix of the spin z component.
s (float) – Spin operator value.
Ham (Class) – Hamiltonian parameters container.
dim (int) – Dimension of the total hamiltonian.
- Returns:
totales (np.array) – Matrix with the contribution of the relevant Stevens operators.
Example
>>> import epraya as epr >>> Ham, _, _ = epr.Start() >>> Ham.S=1 >>> Ham.D=[700,200] >>> Ham=epr.chaframe(Ham,Exp) >>> dim=int(2*Ham.S+1) >>> sx,sy,sz=epr.Pauli(Ham.S) >>> print(epr.StevensO(sx,sy,sz,Ham.S,Ham,dim)) [[ 233.33333333+0.j 0. +0.j 200. +0.j] [ 0. +0.j -466.66666667+0.j 0. +0.j] [ 200. +0.j 0. +0.j 233.33333333+0.j]]