[Python] Spooky kernels (kernel calls inside kernels don't honor modules) #2344
Labels
python bridge
Involves the python bridge to quake
python-lang
Anything related to the Python CUDA Quantum language implementation
Required prerequisites
Describe the bug
CUDA-Q does not honor module namespace on kernel calls inside kernels.
Steps to reproduce the bug
Take the following directory project structure:
Where
foo/__init__.py
contains:And
main.py
contains:Running this code
python main.py
outputs:{ 0:1000 }
, which is wrong because it is callingspooky_kernel()
and notfoo.spooky_kernel()
Expected behavior
A
NameError
sincespooky_kernel
is not defined.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: