Closed jlbosse closed 2 years ago
Just confirmed this issue, it was due to the use of closure when writing kernel functions, will fix it later today. Thanks for reporting the bug!
You issue will be fixed by this PR: https://github.com/QuantumBFS/CuYao.jl/pull/74 Thanks again for the bug report!
Great, and thank you for providing a fix that quickly!
The PR in CuYao has been merged and is being tagged, I will close this issue for now. Feel free to reopen it if the patch does not fix your issue.
Worked perfectly, thanks
It seems like CuYao recompiles
apply!
every time the parameters of a circuit are changed, even though the circuit is still the same. This is in contrast to running a circuit on the CPU and and not on the GPU where compilation happens only once when running a circuit for the first time and then all future runs are fast when changing the parameters. See the following MWE: