-
Notifications
You must be signed in to change notification settings - Fork 315
Renaming kernel_builder to kernel #3702
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
khalatepradnya
left a comment
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.
The code changes look fine to me. Isn't this a breaking change to the C++ API? @efratshabtai should weigh in.
| quantum kernel code at runtime. | ||
|
|
||
| **[2]** The callable :code:`cudaq::kernel_builder` abstraction | ||
| **[2]** The callable :code:`cudaq::kernel` abstraction |
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.
kernel_builder is clearer IMO.
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.
Q: Is this change for alignment with C++? cudaq.kernel.kernel seems less clear to me.
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.
What's the motivation for the rename? We do want to avoid breaking changes if possible
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.
As per the issue filed
Recently we update the Python bindings for kernel_builder to Kernel to be more Pythonic. I actually like this a little better. This type in C++ is meant to build Quake function representations, so it is in some sense a kernel builder. But ultimately it is a callable CUDA Quantum kernel, so I think it may be better to just call it cudaq::kernel.
Renaming cudaq::kernel_builder to cudaq::kernel.
Fixes #20.