Skip to content

Conversation

@sacpis
Copy link
Collaborator

@sacpis sacpis commented Dec 23, 2025

Renaming cudaq::kernel_builder to cudaq::kernel.

Fixes #20.

Copy link
Collaborator

@khalatepradnya khalatepradnya left a 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
Copy link
Collaborator

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.

Copy link
Collaborator

@khalatepradnya khalatepradnya Dec 23, 2025

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.

Copy link
Contributor

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

Copy link
Collaborator Author

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.

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.

[RFC] Rename cudaq::kernel_builder -> cudaq::kernel

3 participants