restore monkey patch in quantum_adapter