All types of exercise that are moderate to intense can improve sleep quality. Aerobic activity is essential, as is weight training, for the most benefits.