View source on GitHub |
Computes coefficients of expansion of m in basis.
cirq.expand_matrix_in_orthogonal_basis(
m: np.ndarray, basis: Dict[str, np.ndarray]
) -> value.LinearDict[str]
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.