Skip to content

Conversation

@david-pl
Copy link
Collaborator

@david-pl david-pl commented Oct 15, 2025

This is the final step of the refactor in #492. We need to merge #508 first, however.

@david-pl david-pl added the breaking breaking changes or proposed changes that would break existing APIs label Oct 15, 2025


@wire.dialect.register
@qubit.dialect.register
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@johnzl-777 I'm not sure if this is correct. Do we even still need the WrapAnalysis?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think the WrapOpSiteAnalysis isn't necessary anymore but the WrapAddressAnalysis is. WrapAnalysis just lets me store analysis results in the statement hints so that other rewrite rules can access them (for example, in SquinNoiseToStim I query the hints for address analysis data).

I think one could get away without wrapping altogether? The cost is that I have to manually feed the analysis results to the rules that need the data

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Okay, thanks for clarifying. Then I'm leaving this as is. The site analysis is already gone altogether, since we don't have Op anymore, it doesn't make any sense.

@codecov
Copy link

codecov bot commented Oct 15, 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 15, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
9392 8300 88% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
src/bloqade/analysis/measure_id/impls.py 95% 🟢
src/bloqade/cirq_utils/emit/init.py 100% 🟢
src/bloqade/cirq_utils/emit/qubit.py 100% 🟢
src/bloqade/pyqrack/_init_.py 100% 🟢
src/bloqade/pyqrack/reg.py 98% 🟢
src/bloqade/pyqrack/squin/qubit.py 96% 🟢
src/bloqade/squin/_init_.py 100% 🟢
src/bloqade/squin/analysis/address_impl.py 100% 🟢
src/bloqade/squin/groups.py 100% 🟢
src/bloqade/squin/qubit.py 100% 🟢
src/bloqade/squin/rewrite/_init_.py 100% 🟢
src/bloqade/squin/rewrite/desugar.py 100% 🟢
src/bloqade/squin/rewrite/wrap_analysis.py 89% 🟢
src/bloqade/stim/passes/squin_to_stim.py 100% 🟢
TOTAL 98% 🟢

updated for commit: 5456202 by action🐍

@david-pl david-pl linked an issue Oct 15, 2025 that may be closed by this pull request
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 so far!

@weinbe58
Copy link
Member

Do not have this blocked #508. That PR will be simplfied a bit after this is merged. I can take care of merging any changes.

@david-pl david-pl marked this pull request as ready for review October 15, 2025 19:55
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.

Farewell wire and op, may your contributions to bloqade-circuit never be forgotten ❤️

@johnzl-777 johnzl-777 merged commit de4818f into main Oct 15, 2025
11 checks passed
@johnzl-777 johnzl-777 deleted the david/541-remove-op branch October 15, 2025 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking breaking changes or proposed changes that would break existing APIs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove op dialect

4 participants