-
Notifications
You must be signed in to change notification settings - Fork 0
Implement pyqrack interpreter methods for squin dialect #207
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
base: main
Are you sure you want to change the base?
Conversation
☂️ Python Coverage
Overall Coverage
New Files
Modified Files
|
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
9d2b332
to
19c95dc
Compare
So, the implementation here is somewhat complete. However, I'm still struggling with the wire dialect. @weinbe58 @johnzl-777 how do you even create a @squin.wired
def main():
q = squin.qubit.new(1)
w = squin.wire.unwrap(q[0])
x = squin.op.x()
squin.wire.apply(x, w)
return w But, of course, |
e6d79f4
to
0cf3d39
Compare
src/bloqade/pyqrack/squin/qubit.py
Outdated
if qbit.is_active(): | ||
result.append(qbit.sim_reg.m(qbit.addr)) | ||
else: | ||
result.append(None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@weinbe58 not sure about this one. We don't have a concept of a classical register in squin.
bb8900c
to
fc6e9f8
Compare
@weinbe58 two more things:
|
Closes #185