A Quantum‐Mechanical Treatment of Virial Coefficients