qiskit.aqua.operators.converters.AbelianGrouper.group_subops¶
-
classmethod
AbelianGrouper.
group_subops
(list_op, fast=None, use_nx=None)[source]¶ Given a ListOp, attempt to group into Abelian ListOps of the same type.
- Parameters
list_op (
ListOp
) – The Operator to group into Abelian groupsfast (
Optional
[bool
]) – Ignored - parameter will be removed in future releaseuse_nx (
Optional
[bool
]) – Ignored - parameter will be removed in future release
- Return type
ListOp
- Returns
The grouped Operator.
- Raises
AquaError – If any of list_op’s sub-ops is not
PauliOp
.