qiskit.opflow.OperatorBase.to_spmatrix¶ OperatorBase.to_spmatrix()[source]¶ Return SciPy sparse matrix representation of the Operator. Represents the evaluation of the Operator’s underlying function on every combination of basis binary strings. Return type spmatrix Returns The SciPy spmatrix equivalent to this Operator.