Spin`Algebra

Spin`Algebra — Magnetic Resonance with Mathematica
 

Spin`Algebra` Reference Guide

Elements

S

S[args] represent operator of angular momentum

S[a,b,...] can be entered in StandardForm as S_ (a, b, ...), S [CTRL]-[-] a,b,c...

S has attributes HoldAll and Locked

• See also: Bra, Ket, CenterDot, SToMatrix, MatrixToS

Further Examples

This loads the packages Spin`

[Graphics:img/elements_2.gif]

This sets undefined spin system

[Graphics:img/elements_3.gif]

The commutator of two operators in Cartesian representation:

[Graphics:img/elements_4.gif]

[Graphics:img/elements_5.gif]

Bra

Bra[a,m] represents bra-vector of a state with projection m of spin a.

Bra[a, m] can be entered in StandardForm as <a,m⌋, its template can be entered as :bra:.

• Bra has attributes HoldAll and Locked

• See also: Ket, S, CenterDot, SToMatrix, MatrixToS

Further Examples

This loads the packages Spin`

[Graphics:img/elements_6.gif]

This sets undefined spin system

[Graphics:img/elements_7.gif]

Here is an action of rising operator on the bra-vector with projection 1:

[Graphics:img/elements_8.gif]

[Graphics:img/elements_9.gif]

Here is a definition of projective operator and its action on the state a⌊a,j>·⌊b,j>:

[Graphics:img/elements_10.gif]

[Graphics:img/elements_11.gif]

[Graphics:img/elements_12.gif]

[Graphics:img/elements_13.gif]

Ket

Ket[a,m] represents bra-vector of state with projection m of spin a.

Ket[a, m] can be entered in StandardForm as a,m>, its template can be entered as :ket:.

Ket has attributes HoldAll and Locked

• See also: Bra, S, CenterDot, SToMatrix, MatrixToS

Further Examples

This loads the packages Spin`

[Graphics:img/elements_14.gif]

This generates a list ket-vectors for spin 2 labeled as a

[Graphics:img/elements_15.gif]

[Graphics:img/elements_16.gif]

SpinX

SpinX is an abstract variable of package Spin` used to label x-projection in Cartesian coordinates.

• The output of SpinX in StandardForm is printed as X

• The symbols x and X entered as arguments of operator S during the computation within the functions like CenterDot, SpinForm etc... are converted to SpinX.

SpinX has attribute Locked

• See also: SpinY, SpinZ, SpinPlus, SpinMinus, Bra, Ket, CenterDot, SToMatrix, MatrixToS

Further Examples

This loads the packages Spin`

[Graphics:img/elements_17.gif]

This sets a spin system for one spin labeled as 1+2:

[Graphics:img/elements_18.gif]

Function SpinForm by default uses the representation $OperatorForm, which is set in previous evaluation as Cartesian:

[Graphics:img/elements_19.gif]

[Graphics:img/elements_20.gif]

All entered functions after the interpretation have identical form:

[Graphics:img/elements_21.gif]

[Graphics:img/elements_22.gif]

Operator form Cartesian doesn't belong to the basic (noncomputable) form of representation. To prevent the infinite loop function SpinForm puts the results in hold form:

[Graphics:img/elements_23.gif]

[Graphics:img/elements_24.gif]

SpinY

SpinY is an abstract variable of package Spin` used to label y-projection in Cartesian coordinates.

• The output of SpinY in StandardForm is printed as Y

• The symbols y and Y entered as arguments of operator S during the computation within functions like CenterDot, SpinForm etc... are converted to SpinY.

SpinY has attributes Protected and Locked

• See also: SpinX, SpinZ, SpinPlus, SpinMinus, Bra, Ket, CenterDot, SToMatrix, MatrixToS

Further Examples

For further examples refer to SpinX

SpinZ

SpinZ is an abstract variable of package Spin` used to label z-projection in Cartesian coordinates.

• The output of SpinZ in StandardForm is printed as Z

• The symbols z and Z entered as arguments of operator S during the computation within functions like CenterDot, SpinForm etc... are converted to SpinZ.

SpinZ has attributes Protected and Locked

• See also: SpinX, SpinY, SpinPlus, SpinMinus, Bra, Ket, CenterDot, SToMatrix, MatrixToS

Further Examples

For further examples refer to SpinX

SpinPlus

SpinPlus is an abstract variable of package Spin`, used to label rising operator

• The output of SpinPlus in StandardForm is printed as +

• The symbol + entered as argument of operator S during the computation within functions like CenterDot, SpinForm etc... is converted to SpinPlus.

SpinPlus has attributes Protected and Locked

• See also: SpinX, SpinY, SpinZ, SpinMinus, Bra, Ket, CenterDot, SToMatrix, MatrixToS

Further Examples

This loads the packages Spin`

[Graphics:img/elements_25.gif]

This sets undefined spin system

[Graphics:img/elements_26.gif]

The product of the lowering and rising operators:

[Graphics:img/elements_27.gif]

[Graphics:img/elements_28.gif]

SpinMinus

SpinMinus is an abstract variable of package Spin`Algebra`, used to label rising operator

• The output of SpinPlus in StandardForm is printed as -

• The symbol - entered as argument of operator S during the computation within functions like CenterDot,  SpinForm etc... is converted to SpinMinus.

SpinMinus has attributes Protected and Locked

• See also: SpinX, SpinY, SpinZ, SpinPlus, Bra, Ket, CenterDot, SToMatrix, MatrixToS

Further Examples

For further examples refer to SpinPlus

SMatrix

SMatrix[args] generates matrix representation of spin operator
SMatrix[j,x] generates matrix representation of spin operator

SMatrix doesn't need SpinSystem to be defined

• The first argument of SMatrix is a value of spin state and the second must be either SpinX, SpinY and SpinZ for Cartesian representation, and SpinZ, SpinPlus and SpinMinus for Ladder representation, or numbers in a special structure for some other representations.

• See also: Bra, Ket, CenterDot, SToMatrix, MatrixToS

Further Examples

This loads the packages Spin`

[Graphics:img/elements_29.gif]

[Graphics:img/elements_30.gif]

[Graphics:img/elements_31.gif]

If spin system with one spin of the same value is defined:

[Graphics:img/elements_32.gif]

Then the same matrix can be get by function SToMatrix:

[Graphics:img/elements_33.gif]

[Graphics:img/elements_34.gif]

Thus, SMatrix is more simple and faster but SToMatrix is more general and flexible, it can be applied to expression of any complexity.

BraMatrix

BraMatrix[j,m] generates matrix representation of bra-vector with spin value j and projection m

BraMatrix doesn't need SpinSystem to be defined

• See also: Bra, Ket, KetMatrix, SMatrix, CircleTimes

Further Examples

This loads the packages Spin`

[Graphics:img/elements_35.gif]

This is BraMatrix of a triplet state

[Graphics:img/elements_36.gif]

[Graphics:img/elements_37.gif]

Here is scalar product of BraMatrix and KetMatrix:

[Graphics:img/elements_38.gif]

[Graphics:img/elements_39.gif]

The order of positions is crucial. This gives a product of KetMatrix acting on BraMatrix:

[Graphics:img/elements_40.gif]

[Graphics:img/elements_41.gif]

KetMatrix

KetMatrix[j,m] generates matrix representation of bra-vector with spin value j and projection m

KetMatrix doesn't need SpinSystem to be defined

• See also: Bra, Ket, BraMatrix, SMatrix, CircleTimes

Further Examples

This loads the packages Spin`

[Graphics:img/elements_42.gif]

This is KetMatrix of a triplet state

[Graphics:img/elements_43.gif]

[Graphics:img/elements_44.gif]

Here is SMatrix of selective transition, it equivalent to direct product of BraMatrix and KetMatrix

[Graphics:img/elements_45.gif]

[Graphics:img/elements_46.gif]



   Last modified: April 10, 2007