preparing the wavefunction
…