Operator
Operators define quantum mechanical operators implemented in second quantization. The most general operator one can implement is: O=α(0,0)+∑τα(0,1)τa†τ+α(1,0)τa†τ+∑τ1,τ2α(0,2)τ1,τ2a†τ1a†τ2+α(1,1)τ1,τ2a†τ1a†τ2+α(2,0)τ1,τ2a†τ1a†τ2+∑τ1,τ2,τ3α(0,3)τ1,τ2,τ3a†τ1a†τ2a†τ3+α(1,2)τ1,τ2,τ3a†τ1a†τ2a†τ3+α(2,1)τ1,τ2,τ3a†τ1a†τ2a†τ3+α(3,0)τ1,τ2,τ3a†τ1a†τ2a†τ3+… Note that as a†τ1a†τ2=δτ1,τ2−a†τ2a†τ1 for Fermions and a†τ1a†τ2=a†τ2a†τ1−δτ1,τ2 for Bosons the equation above allows for any operator to be defined. Operator defines an object that can store the most general operator. Several methods that act on this object are implemented. Furthermore one can access several properties of Operators.
Operators can act on Fermions and Bosons. An operator O has O.NF Fermions and O.NB Bosons. The Fermions are indexed from 0 to O.NF-1, the Bosons are indexed from O.NF to O.NF+O.NB-1.