Chinese President Xi Jinping left Brasilia on Thursday after attending the 19th G20 Leaders' Summit and paying a state visit to Brazil.