-
Notifications
You must be signed in to change notification settings - Fork 294
Added missing GIL-safe implementation for pySampleAsync
#828
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
Conversation
|
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
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.
LGTM 👍
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.
+1
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.
👍
Command Bot: Processing... |
- When using kernel_builder with async. in C++, we may hit thread-safety issue in jit compile. For Python, we pre-jit the kernel on the main thread hence is not affected by this. - Fix issues with get_state_async: missing qpu_id in reset_context and set_current_qpu. - Update comments.
b96ed36 to
437ee6f
Compare
|
I've updated this PR to add some more fixes also related to async. execution. Please help re-review it. |
Command Bot: Processing... |
Command Bot: Processing... |
Command Bot: Processing... |
|
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
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.
new changes look good to me
Command Bot: Processing... |
|
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
Description
Converting Python args to native data before passing it to the async sample functor. We've implemented it for
observe_async, hence adopting it forpySampleAsync.Addressed #640.