def test_Qobj_sqrtm(): "Qobj sqrtm" data = np.random.random( (5, 5)) + 1j * np.random.random((5, 5)) - (0.5 + 0.5j) A = Qobj(data) B = A.sqrtm() assert_(A == B * B)
def test_Qobj_sqrtm(): "Qobj sqrtm" data = _random_not_singular(5) A = Qobj(data) B = A.sqrtm() assert A == B * B