Spanish
Idiomas
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.opflow.converters.AbelianGrouper.group_subops

classmethod AbelianGrouper.group_subops(list_op)[fuente]

Given a ListOp, attempt to group into Abelian ListOps of the same type.

Parámetros

list_op (Union[ListOp, PauliSumOp]) – The Operator to group into Abelian groups

Devuelve

The grouped Operator.

Muestra

OpflowError – If any of list_op’s sub-ops is not PauliOp.

Tipo del valor devuelto

ListOp