Differences
This shows you the differences between two versions of the page.
| documentation:language_reference:objects:wavefunction:properties:nf [2016/09/25 13:54] – created Maurits W. Haverkort | documentation:language_reference:objects:wavefunction:properties:nf [2025/11/20 04:20] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== NF ====== | ||
| + | ### | ||
| + | unsigned integer, read and write | ||
| + | ### | ||
| + | ### | ||
| + | An integer representing the number of Fermionic modes in the basis. For wavefunction //psi//, index //0// to // | ||
| + | ### | ||
| + | |||
| + | ===== Example ===== | ||
| + | |||
| + | ### | ||
| + | We can define the function: | ||
| + | $$ | ||
| + | |\psi\rangle = \left(\frac{1}{\sqrt{4}} a^{\dagger}_0 a^{\dagger}_1 + \frac{1}{\sqrt{4}} a^{\dagger}_0 a^{\dagger}_2 + (1+I)\frac{1}{\sqrt{4}} a^{\dagger}_1 a^{\dagger}_2 \right)|0\rangle, | ||
| + | $$ | ||
| + | changing the number of fermions in the basis from 3 to 2 results in the new function: | ||
| + | $$ | ||
| + | |\psi\rangle = \left(\frac{1}{\sqrt{4}} a^{\dagger}_0 a^{\dagger}_1 + \frac{1}{\sqrt{4}} a^{\dagger}_0 + (1+I)\frac{1}{\sqrt{4}} a^{\dagger}_1 \right)|0\rangle. | ||
| + | $$ | ||
| + | Note that the later is normalized, but does not contain a fixed number of electrons. | ||
| + | ### | ||
| + | |||
| + | ==== Input ==== | ||
| + | <code Quanty Example.Quanty> | ||
| + | NF=3 | ||
| + | NB=0 | ||
| + | psi = NewWavefunction(NF, | ||
| + | print(psi.NF) | ||
| + | psi.NF=2 | ||
| + | print(psi) | ||
| + | </ | ||
| + | |||
| + | ==== Result ==== | ||
| + | <file Quanty_Output> | ||
| + | 3 | ||
| + | |||
| + | WaveFunction: | ||
| + | QComplex | ||
| + | N = 3 (Number of basis functions used to discribe psi) | ||
| + | NFermionic modes = 2 (Number of fermions in the one particle basis) | ||
| + | NBosonic modes | ||
| + | |||
| + | # pre-factor | ||
| + | | ||
| + | | ||
| + | | ||
| + | </ | ||
| + | |||
| + | ===== Available properties ===== | ||
| + | {{indexmenu> | ||