Quantum gravity and spectral geometry