---
title: observable_terms (latest version)
description: API reference for qiskit_addon_cutting.utils.observable_terms in the latest version of qiskit-addon-cutting
source: https://eu-de.quantum.cloud.ibm.com/docs/en/api/qiskit-addon-cutting/utils-observable-terms
---

# Observable terms

`qiskit_addon_cutting.utils.observable_terms`

Utilities for working with the unique terms of a collection of [`SparsePauliOp`](/docs/api/qiskit/qiskit.quantum_info.SparsePauliOp)s.

### gather\_unique\_observable\_terms

`gather_unique_observable_terms(observables)`

[GitHub](https://github.com/Qiskit/qiskit-addon-cutting/tree/stable/0.10/qiskit_addon_cutting/utils/observable_terms.py)

Inspect the contents of each observable to find and return the unique Pauli terms.

**Return type**

PauliList

**Parameters**

**observables** (*Sequence\[Pauli | SparsePauliOp] | PauliList*)

### reconstruct\_observable\_expvals\_from\_terms

`reconstruct_observable_expvals_from_terms(observables, term_expvals)`

[GitHub](https://github.com/Qiskit/qiskit-addon-cutting/tree/stable/0.10/qiskit_addon_cutting/utils/observable_terms.py)

Reconstruct the expectation values given the expectation value of each unique term.

**Return type**

list\[complex]

**Parameters**

- **observables** (*Iterable\[Pauli | SparsePauliOp] | PauliList*)
- **term\_expvals** (*Mapping\[Pauli,* [*float*](https://docs.python.org/3/library/functions.html#float)  *|*[*complex*](https://docs.python.org/3/library/functions.html#complex)*]*)
