Skip to content

Conversation

astralcai
Copy link
Contributor

@astralcai astralcai commented Oct 6, 2025

Context:

When using mcm_method="one-shot" or "tree-traversal", combined with postselect_mode="fill-shots", the postselection breaks the correlation between correlated measurements completely, producing incorrect results. The only way to fix that is by continuously running the simulation until we have enough valid shots, which fundamentally goes against the philosophy of treating shots as a budget constraint. Therefore, we have opted to disallow "fill-shots" for anything but "deferred" in default.qubit.

Description of the Change:

Benefits:

Possible Drawbacks:

Related GitHub Issues:
[sc-100562]
[sc-99992]
Fixes #8366
#8332

Copy link
Contributor

github-actions bot commented Oct 6, 2025

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

codecov bot commented Oct 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (v0.43.0-rc0@43fdc8a). Learn more about missing BASE report.

Additional details and impacted files
@@              Coverage Diff               @@
##             v0.43.0-rc0    #8411   +/-   ##
==============================================
  Coverage               ?   99.42%           
==============================================
  Files                  ?      584           
  Lines                  ?    61242           
  Branches               ?        0           
==============================================
  Hits                   ?    60890           
  Misses                 ?      352           
  Partials               ?        0           

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

@astralcai astralcai mentioned this pull request Oct 7, 2025
@astralcai astralcai requested review from albi3ro and mudit2812 October 7, 2025 16:26
@astralcai astralcai enabled auto-merge (squash) October 8, 2025 13:42
@astralcai astralcai merged commit 25cf2ea into v0.43.0-rc0 Oct 8, 2025
49 checks passed
@astralcai astralcai deleted the fill-shots-new branch October 8, 2025 14:04
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