A powerful earthquake has rocked China's western province of Qinghai killing at least 300 people. State media claims around 8000 have been injured.