Differences
This shows you the differences between two versions of the page.
documentation:language_reference:objects:operator:properties:nf [2016/09/25 13:56] – created Maurits W. Haverkort | documentation:language_reference:objects:operator:properties:nf [2016/10/10 09:41] (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 Operator //O//, index //0// to //O.NF-1// refers to Fermions, index //O.NF// to // | ||
+ | ### | ||
+ | |||
+ | ===== Example ===== | ||
+ | |||
+ | ### | ||
+ | description text | ||
+ | ### | ||
+ | |||
+ | ==== Input ==== | ||
+ | <code Quanty Example.Quanty> | ||
+ | NF=3 | ||
+ | NB=0 | ||
+ | O = NewOperator(NF, | ||
+ | print(O.NF) | ||
+ | O.NF=2 | ||
+ | print(O) | ||
+ | </ | ||
+ | |||
+ | ==== Result ==== | ||
+ | <file Quanty_Output> | ||
+ | 3 | ||
+ | |||
+ | Operator: Operator | ||
+ | QComplex | ||
+ | MaxLength | ||
+ | NFermionic modes = 2 (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 | ||
+ | </ | ||
+ | |||
+ | ===== Available properties ===== | ||
+ | {{indexmenu> |