qecx.algebra.binary_rows_to_paulis¶
- qecx.algebra.binary_rows_to_paulis(matrix, char)¶
Convert each binary row to a length-
nPauli product withcharat 1-positions.Columns containing
0emit"I"; columns containing1emitchar. The intendedcharis"X"for X-type CSS generators and"Z"for Z-type CSS generators.- Parameters:
- Returns:
Length-
mtuple of length-nPauli products in big-endian form.- Return type: