Pauli.to_matrix

Pauli.to_matrix()[source]

Convert Pauli to a matrix representation.

Order is q_{n-1} …. q_0, i.e., $P_{n-1} otimes … P_0$

Returns

a matrix that represents the pauli.

Return type

numpy.array