Differences
This shows you the differences between two versions of the page.
| documentation:language_reference:objects:wavefunction:methods:conjugate [2016/09/25 13:58] – created Maurits W. Haverkort | documentation:language_reference:objects:wavefunction:methods:conjugate [2025/11/20 04:20] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Conjugate ====== | ||
| + | ### | ||
| + | For a wavefunction //psi//, the method // | ||
| + | ### | ||
| + | |||
| + | ===== Example ===== | ||
| + | |||
| + | ### | ||
| + | We can define the following 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. | ||
| + | $$ | ||
| + | Its conjugate $\psi^*$ can be calculate with the command // | ||
| + | $$ | ||
| + | |\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. | ||
| + | $$ | ||
| + | ### | ||
| + | |||
| + | |||
| + | |||
| + | ==== Input ==== | ||
| + | <code Quanty Example.Quanty> | ||
| + | NF=3 | ||
| + | NB=0 | ||
| + | psi = NewWavefunction(NF, | ||
| + | print(psi) | ||
| + | psi.Conjugate() | ||
| + | print(psi) | ||
| + | </ | ||
| + | |||
| + | ==== Result ==== | ||
| + | <file Quanty_Output> | ||
| + | WaveFunction: | ||
| + | QComplex | ||
| + | N = 3 (Number of basis functions used to discribe psi) | ||
| + | NFermionic modes = 3 (Number of fermions in the one particle basis) | ||
| + | NBosonic modes | ||
| + | |||
| + | # pre-factor | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | |||
| + | |||
| + | WaveFunction: | ||
| + | QComplex | ||
| + | N = 3 (Number of basis functions used to discribe psi) | ||
| + | NFermionic modes = 3 (Number of fermions in the one particle basis) | ||
| + | NBosonic modes | ||
| + | |||
| + | # pre-factor | ||
| + | | ||
| + | | ||
| + | | ||
| + | </ | ||
| + | |||
| + | ===== Available methods ===== | ||
| + | {{indexmenu> | ||