Skip to content

Implement scf & invoke methods for fidelity analysis #268

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

david-pl
Copy link
Collaborator

Needs #267 in order for tests to pass.

Also, I'm doing quite some hacky stuff right now:
@weinbe58 When invoking a nested kernel via run_method, I have to re-run the address analysis in order to be able to access the qubit addresses from the addr_frame when running the analysis for the nested method. Afterwards, I have to reset. That's super ugly and feels like a hack. Do you know a better way to do this?

Similarly, the post_succ_hook is also run when calling run_method. Since I'm updating stuff in-place there, I want to avoid that. I've achieved that via a similar hack setting a boolean flag.

@david-pl david-pl marked this pull request as ready for review May 28, 2025 11:18
@david-pl david-pl requested a review from weinbe58 May 28, 2025 11:18
@david-pl
Copy link
Collaborator Author

The for loop test is failing because of a bug in the address analysis, or really kirin, see QuEraComputing/kirin#408.

Copy link

codecov bot commented May 28, 2025

Codecov Report

Attention: Patch coverage is 82.97872% with 8 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/bloqade/analysis/fidelity/impls.py 82.60% 8 Missing ⚠️

📢 Thoughts on this report? Let us know!

Copy link
Contributor

github-actions bot commented May 28, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
8502 7421 87% 0% 🟢

New Files

File Coverage Status
src/bloqade/analysis/fidelity/impls.py 83% 🟢
TOTAL 83% 🟢

Modified Files

File Coverage Status
src/bloqade/analysis/fidelity/_init_.py 100% 🟢
src/bloqade/analysis/fidelity/analysis.py 100% 🟢
TOTAL 100% 🟢

updated for commit: e4096e9 by action🐍

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.

1 participant