-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove PauliList support as observable type for Estimator.run (#11521)
* remove PauliList support as observable type for Estimator.run * raise only when PauliList * adjust test
- Loading branch information
Showing
3 changed files
with
10 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
releasenotes/notes/dep-estimator-paulilist-ef2bb2865b66f012.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
deprecations: | ||
upgrade: | ||
- | | ||
Deprecates using a :class:`~.PauliList` as an observable that is implicitly | ||
converted to a :class:`~.SparsePauliOp` with coefficients 1 when calling | ||
:meth:`.Estimator.run`. Users should instead explicitly convert the argument | ||
using ``SparsePauliOp(pauli_list)`` first. | ||
Using a :class:`~.PauliList` as an observable | ||
when calling | ||
:meth:`.Estimator.run` is not further supported. Users should instead explicitly convert the argument | ||
using ``SparsePauliOp(pauli_list)`` first (see :class:`~.SparsePauliOp`). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters