qiskit.quantum_info.Pauli.to_matrix¶
- Pauli.to_matrix(sparse=False)[Quellcode]¶
Convert to a Numpy array or sparse CSR matrix.
- Parameter
sparse (bool) – if True return sparse CSR matrices, otherwise return dense Numpy arrays (default: False).
- Rückgabe
The Pauli matrix.
- Rückgabetyp
array