q5m.js - Quantum Computing Library - v0.1.1
    Preparing search index...

    Function QFT

    • Creates a new circuit that implements the QFT or its inverse.

      Parameters

      • numQubits: number

        The number of qubits for the QFT circuit.

      • inverse: boolean = false

        If true, creates an inverse QFT circuit. Defaults to false.

      Returns Circuit

      A new Circuit object with the QFT applied.

      If numQubits is less than 1.