QuOCS (Quantum Optimal Control Suite) is a python software package for theoretical and experimental optimizations. You can find here the core of the optimization algorithms used in the QuOCS - suite.
Install quocslib in your virtual environment
python -m pip install -e .
https://quantum-ocs.github.io/QuOCS
Now you are able to use the tests scripts in the tests folder :)