Table of Contents

N

unsigned integer, read only

returns the number of determinants saved within the wavefunction.

Example

We can define the function: |ψ=(14a0a1+14a0a2+(1+I)14a1a2)|0, which has three determinants and psi.N thus is equal to three.

Input

Example.Quanty
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)

Result

3

Available properties

Print/export