qiskit.opflow.primitive_ops.PauliSumOp.to_spmatrix¶
- PauliSumOp.to_spmatrix()[Quellcode]¶
Returns SciPy sparse matrix representation of the
PauliSumOp
.- Rückgabe
CSR sparse matrix representation of the
PauliSumOp
.- Verursacht
ValueError – invalid parameters.
- Rückgabetyp
spmatrix