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

    Function innerP

    • Calculates the inner product of two complex vector vectors. The inner product is defined as ⟨a|b⟩ = ∑ᵢ aᵢ* bᵢ, where aᵢ* is the complex conjugate.

      Parameters

      • a: Vector

        The first complex vector.

      • b: Vector

        The second complex vector.

      Returns Complex

      The resulting complex vector from the inner product.

      If the vectors have different lengths.