unsigned integer, read only
returns the number of determinants saved within the wavefunction.
We can define the function: |ψ⟩=(1√4a†0a†1+1√4a†0a†2+(1+I)1√4a†1a†2)|0⟩, which has three determinants and psi.N thus is equal to three.
NF=3 NB=0 psi = NewWavefunction(NF, NB, {{"110",sqrt(1/4)},{"101",sqrt(1/4)},{"011",(1+I)*sqrt(1/4)}}) print(psi.N)
3