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 06:34] – Maurits W. Haverkort | documentation:language_reference:functions:newwavefunction [2025/11/20 03:29] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ### | ### | ||
| - | // | + | // |
| ### | ### | ||
| - | |||
| ===== Input ===== | ===== Input ===== | ||
| Line 19: | Line 18: | ||
| * psi : Wavefunction | * psi : Wavefunction | ||
| - | |||
| ===== Example ===== | ===== Example ===== | ||
| ### | ### | ||
| - | This example defines a new wave-function with one electron on a basis of six spin-orbitals. The state contains two determinants. After the state is defined we print the state. | + | description text |
| ### | ### | ||
| - | |||
| ==== Input ==== | ==== Input ==== | ||
| + | <code Quanty NewWavefunction.Quanty> | ||
| + | Nf=6 | ||
| + | Nb=0 | ||
| + | psi0=NewWavefunction(Nf, | ||
| + | print(psi0) | ||
| + | </ | ||
| ==== Result ==== | ==== Result ==== | ||
| + | <file Quanty_Output NewWavefunction.out> | ||
| + | WaveFunction: | ||
| + | QComplex | ||
| + | N = 2 (Number of basis functions used to discribe psi) | ||
| + | NFermionic modes = 6 (Number of fermions in the one particle basis) | ||
| + | NBosonic modes | ||
| + | # pre-factor | ||
| + | | ||
| + | | ||
| + | </ | ||
| ===== Table of contents ===== | ===== Table of contents ===== | ||
| - | + | {{indexmenu> | |
| - | + | ||