pauli_string
pauli_string(const string word, const List<integer> sites) -> OperatorPauliString
Creates a spin-1/2 OperatorPauliString from a string representation.
Parameters
- word: String representation of the Pauli string (e.g., "XYZ").
- sites: Vector of site indices where the operator acts.
Example
var pauli0 = pauli_string("XYZX", [1, 6, 2, 3])