Skip to content

Conversation

@codrut3
Copy link
Contributor

@codrut3 codrut3 commented Dec 14, 2025

The conditions in _can_add_op_at are already checked in the while loop. There is no AbstractDevice so I removed the check and the note.

I also handled the case when end_moment_index > len(self._moments). earliest_available_moment references from insert are guaranteed to have end_moment_index between 0 and len(self._moments), but earliest_available_moment is also exposed publicly.

The conditions in _can_add_op_at are already checked in the while loop.
There is no AbstractDevice so I removed the check and the note.

I also handled the case when end_moment_index > len(self._moments).
earliest_available_moment references from insert are guaranteed to have
end_moment_index between 0 and len(self._moments), but
earliest_available_moment is exposed publicly as well.
@codrut3 codrut3 requested review from a team and vtomole as code owners December 14, 2025 20:26
@github-actions github-actions bot added the Size: XS <10 lines changed label Dec 14, 2025
@codecov
Copy link

codecov bot commented Dec 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.57%. Comparing base (6871bdb) to head (58907fa).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7805   +/-   ##
=======================================
  Coverage   99.57%   99.57%           
=======================================
  Files        1102     1102           
  Lines       98638    98638           
=======================================
  Hits        98218    98218           
  Misses        420      420           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Collaborator

@pavoljuhas pavoljuhas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you for cleaning this up!

@pavoljuhas pavoljuhas added this pull request to the merge queue Dec 15, 2025
Merged via the queue into quantumlib:main with commit 1467a32 Dec 15, 2025
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Size: XS <10 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants