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