which, in addition to the embedding Hamiltonian ĤA (see equation ( )), includes the local effective potential term λA , as well as a global chemical potential µ term. An iterative scheme can be designed to adjust µ and λA to converge the calculation by reducing the root-mean-square error, or the matching error ϵ, which is defined as