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

    Function estimatePhase

    • Estimates the phase of a specific eigenstate preparation.

      This convenience function combines eigenstate preparation with phase estimation for common use cases. It automatically prepares known eigenstates and applies QPE.

      Parameters

      • numControl: number

        Number of control qubits (precision)

      • unitaryName: string

        Unitary operator to analyze

      • eigenstateType: "i" | "-i" | "+" | "-" | "0" | "1" = '0'

        Type of eigenstate to prepare

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

        Optional unitary parameters

      Returns Circuit

      Circuit ready for phase estimation measurement