-- Eigenstates of the Lz operator -- starting from a wavefunction NF=6 NB=0 IndexDn={0,2,4} IndexUp={1,3,5} psip = NewWavefunction(NF, NB, {{"100000", math.sqrt(1/2)}, {"000010", math.sqrt(1/2)}}) OppLz = NewOperator("Lz", NF, IndexUp, IndexDn) Eigensystem(OppLz,psip)