Quantum and classical molecular dynamics of energy harvesting