NewOperator(name, …) creates one of the standard operators as described in the section on standard operators.
NewOperator(Nf, Nb, CreationTable) can be used to create any operator of the form: O=α(0,0)1+∑iα(1,0)ia†i+α(0,1)iai+∑i,jα(2,0)i,ja†ia†j+α(1,1)i,ja†iaj+α(0,2)i,jaiaj+∑i,j,k.... The format of CreationTable for the above listed operator is: NewOperator(Nf, Nb, { {i1,j1,k1,αi,j,k},{i1,j1,αi,j},…}) Whereby positive indices create a particle, negative indices annihilate a particle. Index i for 0 to Nf-1 label Fermions, from Nf to Nf+Nb label Bosons. α can be either a real or a complex number. NewOperator can take a forth element specifying options.
description text
Nf = 5 Nb = 0 O = NewOperator(Nf, Nb, {{ 10}, {0,-0, 3}, {0,1,2,3,4, 1+I}}, {{"Name","Liberty"}}) print(O)
Operator: Liberty QComplex = 2 (Real==0 or Complex==1 or Mixed==2) MaxLength = 5 (largest number of product of lader operators) NFermionic modes = 5 (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) | 1.00000000000000E+01 Operator of Length 2 QComplex = 0 (Real==0 or Complex==1) N = 1 (number of operators of length 2) C 0 A 0 | 3.00000000000000E+00 Operator of Length 5 QComplex = 1 (Real==0 or Complex==1) N = 1 (number of operators of length 5) C 4 C 3 C 2 C 1 C 0 | 1.00000000000000E+00 1.00000000000000E+00