Module: cirq.linalg.tolerance

Utility for testing approximate equality of matrices and scalars within

tolerances.

Functions

all_near_zero(...): Checks if the tensor's elements are all near zero.

all_near_zero_mod(...): Checks if the tensor's elements are all near multiples of the period.

near_zero(...)

near_zero_mod(...)