Skip to content

Commit

Permalink
Add skip_reset_qubits option (#1981)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-imamichi authored Oct 18, 2024
1 parent 79fb167 commit f7ad24c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions qiskit_ibm_runtime/options/dynamical_decoupling_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
1 change: 1 addition & 0 deletions test/integration/test_sampler_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f7ad24c

Please sign in to comment.