Abstract
The topology change in quantum gravity is modeled by a Ricci flow. In this approach we consider the Ricci flow as a statistical system. The metric in the Ricci flow enumerated by a parameter is a microscopical statistical state. The probability of every microscopical state is determined by this parameter. The Ricci flow starting from a static wormhole filled with a phantom Sine-Gordon scalar field is investigated numerically.