Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
documentation:language_reference:functions:start [2016/10/06 22:56] – created Maurits W. Haverkort | documentation:language_reference:functions:start [2024/06/04 14:50] (current) – Maurits W. Haverkort | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Functions ====== | ||
+ | |||
+ | ### | ||
+ | This section of the documentation lists all functions and gives a short explanation of what they do. In order to run examples we define a set of standard operators, wave-functions and objects. These are stored in the file definitions.Quanty and loaded in several of the examples below. The definitions are: | ||
+ | ### | ||
+ | |||
+ | <code Quanty definitions.Quanty> | ||
+ | Verbosity(0x0) | ||
+ | |||
+ | Nf=6 | ||
+ | Nb=0 | ||
+ | IndexDn={0, | ||
+ | IndexUp={1, | ||
+ | |||
+ | Opp1 = NewOperator(" | ||
+ | Opp2 = NewOperator(" | ||
+ | psi1 = NewWavefunction(Nf, | ||
+ | psi2 = NewWavefunction(Nf, | ||
+ | mat = {{1,1,0}, | ||
+ | | ||
+ | | ||
+ | |||
+ | OppLx = NewOperator(" | ||
+ | OppLy = NewOperator(" | ||
+ | OppLz = NewOperator(" | ||
+ | OppLsqr | ||
+ | OppSx = NewOperator(" | ||
+ | OppSy = NewOperator(" | ||
+ | OppSz = NewOperator(" | ||
+ | OppSsqr | ||
+ | OppJx = NewOperator(" | ||
+ | OppJy = NewOperator(" | ||
+ | OppJz = NewOperator(" | ||
+ | OppJsqr | ||
+ | Oppldots = NewOperator(" | ||
+ | OppU = NewOperator(" | ||
+ | Akm = PotentialExpandedOnClm(" | ||
+ | Opppx = Chop(NewOperator(" | ||
+ | Opppx.Name=" | ||
+ | Akm = PotentialExpandedOnClm(" | ||
+ | Opppy = Chop(NewOperator(" | ||
+ | Opppy.Name=" | ||
+ | Akm = PotentialExpandedOnClm(" | ||
+ | Opppz = Chop(NewOperator(" | ||
+ | Opppz.Name=" | ||
+ | |||
+ | psim1dn = NewWavefunction(Nf, | ||
+ | psi0dn | ||
+ | psip1dn = NewWavefunction(Nf, | ||
+ | psim1up = NewWavefunction(Nf, | ||
+ | psi0up | ||
+ | psip1up = NewWavefunction(Nf, | ||
+ | |||
+ | psixdn | ||
+ | psiydn | ||
+ | psizdn | ||
+ | psixup | ||
+ | psiyup | ||
+ | psizup | ||
+ | |||
+ | t = sqrt(1/2) | ||
+ | rotmat = {{ t, 0, 0, 0, -t, 0}, | ||
+ | { 0, t, 0, 0, 0, -t}, | ||
+ | {I*t, 0, 0, 0, | ||
+ | { 0,I*t, 0, 0, 0,I*t}, | ||
+ | { 0, 0, 1, 0, 0, 0}, | ||
+ | { 0, 0, 0, 1, 0, 0}} | ||
+ | </ | ||
+ | |||
+ | ===== Defined functions ===== | ||
+ | {{indexmenu> |