qiskit.opflow.converters.AbelianGrouper.group_subops¶
- classmethod AbelianGrouper.group_subops(list_op)[소스]¶
Given a ListOp, attempt to group into Abelian ListOps of the same type.
- 매개변수
list_op (
Union
[ListOp
,PauliSumOp
]) – The Operator to group into Abelian groups- 반환 형식
- 반환
The grouped Operator.
- 예외 발생
OpflowError – If any of list_op’s sub-ops is not
PauliOp
.