qiskit.quantum_info.SparsePauliOp.to_matrix¶ SparsePauliOp.to_matrix(sparse=False)[소스]¶ Convert to a dense or sparse matrix. 매개변수 sparse (bool) – if True return a sparse CSR matrix, otherwise return dense Numpy array (Default: False). 반환 A dense matrix if sparse=False. csr_matrix: A sparse matrix in CSR format if sparse=True. 반환 형식 array