stop_iterate
fireopal.stop_iterate(credentials, backend_name)Release a hardware provider session opened by iterate or iterate_expectation.
Call this function after your optimization loop completes or all batch jobs have been submitted to close the session and free provider resources. On IBM Quantum systems, this reduces total runtime by ending the Qiskit Runtime session.
Parameters
- credentials (Credentials) – The credentials for running circuits. See the credentials module for functions to generate credentials for your desired provider.
- backend_name (str) – The backend device name that should be used to run circuits.