Skip to content

Commit b5a04f0

Browse files
dabaconmhucka
andauthored
Fix documentation for PhasedXZGate (#6870)
* Fix documentation for PhasedXZGate * Update phased_x_z_gate.py --------- Co-authored-by: Michael Hucka <[email protected]>
1 parent 5ffb3ad commit b5a04f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cirq-core/cirq/ops/phased_x_z_gate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ def __init__(
7070

7171
@classmethod
7272
def from_zyz_angles(cls, z0_rad: float, y_rad: float, z1_rad: float) -> 'cirq.PhasedXZGate':
73-
"""Create a PhasedXZGate from ZYZ angles.
73+
r"""Create a PhasedXZGate from ZYZ angles.
7474
75-
The returned gate is equivalent to $Rz(z0_rad) Ry(y_rad) Rz(z1_rad)$ (in time order).
75+
The returned gate is equivalent to $Rz(z0\_rad) Ry(y\_rad) Rz(z1\_rad)$ (in time order).
7676
"""
7777
return cls.from_zyz_exponents(z0=z0_rad / np.pi, y=y_rad / np.pi, z1=z1_rad / np.pi)
7878

0 commit comments

Comments
 (0)