epraya.JHze#

JHze(ssx, ssy, ssz, g, biel, dim)#

Function for the Zeeman interaction.

Parameters:
  • ssx (jax.np.array) – Pauli matrix of the spin x component.

  • ssy (np.array) – Pauli matrix of the spin y component.

  • ssz (jax.np.array) – Pauli matrix of the spin z component.

  • g (jax.np.array) – Array for the g factor.

  • biel (jax.np.array) – Direction of incidence of the magnetic field.

  • dim (int) – Dimension of the total hamiltonian.

Returns:

thz (jax.np.array) – Matrix of the Zeeman interaction with dimension dim.

Example

>>> import epraya as epr
>>> Ham,Exp,_=epr.Jstart()
>>> Ham.S=1/2
>>> Ham.g=[2.003,3.0,2.003]
>>> Ham=epr.Jchaframe(Ham,Exp)
>>> sx,sy,sz=epr.JPauli(Ham.S)
>>> dim=int((2*Ham.S+1))
>>> print(epr.JHze(sx,sy,sz,Ham.g,[0,0,1],dim))
[[ 1.0015+0.j  0.    +0.j]
[ 0.    +0.j -1.0015+0.j]]