Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add skip_reset_qubits option for DD #1981

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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