Note
If not specified, the default differentiation method is diff_method="best". PennyLane will attempt to determine the best differentiation method given the device and interface. Typically, PennyLane will prioritize device-provided gradients, backpropagation, parameter-shift rule, and finally finite differences, in that order.
When using diff_method="best" is there a way to print out/inform the user which diff_method was ultimately selected and used in the computation? For some reason I can’t find how to do this in the documentation.
Also given that PennyLane 0.30 is a fairly recent release (and some of us are still using 0.29), would such method to print out the diff_method be different between v0.30 and v0.29?
Hey @isaacdevlugt! Thanks for the quick response. I ran your code and I can confirm that circuit.diff_method is "best" ( ) but unfortunately for PennyLane to return "best" doesn’t really help - what I’m looking for is to have print(circuit.diff_method) return either
backprop
parameter-shift
finite-diff
some other type of diff_method (as "best" or "device" aren’t mathematical differentiation methods)