  The measure of distinguishability between two neighboring preparations of a
physical system by a measurement apparatus naturally defines the line element
of the preparation space of the system. We point out that quantum mechanics can
be derived from the invariance of this line element in the canonical
formulation. The canonical formulation of quantum statistical mechanics is also
discussed.
