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