You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consult the security policy. If reporting a security vulnerability, do not report the bug using this form. Use the process described in the policy to report the issue.
Make sure you've read the documentation. Your issue may be addressed there.
Search the issue tracker to verify that this hasn't already been reported. +1 or comment there if it has.
If possible, make a PR with a failing test to give us a starting point to work on!
Describe the bug
When there is a kernel argument of type std::vector<char>, QuakeSynthesizer couldn't perform the synthesis. This affects the hardware backends and remote backends (nvqc).
Steps to reproduce the bug
#include <cudaq.h>
void f(const std::vector<char>& k) __qpu__ {
cudaq::qubit q;
for (int i = 0; i < k.size(); ++i)
rx(1.0*k[i], q);
}
int main() {
std::vector<char> x { 1, 2};
auto counts = cudaq::sample(f, x);
counts.dump();
return 0;
}
loc("test.cpp":2:1): error: 'func.func' op synthesis failed for vector<integral-type>.
loc("test.cpp":2:1): error: argument(s) still in use after synthesis.
terminate called after throwing an instance of 'std::runtime_error'
what(): Could not successfully apply quake-synth.
Aborted (core dumped)
Expected behavior
Successful synthesis.
Is this a regression? If it is, put the last known working version (or commit) here.
Not a regression
Environment
CUDA Quantum version: main
Python version: 3.10
C++ compiler: gcc-12
Operating system: Ubuntu22.04
Suggestions
No response
The text was updated successfully, but these errors were encountered:
Required prerequisites
Describe the bug
When there is a kernel argument of type
std::vector<char>
,QuakeSynthesizer
couldn't perform the synthesis. This affects the hardware backends and remote backends (nvqc
).Steps to reproduce the bug
Run with:
Error:
Expected behavior
Successful synthesis.
Is this a regression? If it is, put the last known working version (or commit) here.
Not a regression
Environment
Suggestions
No response
The text was updated successfully, but these errors were encountered: