PAULI_STRING_LIKE= typing.Union[complex, _ForwardRef('cirq.OP_TREE'), typing.Iterable]¶
cirq.PauliStringor a value that can easily be converted into one.
Complex numbers turn into the coefficient of an empty Pauli string.Dictionaries from qubit to Pauli operation are wrapped into a Pauli string.Each Pauli operation can be specified as a cirq object (e.g.
cirq.X) or asa string (e.g.
"X") or as an integer where 0=I, 1=X, 2=Y, 3=Z.Collections of Pauli operations are recrusively multiplied into a singlePauli string.