The role of quantum information theory in gravity