Skip to content

Commit

Permalink
Update qiskit/primitives/containers/observables_array.py
Browse files Browse the repository at this point in the history
Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com>
  • Loading branch information
gadial and ElePT authored Jan 6, 2025
1 parent 8468877 commit fcc6108
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qiskit/primitives/containers/observables_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ def tolist(self) -> list:
Similar to Numpy's ``tolist`` method, the level of nesting
depends on the dimension of the observables array. In the
case of dimension 0 the method returns a single observable
instead of a list.
case of dimension 0 the method returns a single observable
(``dict`` in the case of a weighted sum of Paulis) instead of a list.
Examples::
Return values for a one-element list vs one element:
Expand Down

0 comments on commit fcc6108

Please sign in to comment.