def METHOD_NAME(self, inverse):
    """Test the matrix representation of the QFT."""
    num_qubits = 5
    qft = QFT(num_qubits)
    if inverse:
        qft = qft.inverse()
    self.assertQFTIsCorrect(qft, inverse=inverse)