quri_parts.stim.operator package#
- quri_parts.stim.operator.convert_operator(operator: Operator | PauliLabel, qubit_count: int) Sequence[tuple[PauliString, complex]] #
Converts an
Operator
(orPauliLabel
) to the Sequence ofstim.PauliString
and it’s coefficient.