def test_adjoint_inplace(self): """Test inplace adjoint method.""" mat = self.rand_matrix(4, 4) chan = SuperOp(mat) chan.adjoint(inplace=True) targ = SuperOp(np.transpose(np.conj(mat))) self.assertEqual(chan, targ)
def test_adjoint(self): """Test adjoint method.""" mat = self.rand_matrix(4, 4) chan = SuperOp(mat) targ = SuperOp(np.transpose(np.conj(mat))) self.assertEqual(chan.adjoint(), targ)