Skip to main content

OperatorPauliString

Represents a Pauli string operator constructed from a sequence of Pauli operators. Create instances using the pauli_string() factory function.

Factories

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])

Symbols

NameDescription
=Assignment operator for OperatorPauliString.