def METHOD_NAME(self):
    """Test default and custom setting of the QFT circuit."""
    unitary = QuantumCircuit(1)
    unitary.s(0)
    with self.subTest("default QFT"):
        pec = PhaseEstimation(3, unitary)
        expected_qft = QFT(3, inverse=True, do_swaps=False)
        self.assertEqual(
            pec.decompose().data[-1].operation.definition, expected_qft.decompose()
        )
    with self.subTest("custom QFT"):
        iqft = QFT(3, approximation_degree=2).inverse()
        pec = PhaseEstimation(3, unitary, iqft=iqft)
        self.assertEqual(pec.decompose().data[-1].operation.definition, iqft.decompose())