epraya.Iee#

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

Function for the electron-electron interaction.

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

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

  • ssz1 (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 (np.array) – Electron-electron interaction constant.

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

Returns:

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

Example

>>> import epraya as epr
>>> import numpy as np
>>> Ham,_,_=epr.Start(2)
>>> Ham.S1=1
>>> Ham.S2=1/2
>>> sx1,sy1,sz1=epr.Pauli(Ham.S1)
>>> sx2,sy2,sz2=epr.Pauli(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.Iee(sx1,sy1,sz1,sx2,sy2,sz2,Ham.X1_2,dim))
[[ 100.        +0.j    0.        +0.j    0.        +0.j -106.06601718+0.j
0.        +0.j    0.        +0.j]
[   0.        +0.j -100.        +0.j  247.48737342+0.j    0.        +0.j
0.        +0.j    0.        +0.j]
[   0.        +0.j  247.48737342+0.j    0.        +0.j    0.        +0.j
0.        +0.j -106.06601718+0.j]
[-106.06601718+0.j    0.        +0.j    0.        +0.j    0.        +0.j
247.48737342+0.j    0.        +0.j]
[   0.        +0.j    0.        +0.j    0.        +0.j  247.48737342+0.j
-100.        +0.j    0.        +0.j]
[   0.        +0.j    0.        +0.j -106.06601718+0.j    0.        +0.j
0.        +0.j  100.        +0.j]]