zz_max¶
- guppylang.std.qsystem.zz_max(q1: qubit, q2: qubit) None [source]¶
zz_max gate command. A maximally entangling zz_phase gate.
This is a special case of the zz_phase command with \(\theta = \frac{\pi}{2}\).
zz_max(q1, q2)
Qubit ordering: [q1, q2]
\[\begin{split}\mathrm{ZZMax}= \exp(\frac{- i\pi}{4}\big(Z \otimes Z \big))= \begin{pmatrix} e^{\frac{-i\pi}{4}} & 0 & 0 & 0 \\ 0 & e^{\frac{i\pi}{4}} & 0 & 0 \\ 0 & 0 & e^{\frac{i\pi}{4}} & 0 \\ 0 & 0 & 0 & e^{\frac{-i\pi}{4}} \end{pmatrix}\end{split}\]