cirq.deconstruct_single_qubit_matrix_into_angles

Breaks down a 2x2 unitary into ZYZ angle parameters.

Given a unitary U, this function returns three angles: ϕ0,ϕ1,ϕ2, such that: U=Zϕ2/πYϕ1/πZϕ0/π for the Pauli matrices Y and Z. That is, phasing around Z by ϕ0 radians, then rotating around Y by ϕ1 radians, and then phasing again by ϕ2 radians will produce the same effect as the original unitary. (Note that the matrices are applied right to left.)

mat The 2x2 unitary matrix to break down.

A tuple containing the amount to phase around Z, then rotate around Y, then phase around Z (all in radians).