In the book Condensed Matter Field Theory of Altland and Simons, page 63 eq 2.30 in the second edition, they are doing the following transformation for the Hamiltonian:
$$\hat{H} \rightarrow \hat{H'} = e^{-t\hat{O}}\hat{H}e^{t\hat{O}}.\tag{2.30}$$
They are claiming that this transformation is canonical therefore doesn't change the physics of the system. $\hat{O}$ is a general operator.
My question is why it this true? Did I missed something from their discussion?