Here, E total is the total energy of the doped, relaxed surface, E clean is the total energy of the bare TaN (1 1 0) surface, n is the number of dopants in the system, and E dopant is the energy of the bulk dopant in vacuum per atom. Similarly, E T a is the energy of bulk Ta in vacuum per atom.