That’s not the kind of thing that you can get from school. Your education really just gives you a place to start, and then you build on it however you choose.
CS is by far the most flexible, if you insist on working on in-the-specialty projects. ChemE work is generally done in a few geographically concentrated areas (if you aren’t willing to move to where the jobs are, that’s pretty much a deal breaker), but it pays well if you like to work in a lab for oil & gas. Physics is primarily academic, but your quantitative skills are useful everywhere, so you could probably find a job in programming.
I have a degree in Chemical Engineering, and to be perfectly honest if I had a choice I probably wouldn’t have chosen that route twice. As it worked out, I graduated with a second degree in math, which paired with the engineering turned out to be rather lucrative and sufficient for most programming or programming + engineering work. ME/EE/CS would have probably been a better choice though, truth be told. If you’re in it for your love of chemistry, you will be sorely disappointed by the kind of things you learn in upper division courses.