Differences
This shows you the differences between two versions of the page.
documentation:basics:operators [2016/10/06 20:32] – created Maurits W. Haverkort | documentation:basics:operators [2016/10/10 09:40] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{indexmenu_n> | ||
+ | ====== Operators ====== | ||
+ | ### | ||
+ | Operators are defined in second quantization. Any operator can be written as: | ||
+ | $$ | ||
+ | \begin{eqnarray} | ||
+ | \nonumber | ||
+ | \nonumber + \sum_i | ||
+ | \nonumber + \sum_{i,j} && \alpha^{(2, | ||
+ | + \sum_{i, | ||
+ | \end{eqnarray} | ||
+ | $$ | ||
+ | In Quanty one can create a creation operator on spin-orbital $0$ ($a^{\dagger}_0$) with the function // | ||
+ | <code Quanty Example.Quanty> | ||
+ | -- Creation operator on spin-orbital 0 | ||
+ | OppC0 = NewOperator(" | ||
+ | </ | ||
+ | Annihilation operators are created by replacing the string //" | ||
+ | <code Quanty Example.Quanty> | ||
+ | -- Annihilation operator on spin-orbital 0 | ||
+ | OppA0 = NewOperator(" | ||
+ | </ | ||
+ | ### | ||
+ | |||
+ | ### | ||
+ | One is allowed to multiply operators, either with (complex) numbers or by other operators as well as to add operators. In this way one is able to create all possible operators needed. | ||
+ | <code Quanty Example.Quanty> | ||
+ | OppC0 = NewOperator(" | ||
+ | OppA0 = NewOperator(" | ||
+ | -- Create the number operator on spin-orbital | ||
+ | -- 0 by multiplying a creation with an | ||
+ | -- annihilation operator | ||
+ | OppN0 = OppC0 * OppA0 | ||
+ | -- Identity operator | ||
+ | Opp1 = OppC0 * OppA0 + OppA0 * OppC0 | ||
+ | </ | ||
+ | The number operator can be created directly using the string " | ||
+ | <code Quanty Example.Quanty> | ||
+ | -- Number operator on spin-orbital 0 | ||
+ | OppN0 = NewOperator(" | ||
+ | </ | ||
+ | ### | ||
+ | |||
+ | ### | ||
+ | One can create sums over creation, annihilation or number operators directly. The operator | ||
+ | \begin{equation} | ||
+ | O_1 = 0.1 a_0^{\dagger} + 0.2 a_1^{\dagger} + 0.3 a_3^{\dagger}, | ||
+ | \end{equation} | ||
+ | is created in Quanty by adding a list of indices and prefactors. | ||
+ | <code Quanty Example.Quanty> | ||
+ | -- Operator O_1 | ||
+ | OppO1 = NewOperator(" | ||
+ | </ | ||
+ | ### | ||
+ | |||
+ | ### | ||
+ | Although this allows you to create all possible operators it is not really practical. Quanty has defined many standard operators which can be used directly. In the section on [[documentation: | ||
+ | ### | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== Index ===== | ||
+ | - [[documentation: | ||
+ | - Operators | ||
+ | - [[documentation: | ||
+ | - [[documentation: | ||
+ | - [[documentation: | ||
+ | - [[documentation: | ||
+ | - [[documentation: | ||
+ | - [[documentation: |