>- The quantum treatment of this system yields a non zero magnetic moment (although it vanishes at infinite temperatures) in the limit where $k_B T \gg \hbar \omega_c$ while the classical treatment gives strictly zero.
- I do not understand how does the left-right symmetry argument used in the classical partition function disappear in the quantum treatment to yield a partition function that depends on $\mathbf{B}$.




The calculation leading to the zero magnetic moment (the so called Bohr-van Leeuwen theorem) from the canonical probability distribution is correct. However, the reason the magnetic moment obtained is zero is not merely in the fact all directions of motion are equally possible; it is also the result of the artificial restriction that the particle has equal position probability distribution inside the box but *cannot go past the walls*. As a result, the particle cannot exercise its natural circular motion in magnetic field for all initial states, but if close enough to the wall, it gets reflected each time it hits the wall. It thus forms electric current that cancels the contributions of the unaffected circular trajectories inside the box to the integral expressing average magnetic moment (or any other magnetic quantity).


The box calculation assumes magnetized state of matter is what should happen when single non-interacting charged particle is put in a box. Frequent use of
this calculation as an example of inadequacy of non-quantum physics for magnetism is thus misconceived right from the start. In contrast to other uses of an imaginary box in calculations of statistical physics, for magnetic effects of external field the box's effect on the system cannot be ignored. Magnetic moment of uniformly magnetized body can be entirely cancelled out with the right surface current. In this case, reflections from the walls of the box provide such cancelling current.

If the walls are removed, charged particle will exercise circular motion without encountering obstacles and this results in magnetic moment pointing in the direction determined by the magnetic field (magnetic moment will oppose magnetic field - this is called diamagnetism). It is quite easy to calculate this magnetic moment as a function of particle's energy. When many such particles are allowed to move without restriction, large net magnetic moment may be obtained.


The quantum calculation is very different. First, eigenvalues of the Hamiltonian are found and then box is introduced as well. This time, however, it is used only to limit the position of the center of the wave function mentally, not all of its support throughout the space -  there is no physical interaction of the walls with the system involved. Also the partition functions is calculated very differently - as a sum over quantum numbers, instead of an integral over phase space. It is thus not that much surprising that the calculation leads to non-trivial magnetic properties - the box is "not really there".