[BUG] qml.QNSPSAOptimizer
includes op.adjoint
instead of qml.adjoint(op)
in source
#4420
Closed
1 task done
Labels
bug 🐛
Something isn't working
Expected behavior
Circuit that includes
qml.RandomLayers
and usesqml.QNSPSAOptimizer
executes normally.Actual behavior
Execution raises
AdjointUndefinedError
. Other optimizers execute fine.Additional information
qml.QNSPSAOptimizer
includesop.adjoint
in the source instead ofqml.adjoint(op)
, as spotted by @albi3roBug discovered by Lucas Tecot on the PennyLane Discussion Forum.
Source code
Tracebacks
No response
System information
Existing GitHub issues
The text was updated successfully, but these errors were encountered: