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

    Type Alias AmplitudeOracle

    AmplitudeOracle: (input: string) => boolean

    Defines an oracle function for Amplitude Amplification. The oracle identifies "good" states in the quantum superposition.

    Type Declaration

      • (input: string): boolean
      • Parameters

        • input: string

          A binary string representing a computational basis state.

        Returns boolean

        true if the state is marked as "good", false otherwise.