Skip to content

Conversation

@ddddddanni
Copy link
Collaborator

This PR introduces a new argument, measure_on_full_support, to the measure_pauli_strings function. This feature significantly reduces the overhead of readout error calibration when measuring a large number of Pauli strings that act on different subsets of qubits.

@ddddddanni ddddddanni requested review from a team and vtomole as code owners November 17, 2025 20:46
@github-actions github-actions bot added the size: M 50< lines changed <250 label Nov 17, 2025
@codecov
Copy link

codecov bot commented Nov 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.38%. Comparing base (ad37bb7) to head (339897d).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7760   +/-   ##
=======================================
  Coverage   99.38%   99.38%           
=======================================
  Files        1090     1090           
  Lines       98248    98260   +12     
=======================================
+ Hits        97643    97655   +12     
  Misses        605      605           

☔ 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 ddddddanni marked this pull request as draft November 17, 2025 21:04
Copy link
Collaborator

@eliottrosenberg eliottrosenberg left a comment

Choose a reason for hiding this comment

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

I tested it in this colab, and it seems that when adding the measure gates to the circuits to measure the specified Pauli operators, it is measuring all of the qubits even when measure_on_full_support=False.

@ddddddanni
Copy link
Collaborator Author

I tested it in this colab, and it seems that when adding the measure gates to the circuits to measure the specified Pauli operators, it is measuring all of the qubits even when measure_on_full_support=False.

Discussed offline, we should not measure all qubits in

, only qubits in the pauli_str needs to be measured. This is bug in the code before this change, and I will send out a PR to fix this tmr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: M 50< lines changed <250

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants