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

    Function createHermitian

    • Creates a validated Hermitian matrix from a 2D complex array. Throws if the matrix is not Hermitian within numerical precision.

      Parameters

      • matrix: Matrix

        Complex matrix to validate

      Returns Matrix

      Validated Hermitian matrix

      Error if matrix is not Hermitian