def _uniform_phi ( M ) : return np . random . uniform ( - np . pi , np . pi , M )
generate random unitary matrix in python
Generate M random numbers in [ - pi pi ) .
def _uniform_phi(M):
        """
        Generate M random numbers in [-pi, pi).

        """
        return np.random.uniform(-np.pi, np.pi, M)