qiskit.quantum_info.Pauli.to_spmatrix¶
-
Pauli.
to_spmatrix
()[source]¶ DEPRECATED Convert Pauli to a sparse matrix representation (CSR format).
This function is deprecated. Use
to_matrix()
with kwargsparse=True
instead.- Returns
a sparse matrix with CSR format that represents the pauli.
- Return type
scipy.sparse.csr_matrix