epraya.JIee#

JIee(ssx1, ssy1, ssz1, ssx2, ssy2, ssz2, X, dim)#

Function for the electron-electron interaction.

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

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

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

  • ssx2 (np.array) – Pauli matrix of the second spin x component.

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

  • ssz2 (np.array) – Pauli matrix of the second spin z component.

  • X (jax.np.array) – Electron-electron interaction constant.

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

Returns:

eet (jax.np.array) – Matrix of the Electron-Electron interaction with dimension dim.

Example

>>> import epraya as epr
>>> import numpy as np
>>> Ham,_,_=epr.Jstart()
>>> Ham.S1=1
>>> Ham.S2=1/2
>>> sx1,sy1,sz1=epr.JPauli(Ham.S1)
>>> sx2,sy2,sz2=epr.JPauli(Ham.S2)
>>> Ham.X1_2=[200,500,200]
>>> Ham.X1_2=(Ham.X1_2)*np.eye(3)
>>> dim=int((2*Ham.S1+1)*(2*Ham.S2+1))
>>> print(epr.JIee(sx1,sy1,sz1,sx2,sy2,sz2,Ham.X1_2,dim))
[[ 100.     +0.j    0.     +0.j    0.     +0.j -106.06602+0.j
0.     +0.j    0.     +0.j]
[   0.     +0.j -100.     +0.j  247.48737+0.j    0.     +0.j
0.     +0.j    0.     +0.j]
[   0.     +0.j  247.48737+0.j    0.     +0.j    0.     +0.j
0.     +0.j -106.06602+0.j]
[-106.06602+0.j    0.     +0.j    0.     +0.j    0.     +0.j
247.48737+0.j    0.     +0.j]
[   0.     +0.j    0.     +0.j    0.     +0.j  247.48737+0.j
-100.     +0.j    0.     +0.j]
[   0.     +0.j    0.     +0.j -106.06602+0.j    0.     +0.j
0.     +0.j  100.     +0.j]]