cirq.to_special

Converts a unitary matrix to a special unitary matrix.

All unitary matrices u have |det(u)| = 1. Also for all d dimensional unitary matrix u, and scalar s: det(u * s) = det(u) * s^(d) To find a special unitary matrix from u: u * det(u)^{-1/d}

u the unitary matrix

the special unitary matrix