# from_list

Source: https://docs.q-ctrl.com/references/fire-opal/fireopal/fireopal.types.PauliOperator.from_list

```python
*static* PauliOperator.from_list(pauli_tuples, dtype=<class 'complex'>, qubit_count=None)
```

Construct from a list of tuples containing Pauli strings and coefficients.

### Parameters
* **pauli_tuples** (*list* *[* *tuple* *[* *str* *,* *complex* *]* *]*) – A list of tuples specifying the Pauli terms.
* **qubit_count** (*int* *or* *None* *,* *optional*) – The number of qubits in the system. If not provided, it will be inferred automatically
  from the length of the Pauli strings inside pauli_tuples.
* **dtype** (*type* *,* *optional*) – The data type to be used for storing the coefficients. Defaults to complex.
### Returns
*PauliOperator* – The constructed Pauli operator.
### Raises
**QctrlArgumentsValueError** – If the qubit_count is smaller than the length of any Pauli string in pauli_tuples.
