  We present here a set of lecture notes on quantum thermodynamics and
canonical typicality. Entanglement can be constructively used in the
foundations of statistical mechanics. An alternative version of the postulate
of equal a priori probability is derived making use of some techniques of
convex geometry
