View source on GitHub |
Applies a function to the eigenvalues of a matrix.
cirq.map_eigenvalues(
matrix: np.ndarray,
func: Callable[[complex], complex],
*,
atol: float = 1e-08
) -> np.ndarray
Given M = sum_k a_k |v_k>
Returns | |
---|---|
The transformed matrix. |