Computations of the first eigenpairs for the Schrödinger operator with magnetic field