Numerical simulation of non-unitary gravity-induced localization