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

    Function tensorP

    • Computes the tensor product (or Kronecker product) of two quantum amplitude vectors. This operation is used to combine the state spaces of multiple quantum systems.

      Parameters

      • a: Vector

        The first quantum amplitude vector (size m).

      • b: Vector

        The second quantum amplitude vector (size n).

      Returns Vector

      The resulting tensor product vector (size m * n).