Creates a new circuit that implements the QFT or its inverse.
The number of qubits for the QFT circuit.
If true, creates an inverse QFT circuit. Defaults to false.
A new Circuit object with the QFT applied.
Circuit
If numQubits is less than 1.
Creates a new circuit that implements the QFT or its inverse.