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

    Function isUnitary

    • Generic type guard to check if a matrix is unitary (U†U = I within numerical precision). A unitary matrix preserves quantum mechanical probabilities.

      Parameters

      • matrix: Matrix

        Matrix to check

      Returns matrix is Matrix

      True if matrix is unitary within numerical tolerance