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

    Function QPE

    • Creates a standalone circuit for Quantum Phase Estimation.

      This factory function creates a complete QPE circuit with the specified precision and target register size. The circuit is ready for execution after preparing the eigenstate in the target register.

      Parameters

      • numControl: number

        Number of control qubits (precision bits)

      • numTarget: number

        Number of target qubits for eigenstate

      • unitaryName: string = 'rz'

        Name of the unitary operator to analyze

      • OptionalunitaryParams: { angle?: number; [key: string]: unknown }

        Optional parameters for the unitary operator

      Returns Circuit

      New Circuit with QPE applied

      If parameters are invalid