View source on GitHub |
Computes the dot/matrix product of a sequence of values.
cirq.dot(
*values
) -> np.ndarray
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.
Args | |
---|---|
*values
|
The values to combine with the dot/matrix product. |
Returns | |
---|---|
The resulting value or matrix. |
Raises | |
---|---|
ValueError
|
If the method is called without any arguments. |