Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision |
documentation:language_reference:functions:newwavefunction [2022/09/30 10:26] – old revision restored (2016/10/10 09:41) Elmar Bittner | documentation:language_reference:functions:newwavefunction [2022/09/30 16:34] (current) – Maurits W. Haverkort |
---|
| |
### | ### |
//NewWavefunction(Nf, Nb, DeterminantTable)// creates a wave-function with $Nf$ fermions and $Nb$ bosons as a sum over determinants given by the determinant table. Determinant Table is of the form of a string of 1's and 0's followed by a prefactor, for example: //{{"100000",math.sqrt(1/2)}, ...}//. NewWavefunction can take a forth element specifying options. | //NewWavefunction(Nf, Nb, DeterminantTable)// creates a wave-function with //Nf// fermions and //Nb// bosons as a sum over determinants given by the determinant table. Determinant Table is of the form of a string of 1's and 0's followed by a prefactor, for example: //{ {"100000",math.sqrt(1/2)}, ...}//. NewWavefunction can take a forth element specifying options. |
### | ### |
| |
Nb=0 | Nb=0 |
| |
psi0=NewWavefunction(Nf, Nb, { {"100000",math.sqrt(1/2)}, {"000001",math.sqrt(1/2)} }) | psi0=NewWavefunction(Nf, Nb, { { "100000",math.sqrt(1/2)}, {"000001",math.sqrt(1/2)} } ) |
| |
print(psi0) | print(psi0) |
===== Table of contents ===== | ===== Table of contents ===== |
| |
| {{indexmenu>.#1}} |