An autonomous single-piston engine with a quantum rotor