Exercise H.5.4 - could not trotterize even after using adjoint

Hi Pennylane Team,

I became stuck on H.5.4 for quite a while. Despite learning how to use the TrotterProduct function call, and correctly deducing that the Hamiltonian H is from the previous exercise, in which the negative of it is used in the exponent for this exercise, I am still thinking about solving this problem using the adjoint function.

Which method is better, and where should I put my adjoint function if I am going with the adjoint method?

Hi @mack.attack ,

Notice that the instructions say " You can fix this by changing the overall sign of the Hamiltonian or by using qml.adjoint ".

So if you already changed the sign of the Hamiltonian then you don’t need to use adjoint.

I’d say changing the sign of the Hamiltonian is easier to implement in PennyLane.