Simulations with high order QNN Pennylane derivatives with shots (dfdxdp, dfdxdx, dfdxdop) give different results when comparing to qiskit_shots, qiskit_statevector and penylane_statevector (all giving the correct results).
To Reproduce
I calculated f, dfdx, dfdxdp, dfdxdx, for a simple qnn with ChebyshevRx encoding:
Describe the bug
Simulations with high order QNN Pennylane derivatives with shots (dfdxdp, dfdxdx, dfdxdop) give different results when comparing to qiskit_shots, qiskit_statevector and penylane_statevector (all giving the correct results).
To Reproduce
I calculated f, dfdx, dfdxdp, dfdxdx, for a simple qnn with ChebyshevRx encoding:
Expected behavior
The output of dfdxdx, dfdxdp should give the same values as the other implementations (like for f and dfdx implementation below).
I am happy to help if you have some suggestion :)
Thank you very much!
Additional context