The properties of two polyphenyls doped with nitrogen and boron atoms, which are connected by an alkane chain, are investigated by the non-equilibrium Green’s function method combined with the density functional theory. It has been found that the doped sites have significant effects on the current–voltage characteristics. For models with the N(B) near the alkane chain, the rectification ratio is smaller, but the rectifying performance of models with the N(B) far away from the alkane chain is tremendously enhanced and rectification ratios can ...