Korean
언어
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.SparsePauliOp.to_list

SparsePauliOp.to_list(array=False)[소스]

Convert to a list Pauli string labels and coefficients.

For operators with a lot of terms converting using the array=True kwarg will be more efficient since it allocates memory for the full Numpy array of labels in advance.

매개변수

array (bool) – return a Numpy array if True, otherwise return a list (Default: False).

반환

List of pairs (label, coeff) for rows of the PauliList.

반환 형식

list or array