epraya.Qii#
- Qii(iix, iiy, iiz, q, dim)#
Function for the nuclear quadrupolar interaction.
- Parameters:
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.
q (np.array) – Array for the quadrupolar interaction constant.
dim (int) – Dimension of the total hamiltonian.
- Returns:
tql (np.array) – Matrix of the nuclear quadrupolar interaction with dimension dim.
Example
>>> import epraya as epr >>> Ham,Exp,_=epr.Start() >>> Ham.I=1 >>> Ham.Q=[0.5,10.0,0] >>> Ham=epr.chaframe(Ham,Exp) >>> ix,iy,iz=epr.Pauli(Ham.I) >>> dim=int((2*Ham.I+1)) >>> print(epr.Qii(ix,iy,iz,Ham.Q,dim)) [[ 0. +0.j -4.75+0.5j 0. +0.j ] [-4.75-0.5j 0. +0.j -4.75+0.5j] [ 0. +0.j -4.75-0.5j 0. +0.j ]]