qiskit.opflow.OperatorBase.to_spmatrix¶
- OperatorBase.to_spmatrix()[código fonte]¶
Return SciPy sparse matrix representation of the Operator. Represents the evaluation of the Operator’s underlying function on every combination of basis binary strings.
- Tipo de retorno
spmatrix
- Retorno
The SciPy
spmatrix
equivalent to this Operator.