def test_conjugate_inplace(self): """Test inplace conjugate method.""" matr = np.array([[1, 2], [3, 4]]) mati = np.array([[1, 2], [3, 4]]) chan = UnitaryChannel(matr + 1j * mati) chan.conjugate(inplace=True) self.assertEqual(chan, UnitaryChannel(matr - 1j * mati))
def test_conjugate(self): """Test conjugate method.""" matr = np.array([[1, 2], [3, 4]]) mati = np.array([[1, 2], [3, 4]]) chan = UnitaryChannel(matr + 1j * mati) uni_conj = chan.conjugate() self.assertEqual(uni_conj, UnitaryChannel(matr - 1j * mati))