Practical optimization for hybrid quantum-classical algorithms — arXiv2