zeeman
Syntax

Zeeman interaction Hamiltonian and its components.

H = zeeman(SpinSystem, B)
H = zeeman(SpinSystem, B, idx)
H = zeeman(SpinSystem, B, idx, 'sparse')
[Zx, Zy, Zz] = zeeman(SpinSystem)
[Zx, Zy, Zz] = zeeman(SpinSystem, idx)
[Zx, Zy, Zz] = zeeman(SpinSystem, idx, 'sparse')
Description

zeeman calculates the Zeeman interaction Hamiltonian for the spin system given in SpinSystem.

SpinSystem is a spin system structure, defining electron spins, nuclear spins and orbital angular momenta as well as and their g values.

If idx is omitted, all electron and nuclear spins as well as all orbital angular momenta defined in the spin system are included in the operators. If idx is given, only a part of the spins of the system is included. idx must then be a vector of indices specifying which spins should be included. For a system with n electron spins and k nuclear spins, a number between 1 and n indicates an electron spin (from Sys.S), and a number between n+1 and n+k specifies a nuclear spin, if present (from Sys.Nucs). Orbital angular momemta given in Sys.L are included by including numbers above n+k in idx.

If a magnetic field vector (in mT) is given in B, the actual Hamiltonian is returned

[eqn]

If no magnetic field is given, the function returns the three operators involved in constructing the Zeeman interaction Hamiltonian. These three operators Zx, Zy and Zz are the cartesian components of the vector derivative [eqn], i.e.

[eqn]

They correspond to the negative of the magnetic moment components. To get the complete Zeeman interaction Hamiltonian, they have to be multiplied by the respective B field components and summed up.

[eqn]

If 'sparse' is given as third argument, results are returned in sparse format instead of full format.

All quantities are formulated in the molecular frame, i.e. x refers to the x axis of the molecular frame etc. The three component operators are in units of MHz/mT, and the overall operator is in units of MHz.

Examples

For the spin system

ABC = struct('S',1/2,'g',[2.1 2.1 2],'Nucs','14N','A',[1 1 1]);

the full Zeeman Hamiltonian (electron and nucleus) for a given magnetic field along the molecular x axis is

B = [340;0;0];
H = zeeman(ABC,B)
H =
   1.0e+03 *
         0   -0.0007         0    4.9967         0         0
   -0.0007         0   -0.0007         0    4.9967         0
         0   -0.0007         0         0         0    4.9967
    4.9967         0         0         0   -0.0007         0
         0    4.9967         0   -0.0007         0   -0.0007
         0         0    4.9967         0   -0.0007         0

For the same spin system, the Zeeman interaction Hamiltonian's x component of the 14N nucleus is

idx = 2;   % 14N is the second spin
[Zx,Zy,Zz] = zeeman(ABC,idx); Zx
Zx =
         0   -0.0022         0         0         0         0
   -0.0022         0   -0.0022         0         0         0
         0   -0.0022         0         0         0         0
         0         0         0         0   -0.0022         0
         0         0         0   -0.0022         0   -0.0022
         0         0         0         0   -0.0022         0
See also

eeint, hfine, nnint, nquad, sham, soint, zfield