Skip to content

Allow users to run readout benchmarking with sweep #7435

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

Merged
merged 10 commits into from
Aug 2, 2025

Conversation

ddddddanni
Copy link
Contributor

Requested by @NoureldinYosri, this pr is splited from #7358.

The pr adds a new function run_sweep_with_readout_benchmarking which runs the sweep circuits with readout error benchmarking (without shuffling).

@github-actions github-actions bot added the size: L 250< lines changed <1000 label Jun 24, 2025
Copy link

codecov bot commented Jun 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.54%. Comparing base (ffbad23) to head (24ecedc).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #7435    +/-   ##
========================================
  Coverage   97.54%   97.54%            
========================================
  Files        1099     1099            
  Lines       99180    99378   +198     
========================================
+ Hits        96743    96941   +198     
  Misses       2437     2437            

☔ 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.

@ddddddanni
Copy link
Contributor Author

cc: @eliottrosenberg this is a smaller RP I split from #7358. This one only touches the readout benchmarking but not pauli expectation calculation.

Copy link
Collaborator

@NoureldinYosri NoureldinYosri left a comment

Choose a reason for hiding this comment

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

@ddddddanni overall LGTM%nits

@github-actions github-actions bot added size: XL lines changed >1000 and removed size: L 250< lines changed <1000 labels Jul 25, 2025
"""

circuit_repetitions: int | list[int]
num_random_bitstrings: int = 100
Copy link
Collaborator

@NoureldinYosri NoureldinYosri Jul 30, 2025

Choose a reason for hiding this comment

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

nit: in the future you can reduce the boilerplate code using attrs.validators, for example you can do

Suggested change
num_random_bitstrings: int = 100
num_random_bitstrings: int = attrs.field(default=100, validator=[attrs.validators.instance_of(int), attrs.validators.gt(0)])

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure! I will do this in my future prs!

@NoureldinYosri NoureldinYosri added this pull request to the merge queue Aug 2, 2025
Merged via the queue into quantumlib:main with commit 1ed3fdf Aug 2, 2025
92 of 97 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: XL lines changed >1000
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants