In Pennylane, we can create a custom operation by creating a class inheriting pennylane.operation.Operation.
I want to do it for an operation and I want to implement the adjoint method of this operation. However, all examples of operations that I found in Pennylane implement a very simple adjoint method, like for example themselves, or themselves with a negative parameter, while my operation has a non trivial adjoint.
Is there a simple way to implement the adjoint method of the Operator, so that it just does the inverse of its matrix ?
Thanks.