cirq.PhasedXZGate

class cirq.PhasedXZGate(*, x_exponent: Union[numbers.Real, sympy.core.basic.Basic], z_exponent: Union[numbers.Real, sympy.core.basic.Basic], axis_phase_exponent: Union[numbers.Real, sympy.core.basic.Basic])[source]

A single qubit operation expressed as $Z^z Z^a X^x Z^{-a}$.

The above expression is a matrix multiplication with time going to the left.
In quantum circuit notation, this operation decomposes into this circuit:

───Z^(-a)──X^x──Z^a────Z^z───$

The axis phase exponent (a) decides which axis in the XY plane to rotate
around. The amount of rotation around that axis is decided by the x
exponent (x). Then the z exponent (z) decides how much to phase the qubit.
__init__(*, x_exponent: Union[numbers.Real, sympy.core.basic.Basic], z_exponent: Union[numbers.Real, sympy.core.basic.Basic], axis_phase_exponent: Union[numbers.Real, sympy.core.basic.Basic]) → None[source]
Parameters
  • x_exponent – Determines how much to rotate during the axis-in-XY-plane rotation. The $x$ in $Z^z Z^a X^x Z^{-a}$.

  • z_exponent – The amount of phasing to apply after the axis-in-XY-plane rotation. The $z$ in $Z^z Z^a X^x Z^{-a}$.

  • axis_phase_exponent – Determines which axis to rotate around during the axis-in-XY-plane rotation. The $a$ in $Z^z Z^a X^x Z^{-a}$.