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

    Function isValidQubitIndex

    • Type guard to check if a value is a valid qubit index.

      Validates that the value is a non-negative integer suitable for indexing qubits in a quantum system.

      Parameters

      • value: unknown

        Value to check

      Returns value is number

      True if value is a valid qubit index (non-negative integer)