def test_random_density_matrix(self): # Verify the shape because random data will change each call random_hs_matrix = random_density_matrix(2) self.assertEqual((2, 2), random_hs_matrix.shape) random_bures_matrix = random_density_matrix(2, method='Bures') self.assertEqual((2, 2), random_bures_matrix.shape)
def test_random_density_matrix(self): random_hs_matrix = random_density_matrix(2, seed=42) self.assertEqual((2, 2), random_hs_matrix.shape) random_bures_matrix = random_density_matrix(2, method='Bures', seed=40) self.assertEqual((2, 2), random_bures_matrix.shape)