Good exercise also contributes to good sleep. I sleep like a log after a good bike ride or an evening out swing dancing, but if all I did was sit at my desk all day then it’s a lot more likely I’ll be tossing and turning or doom scrolling into the wee hours.
If I go near weed in any form, indica or sativa, I won't sleep for the entire night, guaranteed. It's not an enjoyable experience for me at all, by far my least favorite drug that I've tried.
Hiking is my go-to when I need to figure something out. I think walking also helps chew on complex problems, more so than more intense exercise like strength training and running (though that's also beneficial).
Sleep restores you. Exercise is the spark.