PennyLane is a cross-platform Python library for quantum computing, quantum machine learning, and quantum chemistry. Train a quantum computer the same way as a neural network.
This is due to metric_tensor using two different modes of qml.generator, leading to an inconsistent interpretation of the coefficients to be applied to the computed matrix elements of the tensor.
Expected behavior
The transform
metric_tensor
respects theqml.adjoint
transform.Actual behavior
In the following example, the
adjoint
of one particular operation in the circuit is realized in three ways:qml.adjoint
, yielding a differing metric tensor.Additional information
No response
Source code
No response
Tracebacks
No response
System information
Existing GitHub issues