unitary_log_no_i

unitary_log_no_i(U)[source]

Solves for H in U = e^{iH}

Parameters:

U (np.ndarray) – The unitary to decompose.

Returns:

H in e^{iH} = U.

Return type:

np.ndarray

Note

This assumes the input is unitary but does not check. The output is undefined on non-unitary inputs.