The conditional principle of extremum in quantum cosmology is formulated for a positive functional of the energy density of space, in which gravitational constraints serve as additional conditions. The extremum conditions determine the discrete spectrum of the “stationary” state of the universe with the corresponding values of the energy density of space. A dynamic interpretation of solutions is proposed, in which the quantum number of the energy density plays the role of cosmic time. In the self-consistent harmonic approximation, the quantum dynamics of the anisotropic model of the Bianchi IX universe is considered.