Learn more about our quantum error correction milestone


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.