Nope... it’s even easier..
electric locomotive with a coal car like car behind it with the generator and a really thick extension cord between them.
There, my locomotive is 100% electric.
or just stop at the state line and tell CA to figure the rest out.
A big problem is “origination”.
So much of the goods and materials entering the US is offloaded in California ports and then by rail throughout the US (or by over the road truck).
Where does Mayor Pete stand on this? Maybe someone should ask him next time he gets a break from breast feeding.... Excuse me, chest feeding, his child.