From f7ad24ce9bce3aaa233aef2b1e97e675fbbf7f26 Mon Sep 17 00:00:00 2001 From: Takashi Imamichi <31178928+t-imamichi@users.noreply.github.com> Date: Fri, 18 Oct 2024 22:56:49 +0900 Subject: [PATCH] Add skip_reset_qubits option (#1981) --- .../options/dynamical_decoupling_options.py | 8 ++++++++ test/integration/test_sampler_v2.py | 1 + 2 files changed, 9 insertions(+) diff --git a/qiskit_ibm_runtime/options/dynamical_decoupling_options.py b/qiskit_ibm_runtime/options/dynamical_decoupling_options.py index 9a8eb0800..2476976f7 100644 --- a/qiskit_ibm_runtime/options/dynamical_decoupling_options.py +++ b/qiskit_ibm_runtime/options/dynamical_decoupling_options.py @@ -53,3 +53,11 @@ class DynamicalDecouplingOptions: Default: "alap". """ + skip_reset_qubits: Union[UnsetType, bool] = Unset + r"""Whether to insert DD on idle periods that immediately follow initialized/reset qubits. + + Since qubits in the ground state are less susceptible to decoherence, it can be beneficial + to let them be while they are known to be in this state. + + Default: False. + """ diff --git a/test/integration/test_sampler_v2.py b/test/integration/test_sampler_v2.py index 5e3454e35..ad8251a7a 100644 --- a/test/integration/test_sampler_v2.py +++ b/test/integration/test_sampler_v2.py @@ -491,6 +491,7 @@ def test_sampler_v2_dd(self, service): sampler.options.dynamical_decoupling.sequence_type = "XX" sampler.options.dynamical_decoupling.extra_slack_distribution = "middle" sampler.options.dynamical_decoupling.scheduling_method = "asap" + sampler.options.dynamical_decoupling.skip_reset_qubits = True bell, _, _ = self._cases[1] bell = transpile(bell, real_device)