Quil-T
API Reference
PauliTerm.
from_list
Allocates a Pauli Term from a list of operators and indices. This is more efficient than multiplying together individual terms.
terms_list (list) – A list of tuples, e.g. [(“X”, 0), (“Y”, 1)]
PauliTerm