Bengali
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.PauliList.matrix_iter

PauliList.matrix_iter(sparse=False)[source]

Return a matrix representation iterator.

This is a lazy iterator that converts each row into the Pauli matrix representation only as it is used. To convert the entire table to matrices use the to_matrix() method.

প্যারামিটার

sparse (bool) -- optionally return sparse CSR matrices if True, otherwise return Numpy array matrices (Default: False)

রিটার্নস

matrix iterator object for the PauliList.

রিটার্ন টাইপ

MatrixIterator