Skip to content

feat: support max_attempts=0 single-shot active reset#138

Open
arthurostrauss wants to merge 1 commit into
mainfrom
feat/reset-qubit-active-max-attempts-zero
Open

feat: support max_attempts=0 single-shot active reset#138
arthurostrauss wants to merge 1 commit into
mainfrom
feat/reset-qubit-active-max-attempts-zero

Conversation

@arthurostrauss

Copy link
Copy Markdown
Contributor

Summary

  • BaseTransmon.reset_qubit_active treats max_attempts=0 as a single-shot active reset: one measure-and-conditional-pi cycle with no while_ retry loop, and no attempts / save_qua_var handling.
  • ResetMacro.inferred_duration uses one cycle when max_attempts is 0 (via max(self.max_attempts, 1)).
  • Docs updated in the method/ResetMacro docstrings, CHANGELOG.md, and the superconducting architecture README.

Test plan

  • pytest tests/test_reset_qubit_active.py --verbose (passes in ~/venvs/rl_qoc)
  • Pre-commit hooks on commit (black, pylint, commitizen) pass
  • Confirm iterative active reset (max_attempts > 0) is unchanged in a QUA program
  • Confirm max_attempts=0 emits no while_ in generated QUA

Made with Cursor

Allow BaseTransmon.reset_qubit_active to skip the while_ retry loop when
max_attempts is 0, emitting only one measure-and-conditional-pi cycle.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant