As mentioned in the previous section, the difficult step is the computation of the generator S of the SW transformation. To obtain results comparable to second-order perturbation theory, it is enough to solve the equation [ H 0 , S ] = V (see Derivation). A simple trick in two steps is available when H 0 is block-diagonal.