qiskit.opflow.primitive_ops.PauliOp.to_spmatrix¶ PauliOp.to_spmatrix()[source]¶ Returns SciPy sparse matrix representation of the Operator. Returns CSR sparse matrix representation of the Operator. Raises ValueError – invalid parameters. Return type spmatrix