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

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)

Result

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

Available properties

Print/export