Hybrid quantum-classical algorithms and quantum error mitigation