Differences
This shows you the differences between two versions of the page.
documentation:standard_operators:magnetic_dipole:ty [2016/10/06 08:14] – created Maurits W. Haverkort | documentation:standard_operators:magnetic_dipole:ty [2016/10/10 09:41] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Ty ====== | ||
+ | ### | ||
+ | The y component of $\vec{T}$ is defined as: | ||
+ | \begin{equation} | ||
+ | T_y = S_y - 3 y\left(x S_x + y S_y + z S_z\right)/ | ||
+ | \end{equation} | ||
+ | The equivalent operator in Quanty is created by: | ||
+ | <code Quanty Example.Quanty> | ||
+ | OppTy = NewOperator(" | ||
+ | </ | ||
+ | ### | ||
+ | |||
+ | ### | ||
+ | The operator can alternatively be created with the following function: | ||
+ | <code Quanty Example.Quanty> | ||
+ | function Ty(indexup, indexdn, NF) | ||
+ | if #indexup ~= #indexdn then | ||
+ | error(" | ||
+ | end | ||
+ | local l=(# | ||
+ | if not IntegerQ(l) then | ||
+ | error(" | ||
+ | end | ||
+ | local function Sx(m1, | ||
+ | return NewOperator(" | ||
+ | | ||
+ | end | ||
+ | local function Sy(m1, | ||
+ | return NewOperator(" | ||
+ | | ||
+ | end | ||
+ | local function Sz(m1, | ||
+ | return NewOperator(" | ||
+ | | ||
+ | end | ||
+ | local opp = 0 * NewOperator(" | ||
+ | for m1 = -l,l do | ||
+ | for m2 = -l,l do | ||
+ | opp = opp -2 * (-sqrt(3/ | ||
+ | -sqrt(3/ | ||
+ | -sqrt(2/ | ||
+ | | ||
+ | -I * ( sqrt(3/ | ||
+ | -sqrt(3/ | ||
+ | | ||
+ | -I * ( sqrt(3/ | ||
+ | +sqrt(3/ | ||
+ | | ||
+ | end | ||
+ | end | ||
+ | opp.Chop() | ||
+ | opp.Name=" | ||
+ | return opp | ||
+ | end | ||
+ | </ | ||
+ | ### | ||
+ | |||
+ | |||
+ | ===== Table of contents ===== | ||
+ | {{indexmenu> |