Self‐similar wavepackets for describing warm dense matter