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.
where it sets the qnode's interface to tf. We could potentially remove this line and replace it with a validation check that ensures the interface is in auto/ tf.
https://app.shortcut.com/xanaduai/story/63723/bug-keraslayer-has-unintended-side-effects-on-its-qnode
Expected behavior
Defining a Keras layer from a QNode has no side effects on the QNode itself.
Actual behavior
QNodes in a
KerasLayer
are mutated.Additional information
No response
Source code
Tracebacks
System information
Existing GitHub issues