epraya.Hfi#

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

Function for the hiperfine 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.

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

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

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

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

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

Returns:

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

Example

>>> import epraya as epr
>>> Ham,Exp,_=epr.Start()
>>> Ham.S=1/2
>>> Ham.I=1/2
>>> Ham.A=[200,300,200]
>>> Ham=epr.chaframe(Ham,Exp)
>>> sx,sy,sz=epr.Pauli(Ham.S)
>>> ix,iy,iz=epr.Pauli(Ham.S)
>>> dim=int((2*Ham.S+1)*(2*Ham.I+1))
>>> print(epr.Hfi(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]]