First principles studies of thermal, structural, and chemical phase spaces in quantum materials