The quantum entropy is usually defined using von Neumann's formula, which measures lack of information and vanishes for pure states. In contrast, we obtain a formula for the entropy of a pure state as it is measured from thermodynamic experiments, solely from the self-entanglement of the wave function, and find strong numerical evidence that the two are in agreement for nonintegrable systems, both for energy eigenstates and for states that are obtained at long times under the evolution of more general initial conditions. This is an extension of Boltzmann's hypothesis for classical systems, relating microscopic motion to thermodynamics.