Chang argues , based partly on speculation , that China either helped North Korea build atomic bombs or had full knowledge of efforts by the Pakistani nuclear scientist A. Q. Khan to assist Pyongyang .