TypeError while computing the gradient

Hello again :slight_smile:

I wanted to know if I can use the paramter shift rules to compute the gradients on the X8 chip.

I read in another thread (Using PyTorch Gradients - #5 by josh) suggesting that its possible.

I understand that the gates are gaussian, but given that the measurement operation i.e, photon counting is non-Gaussian, can I still use the parameter-shift rules to find the gradient w.r.t to say a Rotation gate?

Regards,
Kannan