Code to do quantum optimal control theory calculations