Quantum Computing, Qiskit, Linear Algebra, Mathematics, Python.
range(len_w): matrix[i][j] = v[i] * w[j] return matrix v = [1+2j, 3+4j, 5+6j] w = [7+8j, 9+10j, 11+12j] result = outer_prod(v, w) print(result) Tensor Product The tensor product is a different way of multiplying matrices. Rather than multiplying rows by columns, the tensor product multiplies the