[StateHandling] Loop unrolling failed for `qvector` allocated from state
1tnguyen opened this issue · 1 comments
1tnguyen commented
Steps to reproduce:
#include <cudaq.h>
struct kernel {
void operator()() __qpu__ {
const std::vector<cudaq::complex> stateVector{1.0, 0.0, 0.0, 0.0};
cudaq::qvector v(stateVector);
h(v);
mz(v);
}
};
Command:
cudaq-quake <file name> | cudaq-opt --pass-pipeline='builtin.module(canonicalize,unrolling-pipeline,canonicalize)'
Error:
error: 'cc.loop' op not a constant upper bound loop