qiskit.opflow.primitive_ops.PauliSumOp.from_list¶
-
classmethod
PauliSumOp.
from_list
(pauli_list, coeff=1.0)[source]¶ Construct from a pauli_list with the form [(pauli_str, coeffs)]
- Parameters
pauli_list (
List
[Tuple
[str
,complex
]]) – A list of Tuple of pauli_str and coefficient.coeff (
Union
[complex
,ParameterExpression
]) – A coefficient multiplying the primitive.
- Return type
PauliSumOp
- Returns
The PauliSumOp constructed from the pauli_list.