Extract the wave function.