While "cognitive enhancers" and nootropics can increase performance (caffeine is my stimulant of choice) I don't think any can really act as a substitute for proper sleep. Sleep is incredibly important to learning & memory - stimulants can only really temporarily mask the effects of sleep deprivation but they rapidly lose effectiveness if one isn't maintaining proper sleep hygiene.