def METHOD_NAME(self):
    """Test the name after inverting the QFT is IQFT and not QFT_dg."""
    iqft = QFT(1).inverse()
    i2qft = iqft.inverse()
    with self.subTest(msg="inverted once"):
        self.assertEqual(iqft.name, "IQFT")
    with self.subTest(msg="inverted twice"):
        self.assertEqual(i2qft.name, "QFT")
    with self.subTest(msg="inverse as kwarg"):
        self.assertEqual(QFT(1, inverse=True).name, "IQFT")