quri_parts.stim.operator package#

quri_parts.stim.operator.convert_operator(operator: Operator | PauliLabel, qubit_count: int) Sequence[tuple[PauliString, complex]]#

Converts an Operator (or PauliLabel) to the Sequence of stim.PauliString and it’s coefficient.