From 76afe9c14e4e8dcbc3b283529ac4fa9f650a71a4 Mon Sep 17 00:00:00 2001 From: Paul Nation Date: Wed, 23 Oct 2024 15:28:41 -0400 Subject: [PATCH] Do not use runtime mode implicitly --- docs/runtime.rst | 2 +- mthree/mitigation.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/runtime.rst b/docs/runtime.rst index 9c74fbc..3c95aa0 100644 --- a/docs/runtime.rst +++ b/docs/runtime.rst @@ -21,4 +21,4 @@ in `mthree.M3Mitigation.cals_from_system`. For example: mit.cals_from_system(runtime_mode=batch); # This is where the Batch or Session goes -Note that if no `runtime_mode` is set, and the passed system is an IBM backend, then jobs are submitted in `Batch` mode automatically. This mode is NOT closed by default, allowing users to include additional jobs. This mode can be accessed via `mode = mit.system.get_mode()` +Note that if no `runtime_mode` is set, and the passed system is an IBM backend, then jobs are submitted in `Job` mode, i.e. independently, by default. diff --git a/mthree/mitigation.py b/mthree/mitigation.py index 11d526c..1c0a6ae 100644 --- a/mthree/mitigation.py +++ b/mthree/mitigation.py @@ -165,9 +165,7 @@ def cals_from_system( if isinstance(self.system, rm.RunningManBackend): if runtime_mode: - self.system.set_mode(runtime_mode, overwrite=True) - elif not self.system.get_mode(): - self.system.set_mode("batch") + self.system.set_mode(runtime_mode) if qubits is None: qubits = range(self.num_qubits) # Remove faulty qubits if any