If I hammer home after my late shift 9pmish I can't sleep until about 1-2am.
I think it's the brain juices that are activated when hammering. If I go light on the way home no problem sleeping. If you do your hard ride earlier in the day I think you'll be good for sleeping.