Say I have the following Hamiltonian (given in terms of Pauli operators):
\begin{equation} H=aX_1Z_2+bZ_1X_2. \end{equation}
Both Pauli terms commute with each other. I want to make a measurement of $\langle H\rangle$ but only want to make one measurement using the Pauli terms' common eigenbasis. How do I find the set of Clifford gates which allows me to do this?
What I've tried:
I've found a unitary $U$ such that $U.X_1Z_2.U^\dagger$ and $U.Z_1X_2.U^\dagger$ are diagonal but not the Clifford gates which create $U$.
If the Hamiltonian were $aX_1+bX_2$ then $U=H_1H_2$ would work.
If the Hamiltonian were $aZ_1+bZ_2$ then no $U$ would be required.
If the Hamiltonian were $aX_1+bZ_2$ then $U=H_1X_2$ would work.
If the Hamiltonian were $aZ_1+bX_2$ then $U=X_1H_2$ would work.
This seems really simple but is somehow eluding me. Any help would be very appreciated!