On the Sina Weibo micro-blogging website akin to Twitter, PM Modi said he was saddened by the loss of life and devastation caused by the earthquake and added that the Indian people pray for the victims' families and hope those injured will recover swiftly, state-run CGTN TV reported.
Prime Minister Modi had opened an account on the popular Chinese site during his visit here in 2015. He has thousands of followers.
PM Modi's message of condolences comes in the backdrop of India-China tensions over a standoff at the Doklam in Sikkim section.
India and China have been locked in a face-off in the Doklam area of the Sikkim sector for the last 50 days after Indian troops stopped the Chinese People's Liberation Army from building a road in the area.
More than 60,000 people have been evacuated from the area amid continuing aftershocks, state media said.
The temblor that struck the popular tourist destination in Jiuzhaigou County in Sichuan province on Tuesday night was followed by another 6.6-magnitude quake yesterday in the far northwestern region of Xinjiang province.
Get the latest election news, live updates and election schedule for Lok Sabha Elections 2019 on ndtv.com/elections. Like us on Facebook or follow us on Twitter and Instagram for updates from each of the 543 parliamentary seats for the 2019 Indian general elections.