Stimulant medications increase willingness to expend effort, not ability.
“Researchers report their findings that dopamine signaling is responsible for the effects of Ritalin and other stimulant medications on motivation and executive function. Dopamine is one of the most abundant neurotransmitters in the brain and is involved in reward-motivated behavior, learning, and memory.”