Differences
This shows you the differences between two versions of the page.
documentation:standard_operators:magnetic_dipole:tx [2016/10/06 08:14] – created Maurits W. Haverkort | documentation:standard_operators:magnetic_dipole:tx [2016/10/10 09:41] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Tx ====== | ||
+ | ### | ||
+ | The x component of $\vec{T}$ is defined as: | ||
+ | \begin{equation} | ||
+ | T_x = S_x - 3 x\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> | ||
+ | OppTx = NewOperator(" | ||
+ | </ | ||
+ | ### | ||
+ | |||
+ | ### | ||
+ | The operator can alternatively be created with the following function: | ||
+ | <code Quanty Example.Quanty> | ||
+ | function Tx(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/ | ||
+ | | ||
+ | - ( sqrt(3/ | ||
+ | -sqrt(3/ | ||
+ | | ||
+ | end | ||
+ | end | ||
+ | opp.Chop() | ||
+ | opp.Name=" | ||
+ | return opp | ||
+ | end | ||
+ | </ | ||
+ | ### | ||
+ | |||
+ | ===== Table of contents ===== | ||
+ | {{indexmenu> |