SMS dit: Quantum mechanical theory of memory