cirq.axis_angle

cirq.axis_angle(single_qubit_unitary: numpy.ndarray) → cirq.linalg.decompositions.AxisAngleDecomposition[source]

Decomposes a single-qubit unitary into axis, angle, and global phase.

Parameters

single_qubit_unitary – The unitary of the single-qubit operation to decompose.

Returns

An AxisAngleDecomposition equivalent to the given unitary.