def test_transpose_inplace(self): """Test inplace transpose method.""" mat = self.rand_matrix(4, 4) chan = SuperOp(mat) chan.transpose(inplace=True) targ = SuperOp(np.transpose(mat)) self.assertEqual(chan, targ)
def test_transpose(self): """Test transpose method.""" mat = self.rand_matrix(4, 4) chan = SuperOp(mat) targ = SuperOp(np.transpose(mat)) self.assertEqual(chan.transpose(), targ)