Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| documentation:standard_operators:magnetic_dipole:tz [2016/10/06 08:13] – created Maurits W. Haverkort | documentation:standard_operators:magnetic_dipole:tz [2017/05/08 13:34] (current) – Maurits W. Haverkort | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Tz ====== | ||
| + | ### | ||
| + | The z component of $\vec{T}$ is defined as: | ||
| + | \begin{equation} | ||
| + | T_z = S_z - 3 z\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> | ||
| + | OppTz = NewOperator(" | ||
| + | </ | ||
| + | ### | ||
| + | |||
| + | ### | ||
| + | The operator can alternatively be created with the following function: | ||
| + | <code Quanty Example.Quanty> | ||
| + | function Tz(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/ | ||
| + | | ||
| + | -I * ( sqrt(3/ | ||
| + | +sqrt(3/ | ||
| + | | ||
| + | end | ||
| + | end | ||
| + | opp.Chop() | ||
| + | opp.Name=" | ||
| + | return opp | ||
| + | end | ||
| + | </ | ||
| + | ### | ||
| + | |||
| + | |||
| + | ===== Table of contents ===== | ||
| + | {{indexmenu> | ||