cirq.dot

cirq.dot(*values: Union[float, complex, numpy.ndarray]) → Union[float, complex, numpy.ndarray][source]

Computes the dot/matrix product of a sequence of values.

Performs the computation in serial order without regard to the matrix
sizes. If you are using this for matrices of large and differing sizes,
consider using np.lingalg.multi_dot for better performance.
Parameters

*values – The values to combine with the dot/matrix product.

Returns

The resulting value or matrix.