def _numpy_eye(n):
    if not np:
        raise ImportError
    return np.matrix(np.eye(n, dtype='complex'))
numpy version of complex eye.
dataset/ETHPy150Open sympy/sympy/sympy/physics/quantum/matrixutils.py/_numpy_eye