def test_equivalent_false(self): """test equivalent (false) """ qc_A = QCirc().h(0).h(1).cx(0, 1).h(0).h(1) qc_B = QCirc().cx(1, 0).t(1) self.assertEqual(qc_A.equivalent(qc_B), False)
def test_equivalent_true(self): """test equivalent (true) """ qc_A = QCirc().h(0).h(1).cx(0, 1).h(0).h(1) qc_B = QCirc().cx(1, 0) self.assertEqual(qc_A.equivalent(qc_B), True)