The ab initio simulation of the Earth's core