Quantum state diffusion, localization and computation