qecx.algebra.symplectic_to_paulis¶
- qecx.algebra.symplectic_to_paulis(matrix, n)¶
Decode an
(m, 2n)symplectic matrix to a tuple of length-nPauli products.Inverse of
paulis_to_symplectic(). Reads each row positionias the pair(matrix[r, i], matrix[r, n + i])and maps(0, 0) -> "I",(1, 0) -> "X",(0, 1) -> "Z",(1, 1) -> "Y".- Parameters:
- Returns:
Length-
mtuple of length-nPauli products in big-endian form. Returns()on an input with zero rows.- Return type: