North Korean leader Kim Jong Un is paying a state visit to China, two weeks before the Group of 20 summit scheduled for December in Miami.