Replies: 1 comment 2 replies
-
Hi I think from the timing it actually prints that 99% of the time is actually compilation time, in Julia if you want to measure the actual timing in your loop you should either use the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, i am using the very good pkg
Yao.jl
and find something weird.i try to implement the shift rule method to get the gradient of a circuit. I find the function is unexpected slow.
here are my code
in my devices, the results are
i noticed that the
gradient
function is unexpected slow. however, when implemented in the main code (like grads3), the speed is much faster.I do not know How to optimize this function, could someone help me?
Beta Was this translation helpful? Give feedback.
All reactions