qml.devices.preprocess.validate_adjoint_trainable_params
-
validate_adjoint_trainable_params(tape)[source]
Raises a warning if any of the observables is trainable, and raises an error if any
trainable parameters belong to state-prep operations. Can be used in validating circuits
for adjoint differentiation.
code/api/pennylane.devices.preprocess.validate_adjoint_trainable_params