In the present study, a source identification problem for a one-dimensional Schrödinger equation with nonlocal boundary conditions is investigated. Stability estimates for the solution of the source identification problem are established. A first order of accuracy difference scheme for the numerical solution of this problem is presented. Stability estimates for the solution of this difference scheme are established. Numerical results are provided. © 2019 Author(s).