epraya.JHfi#

JHfi(ssx, ssy, ssz, iix, iiy, iiz, at, dim)#

Function for the hiperfine interaction.

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

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

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

  • iix (jax.np.array) – Pauli matrix of the nuclear spin x component.

  • iiy (jax.np.array) – Pauli matrix of the nuclear spin y component.

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

  • at (jax.np.array) – Array for the hiperfine interaction constant.

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

Returns:

ta (jax.np.array) – Matrix of the hiperfine interaction with dimension dim.

Example

>>> import epraya as epr
>>> Ham,Exp,_=epr.Jstart()
>>> Ham.S=1/2
>>> Ham.I=1/2
>>> Ham.A=[200,300,200]
>>> Ham=epr.Jchaframe(Ham,Exp)
>>> sx,sy,sz=epr.JPauli(Ham.S)
>>> ix,iy,iz=epr.JPauli(Ham.S)
>>> dim=int((2*Ham.S+1)*(2*Ham.I+1))
>>> print(epr.JHfi(sx,sy,sz,ix,iy,iz,Ham.A,dim))
[[ 50.+0.j   0.+0.j   0.+0.j -25.+0.j]
[  0.+0.j -50.+0.j 125.+0.j   0.+0.j]
[  0.+0.j 125.+0.j -50.+0.j   0.+0.j]
[-25.+0.j   0.+0.j   0.+0.j  50.+0.j]]