 where targets is a tuple of the
        target qubits and U is a unitary matrix with dimension of
        len(targets).
    