X基底変換
回路の末尾に
$ H
を挟む。
$ D^\dagger ZD = X
$ D = \frac{1}{\sqrt{2}}\left( \begin{matrix} 1&1\\1&-1 \end{matrix} \right)