def __init__(
        self,
        *,
        phase_exponent: float | sympy.Expr,
        exponent: float | sympy.Expr = 1.0,
        global_shift: float = 0.0,
    ) -> None:
        """Inits PhasedXPowGate.

        Args:
            phase_exponent: The exponent on the Z gates conjugating the X gate.
            exponent: The exponent on the X gate conjugated by Zs.
            global_shift: How much to shift the operation's eigenvalues at
                exponent=1.
        """
        self._phase_exponent = value.canonicalize_half_turns(phase_exponent)
        self._exponent = exponent
        self._global_shift = global_shift
Inits PhasedXPowGate.

        Args:
            phase_exponent: The exponent on the Z gates conjugating the X gate.
            exponent: The exponent on the X gate conjugated by Zs.
            global_shift: How much to shift the operation's eigenvalues at
                exponent=1.
        
cirq-core/cirq/ops/phased_x_gate.py