cirq.kron¶

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).

Parameters
• *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.