Skip to content

Capture counts of MCM#9022

Merged
albi3ro merged 4 commits intomasterfrom
counts-mcm
Feb 4, 2026
Merged

Capture counts of MCM#9022
albi3ro merged 4 commits intomasterfrom
counts-mcm

Conversation

@albi3ro
Copy link
Contributor

@albi3ro albi3ro commented Feb 3, 2026

Context:

In PennyLaneAI/catalyst#2458 , @paul0403 is adding an MLIR pass to perform dynamic one shot. As a result of this, we will be able to handle measurement statistics of mcm's in catalyst with program capture.

But we never had a need to properly handle counts of mcms before now. So this fixes it.

Description of the Change:

Handles counts of mcm's the same way we handle counts of wires.

Benefits:

Possible Drawbacks:

Related GitHub Issues:

[sc-110522]

@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

Hello. You may have forgotten to update the changelog!
Please edit doc/releases/changelog-dev.md with:

  • A one-to-two sentence description of the change. You may include a small working example for new features.
  • A link back to this PR.
  • Your name (or GitHub username) in the contributors section.

Copy link
Member

@paul0403 paul0403 left a comment

Choose a reason for hiding this comment

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

Thanks for the quick addition!

@codecov
Copy link

codecov bot commented Feb 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.44%. Comparing base (0b7b843) to head (7252049).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #9022   +/-   ##
=======================================
  Coverage   99.44%   99.44%           
=======================================
  Files         602      602           
  Lines       64992    65013   +21     
=======================================
+ Hits        64631    64652   +21     
  Misses        361      361           

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

@albi3ro albi3ro requested a review from mudit2812 February 3, 2026 22:21
@albi3ro albi3ro enabled auto-merge February 4, 2026 16:04
@albi3ro albi3ro added this pull request to the merge queue Feb 4, 2026
Merged via the queue into master with commit 831e6ac Feb 4, 2026
55 checks passed
@albi3ro albi3ro deleted the counts-mcm branch February 4, 2026 16:23
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.

3 participants