Skip to content
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

QPU Lambdas need to be able to use __qpu__ kernels #136

Open
1tnguyen opened this issue May 11, 2021 · 2 comments
Open

QPU Lambdas need to be able to use __qpu__ kernels #136

1tnguyen opened this issue May 11, 2021 · 2 comments

Comments

@1tnguyen
Copy link
Contributor

Ideally, users wouldn't need to capture but can just use these kernels, e.g. from an included header file, etc.

@divshacker
Copy link

Hello, Please tell me how to proceed with this?

@1tnguyen
Copy link
Contributor Author

1tnguyen commented Jun 4, 2022

I'd suggest that you take a look at the _qpu_lambda class implementation in https://github.com/qir-alliance/qcor/blob/master/runtime/kernel/quantum_kernel.hpp first. It is quite a complicated class, involving the JIT engine (QJIT).
The feature mentioned in this task is to find a way to inject other kernels (e.g., defined as standalone __qpu__ kernels) into the JIT compilation context of the _qpu_lambda.

We don't have a solution for this yet. So please feel free to propose an implementation.

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

No branches or pull requests

2 participants