I'm trying to use the replica trick (Z→Zn) to evaluate a particular partition function (over an N×N matrix), and I've hastily assumed that I can commute the limits of N→∞ and n→0, but upon further reflection I realize this may not be true. What conditions must be satisfied for these limits to be interchangeable?