Air with low humidity dries carpet the best. The temperature is probably the second most important factor (along with air circulation).
The warmer the better, so long as there is plenty of air circulation happening. So keep your doors open for maximum effect.