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

    Function isValidAmplitude

    • Type guard to check if a Complex value is a valid amplitude (magnitude ≤ 1).

      Parameters

      • value: Complex

        Complex value to check

      Returns value is Complex

      True if the magnitude is ≤ 1