Skip to content

Conversation

@david-pl
Copy link
Collaborator

Closes #153

Also related:
#160 #161 #162

FYI, @cduck

@david-pl david-pl requested a review from weinbe58 April 22, 2025 15:20
@github-actions
Copy link
Contributor

github-actions bot commented Apr 22, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
6204 5318 86% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
src/bloqade/pyqrack/_init_.py 100% 🟢
src/bloqade/pyqrack/noise/native.py 100% 🟢
src/bloqade/pyqrack/qasm2/core.py 81% 🟢
src/bloqade/pyqrack/qasm2/glob.py 100% 🟢
src/bloqade/pyqrack/reg.py 95% 🟢
src/bloqade/qasm2/types.py 93% 🟢
TOTAL 95% 🟢

updated for commit: 68a9539 by action🐍

@codecov
Copy link

codecov bot commented Apr 22, 2025

Codecov Report

Attention: Patch coverage is 96.66667% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/bloqade/pyqrack/qasm2/core.py 92.30% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

Copy link
Member

@weinbe58 weinbe58 left a comment

Choose a reason for hiding this comment

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

Just update that RuntimeError to an InterpreterError and then feel free to merge.

cbit.set_value(Measurement(qubit.sim_reg.m(qubit.addr)))
else:
cbit.set_value(interp.loss_m_result)
else:
Copy link
Member

Choose a reason for hiding this comment

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

oh BTW I missed this in the last PR, you should raise an InterpreterError here not a RuntimeError.

Copy link
Member

Choose a reason for hiding this comment

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

specifically in the else branch here.

@david-pl david-pl merged commit 5a81a6a into main Apr 23, 2025
11 checks passed
@david-pl david-pl deleted the david/pyqrackreg-ilist branch April 23, 2025 08:57
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.

Clean up PyQrackReg implementation

3 participants