In Europe a lot of the Bosch/Yamaha bikes have the so-called 'walk mode', where you hold down a button and the bike powers itself up whatever slope at walking pace.
For some reason I understand this mode is illegal in the US, but it makes all the difference over here - especially when going up stairs (or other 45 degree slopes).