Relations between the two countries are tense at the start of Pakistan's President's state visit to China. Militant groups in Pakistan oppose Chinese billion-dollar infrastructure projects. China recently blocked planned funding for Pakistan's rail network.