cirq.kron(*factors: Union[numpy.ndarray, complex, float], shape_len: int = 2) → numpy.ndarray[source]

Computes the kronecker product of a sequence of values.

A *args version of lambda args: functools.reduce(np.kron, 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.


The kronecker product of all the inputs.