Though it was under Mr. Sharif, in 1998, that Pakistan caught up with its neighbor and conducted its first test of anuclear weapon, the man who is poised to lead Pakistan's next government is making rapprochement with India a cornerstone of his policy.