Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| documentation:language_reference:functions:start [2024/06/04 14:36] – Maurits W. Haverkort | documentation:language_reference:functions:start [2024/12/31 13:54] (current) – Maurits W. Haverkort | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| - | ### | ||
| - | 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> | + | This section of the documentation lists all global functions and gives a short explanation of what they do. Note that functions that act on a specific structure or object are listed under the section [[documentation: |
| - | 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 ===== | ===== Defined functions ===== | ||
| {{indexmenu> | {{indexmenu> | ||