![]() |
Computes the kronecker product of a sequence of values.
cirq.kron(
*factors, shape_len: int = 2
) -> np.ndarray
A *args version of lambda args: functools.reduce(np.kron, args).
Args | |
---|---|
*factors
|
The matrices, tensors, and/or scalars to combine together using np.kron. |
shape_len
|
The expected number of dimensions in the output. Mainly determines the behavior of the empty kron product. |
Returns | |
---|---|
The kronecker product of all the inputs. |