Skip to main content

Aleph - 0.41.0

✨ New Features

  • Added New classes PauliTerm and PauliSum to speed up operations involving pauli strings.
    • PauliTerm represents a Pauli string P=cnOn,On{I,X,Y,Z}P = c \prod_n O_n , \quad O_n \in \{ I, X, Y, Z \}. They can be scaled, multiplied in and out of place with eachother, and can check if they commute.
    • PauliSum represents a sum of PauliTerms. The sum can be truncated by the weight of the strings or by the norm of their coefficient. Explicit commutators between a single Pauli string or a sum of them as a PauliSum can be computed. The sums can also be conjugated by Pauli rotations USUU^{\dag} S U where U=exp(iθQ)U = \exp(i \theta Q) and Q is a Pauli string.
    • Conversions between this numerically efficient type and the Operator framework can be done via the convert_to_paulisum and convert_to_operatorsum functions.