operator_set
¶
Collections of quantum operators.
OperatorSet
¶
Represent a set of quantum operators.
Source code in shadowsim/core/operator_set.py
__init__
¶
__init__(
operators: Sequence[
Operator | str | PauliString | PauliSum
],
) -> None
Initialize an OperatorSet object which represents a set of quantum operators.
Operators, or values coercible via Operator
(Pauli strings / expressions / PauliSum).
Source code in shadowsim/core/operator_set.py
__len__
¶
__getitem__
¶
__getitem__(index: int) -> Operator
Return the operator at the given index.