A Generalized Definition of the Metric of Quantum States