Portuguese
Idiomas
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.Pauli.to_matrix

Pauli.to_matrix(sparse=False)[código fonte]

Convert to a Numpy array or sparse CSR matrix.

Parâmetros

sparse (bool) – if True return sparse CSR matrices, otherwise return dense Numpy arrays (default: False).

Retorno

The Pauli matrix.

Tipo de retorno

array