Differences
This shows you the differences between two versions of the page.
forum:data:2020:problems_with_creation_and_annihilation_operators [2020/02/22 18:59] – Created from the form at forum:start Carlos Alberto Martins Junior | forum:data:2020:problems_with_creation_and_annihilation_operators [2020/02/22 19:13] (current) – Maurits W. Haverkort | ||
---|---|---|---|
Line 9: | Line 9: | ||
I am trying to learn how to program using Quanty, however I am having some issues to understand why my code is wrong. I tried to print the creation and annihilation operators in a d shell basis but the result is wrong. My code is | I am trying to learn how to program using Quanty, however I am having some issues to understand why my code is wrong. I tried to print the creation and annihilation operators in a d shell basis but the result is wrong. My code is | ||
+ | < | ||
NF=10 | NF=10 | ||
NB=0 | NB=0 | ||
Line 64: | Line 65: | ||
print("" | print("" | ||
- | OppAn1=NewOperator(" | + | </ |
And my result is | And my result is | ||
+ | < | ||
Operator N: | Operator N: | ||
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 | 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 | ||
Line 106: | Line 108: | ||
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.0010.44-1.00 | 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.0010.44-1.00 | ||
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.0011.00 | 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.0011.00 | ||
+ | </ | ||
+ | |||
I do not understand why I got this result for the creation and annihilation operators. | I do not understand why I got this result for the creation and annihilation operators. |