A theory of quantum gravity based on quantum computation