qiskit-documentation/docs/api/qiskit/0.26/qiskit.aqua.utils.tensorpro...

29 lines
939 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: tensorproduct
description: API reference for qiskit.aqua.utils.tensorproduct
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.aqua.utils.tensorproduct
---
# qiskit.aqua.utils.tensorproduct
<Function id="qiskit.aqua.utils.tensorproduct" isDedicatedPage={true} github="https://github.com/qiskit-community/qiskit-aqua/tree/stable/0.9/qiskit/aqua/utils/tensor_product.py" signature="tensorproduct(*args)">
Calculate tensor product.
m = tensorproduct(a,b,c,…) returns the kronecker product of its arguments. Each argument should either be a tensor, or a tuple containing a tensor and an integer, and tensor is put in zero-index slot. In the latter case, the integer specifies the repeat count for the tensor, e.g. tensorproduct(a,(b,3),c) = tensorproduct(a,b,b,b,c).
**Parameters**
**args** (*-*)
**Returns**
the tensor product
**Return type**
np.ndarray
</Function>