31 lines
1010 B
Plaintext
31 lines
1010 B
Plaintext
---
|
||
title: tensorproduct (v0.31)
|
||
description: API reference for qiskit.aqua.utils.tensorproduct in qiskit v0.31
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: function
|
||
python_api_name: qiskit.aqua.utils.tensorproduct
|
||
---
|
||
|
||
<span id="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>
|
||
|