The geometric memory of quantum wave functions