예제 #1
0
 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)
예제 #2
0
 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)