cirq.AxisAngleDecomposition

class cirq.AxisAngleDecomposition(*, angle: float, axis: Tuple[float, float, float], global_phase: Union[int, float, complex])[source]

Represents a unitary operation as an axis, angle, and global phase.

The unitary $U$ is decomposed as follows:

$$U = g e^{-i heta/2 (xX + yY + zZ)}$$
where heta is the rotation angle, (x, y, z) is a unit vector along the
rotation axis, and g is the global phase.
__init__(*, angle: float, axis: Tuple[float, float, float], global_phase: Union[int, float, complex])[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

canonicalize([atol])

Returns a standardized AxisAngleDecomposition with the same unitary.