Funny thing is - this is exactly what happens many millions times every single clock cycle inside pretty much any modern(-ish) digital CMOS CPU/ASIC, with the right-hand-side capacitor being parasitic gate capacitance in the driven gate.
And why reversible computing can be done without using energy ;)