squlearn.util.optree
.OpTreeOperator
- class squlearn.util.optree.OpTreeOperator(operator: SparsePauliOp)
A leaf of the OpTree that represents an operator.
- Parameters:
operator (SparsePauliOp) – The operator that is represented by the leaf.
- copy()
Function for copying a OpTreeLeafOperator object.