A power supply adapted for supplying electrical power to a load (108), the power supply comprising: At least one powered full bridge circuit (100), wherein the powered full bridge circuit (100) is adapted for being powered by a direct current voltage supply (106), wherein the full bridge circuit (100) comprises a first output connection (104a,104b), wherein the full bridge circuit (100) comprises a first switching means (102a,102b,102c,102d) for controlling the application of electrical power to the output connection (104a,104b), at least one floating full bridge circuit (110), wherein each floating full bridge circuit (110) comprises a capacitor (116) adapted for powering the floating full bridge circuit (110), wherein each floating full bridge circuit (110) comprises a second output connection (114a,114b), wherein each floating full bridge circuit (110) comprises a second switching means (112a,112b,112c,112d) for controlling the application of electrical power to the output connection (114a,114b), a stack of bridge circuits (126) comprising the at least one powered full bridge circuit (100) and the at least one powered full bridge circuit (110), wherein the second output connection (114a,114b) and first output connection (104a,104b) are connected in series, wherein the stack has a third output connection (118a,118b), a passive filter (120) for averaging the voltage across the third output connection (118a,118b), wherein the passive filter (120) is connected to the third output connection (118a,118b), a load connector (122a,122b) adapted for connecting the passive filter (120) to the load (108), a modulator (124) adapted for modulating the first switching means and the second switching means such that the charging or discharging of the capacitor (116) is controlled while electrical power is being supplied to or extracted from the load (108).