NVIDIA / cuda-quantum

C++ and Python support for the CUDA Quantum programming model for heterogeneous quantum-classical workflows
https://nvidia.github.io/cuda-quantum/
Other
475 stars 174 forks source link

[Python] All the variables should be inserted at the top of the entry block #1963

Open khalatepradnya opened 2 months ago

khalatepradnya commented 2 months ago

All the variables should be inserted at the top of the entry block, so this alloca, store, alloca pattern would ought to look like alloca, alloca, store, ...

_Originally posted by @schweitzpgi in https://github.com/NVIDIA/cuda-quantum/pull/1952#discussion_r1683007179_

schweitzpgi commented 1 month ago

See also #1929