def test_conjugate_inplace(self): """Test inplace conjugate method.""" mat = self.rand_matrix(4, 4) chan = SuperOp(mat) chan.conjugate(inplace=True) targ = SuperOp(np.conjugate(mat)) self.assertEqual(chan, targ)
def test_conjugate(self): """Test conjugate method.""" mat = self.rand_matrix(4, 4) chan = SuperOp(mat) targ = SuperOp(np.conjugate(mat)) self.assertEqual(chan.conjugate(), targ)