rqutils.paulis.paulis¶
- rqutils.paulis.paulis(dim)¶
Return a list of generalized Pauli matrices of given dimension(s) as an array.
- Parameters
dim (
Union[int,Sequence[int]]) – Dimension(s) of the Pauli matrices.- Return type
numpy.ndarray- Returns
An array of Pauli (product) matrices as an array. For dim=(d1, d2, …), the shape of the array is (d1**2, d2**2, …, d1*d2*…, d1*d2*…).