Skip to content

Commit

Permalink
Fix the definition of PhasedFSimGate (quantumlib#5736)
Browse files Browse the repository at this point in the history
The \theta dependence was missing from lines 224-225
  • Loading branch information
eliottrosenberg authored Jul 12, 2022
1 parent 02340ab commit d631f39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cirq/ops/fsim_gate.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ class PhasedFSimGate(gate_features.InterchangeableQubitsGate, raw_types.Gate):
$$
\begin{bmatrix}
1 & 0 & 0 & 0 \\
0 & e^{-i \gamma - i \zeta} & -i e^{-i \gamma + i\chi} & 0 \\
0 & -i e^{-i \gamma - i \chi} & e^{-i \gamma + i \zeta} & 0 \\
0 & e^{-i \gamma - i \zeta} \cos(\theta) & -i e^{-i \gamma + i\chi} \sin(\theta) & 0 \\
0 & -i e^{-i \gamma - i \chi} \sin(\theta) & e^{-i \gamma + i \zeta} \cos(\theta) & 0 \\
0 & 0 & 0 & e^{-2i \gamma - i \phi}
\end{bmatrix}
$$
Expand Down

0 comments on commit d631f39

Please sign in to comment.