Skip to content

Conversation

@rafaelha
Copy link
Contributor

@rafaelha rafaelha commented Oct 21, 2025

This PR removes the nonce arg from correlated loss statements. I_Error gates in stim need to be tagged with a unique value to prevent merging of gate statements by stim.

Previously, these tags were mirrored in the stim IR, even though our IR does not need them (since there is not auto-merging of statements like in stim).

Now nonce-tags have been removed from the IR. Instead EmitStimMain adds them during codegen.

@codecov
Copy link

codecov bot commented Oct 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions
Copy link
Contributor

github-actions bot commented Oct 21, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
9456 8351 88% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
src/bloqade/stim/dialects/noise/emit.py 100% 🟢
src/bloqade/stim/dialects/noise/stmts.py 100% 🟢
src/bloqade/stim/emit/stim_str.py 100% 🟢
src/bloqade/stim/parse/lowering.py 94% 🟢
src/bloqade/stim/rewrite/squin_noise.py 93% 🟢
TOTAL 97% 🟢

updated for commit: 436b84d by action🐍

Copy link
Contributor

@kaihsin kaihsin left a comment

Choose a reason for hiding this comment

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

LGTM just some minor comments.

Copy link
Contributor

@johnzl-777 johnzl-777 left a comment

Choose a reason for hiding this comment

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

LGTM!

@johnzl-777 johnzl-777 merged commit 1e347d8 into main Oct 22, 2025
11 checks passed
@johnzl-777 johnzl-777 deleted the rafaelha/correlated_loss_emit_nonce branch October 22, 2025 13:26
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.

4 participants