ListOp.to_pauli_op

ListOp.to_pauli_op(massive=False)[source]

Returns an equivalent Operator composed of only Pauli-based primitives, such as PauliOp.

Return type

OperatorBase