ListOp.to_spmatrix

ListOp.to_spmatrix()[source]

Returns SciPy sparse matrix representation of the Operator.

Return type

Union[spmatrix, List[spmatrix]]

Returns

CSR sparse matrix representation of the Operator, or List thereof.