Differences
This shows you the differences between two versions of the page.
| documentation:language_reference:objects:operator:methods:print [2016/09/25 13:58] – created Maurits W. Haverkort | documentation:language_reference:objects:operator:methods:print [2016/10/10 09:41] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Print ====== | ||
| + | ### | ||
| + | For an operator //O//, // | ||
| + | ### | ||
| + | |||
| + | ===== Options ===== | ||
| + | |||
| + | ### | ||
| + | // | ||
| + | ### | ||
| + | |||
| + | ==== " | ||
| + | |||
| + | ### | ||
| + | " | ||
| + | ### | ||
| + | |||
| + | ==== " | ||
| + | |||
| + | ### | ||
| + | " | ||
| + | ### | ||
| + | |||
| + | ===== Example ===== | ||
| + | |||
| + | ### | ||
| + | We define: | ||
| + | $$O=3.4+1.2a^{\dagger}_{0}\, | ||
| + | and show two ways to print this operator with the same result. | ||
| + | ### | ||
| + | |||
| + | ==== Input ==== | ||
| + | <code Quanty Example.Quanty> | ||
| + | NF=3 | ||
| + | NB=0 | ||
| + | O = NewOperator(NF, | ||
| + | print(O) | ||
| + | O.Print() | ||
| + | </ | ||
| + | |||
| + | ==== Result ==== | ||
| + | <file Quanty_Output> | ||
| + | Operator: Operator | ||
| + | QComplex | ||
| + | MaxLength | ||
| + | NFermionic modes = 3 (Number of fermionic modes (site, spin, orbital, ...) in the one particle basis) | ||
| + | NBosonic modes | ||
| + | |||
| + | Operator of Length | ||
| + | QComplex | ||
| + | N | ||
| + | | 3.400000000000000E+00 | ||
| + | |||
| + | Operator of Length | ||
| + | QComplex | ||
| + | N | ||
| + | C 0 A 0 | 1.200000000000000E+00 | ||
| + | C 1 A 2 | 2.500000000000000E+00 | ||
| + | |||
| + | |||
| + | |||
| + | Operator: Operator | ||
| + | QComplex | ||
| + | MaxLength | ||
| + | NFermionic modes = 3 (Number of fermions in the one particle basis) | ||
| + | NBosonic modes | ||
| + | |||
| + | Operator of Length | ||
| + | QComplex | ||
| + | N | ||
| + | | 3.400000000000000E+00 | ||
| + | |||
| + | Operator of Length | ||
| + | QComplex | ||
| + | N | ||
| + | C 0 A 0 | 1.200000000000000E+00 | ||
| + | C 1 A 2 | 2.500000000000000E+00 | ||
| + | </ | ||
| + | |||
| + | ===== Available methods ===== | ||
| + | {{indexmenu> | ||