cirq.linalg.expand_matrix_in_orthogonal_basis

Computes coefficients of expansion of m in basis.

Used in the notebooks

Used in the tutorials

We require that basis be orthogonal w.r.t. the Hilbert-Schmidt inner product. We do not require that basis be orthonormal. Note that Pauli basis (I, X, Y, Z) is orthogonal, but not orthonormal.