epraya.Hze#
- Hze(ssx, ssy, ssz, g, biel, dim)#
Function for the Zeeman interaction.
- 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.
g (np.array) – Array for the g factor.
biel (np.array) – Direction of incidence of the magnetic field.
dim (int) – Dimension of the total hamiltonian.
- Returns:
thz (np.array) – Matrix of the Zeeman interaction with dimension dim.
Example
>>> import epraya as epr >>> Ham,Exp,_=epr.Start() >>> Ham.S=1/2 >>> Ham.g=[2.003,3.0,2.003] >>> Ham=epr.chaframe(Ham,Exp) >>> sx,sy,sz=epr.Pauli(Ham.S) >>> dim=int((2*Ham.S+1)) >>> print(epr.Hze(sx,sy,sz,Ham.g,[0,0,1],dim)) [[ 1.0015+0.j 0. +0.j] [ 0. +0.j -1.0015+0.j]]