Differences

This shows you the differences between two versions of the page.

Link to this comparison view

documentation:language_reference:objects:operator:properties:nf [2016/09/25 13:56] – created Maurits W. Haverkortdocumentation: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 //O.NF+O.NB-1// refers to Bosons. Changing this number changes the operator. If the new number of Fermions is smaller than the old number all operators referring to Fermions larger than //NF-1// will be removed from the operator. The index of Bosonic modes is shifted to start at //O.NF-1//.
 +###
 +
 +===== Example =====
 +
 +###
 +description text
 +###
 +
 +==== Input ====
 +<code Quanty Example.Quanty>
 +NF=3
 +NB=0
 +O = NewOperator(NF,NB,{{3.4},{0,-0,1.2},{1,-2,2.5+I}})
 +print(O.NF)
 +O.NF=2
 +print(O)
 +</code>
 +
 +==== Result ====
 +<file Quanty_Output>
 +3
 +
 +Operator: Operator
 +QComplex                  0 (Real==0 or Complex==1 or Mixed==2)
 +MaxLength        =          2 (largest number of product of lader operators)
 +NFermionic modes =          2 (Number of fermionic modes (site, spin, orbital, ...) in the one particle basis)
 +NBosonic modes            0 (Number of bosonic modes (phonon modes, ...) in the one particle basis)
 +
 +Operator of Length   0
 +QComplex      =          0 (Real==0 or Complex==1)
 +N                      1 (number of operators of length   0)
 +|  3.400000000000000E+00
 +
 +Operator of Length   2
 +QComplex      =          0 (Real==0 or Complex==1)
 +N                      1 (number of operators of length   2)
 +C  0 A  0 |  1.200000000000000E+00
 +</file>
 +
 +===== Available properties =====
 +{{indexmenu>.#1}}
Print/export