-
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.
Deprecate
PauliList
estimator observables (#11520)
* Deprecate PauliList estimator observables (#11055) * Deprecate PauliList estimator observables Deprecates using a `PauliList` as an observable that is implicitly converted to a `SparsePauliOp` with coefficients 1 when calling `Estimator.run`. Users should instead explicitly convert the argument using `SparsePauliOp(pauli_list)` first. * Revert algorithms_test_case.py * Update test/python/algorithms/algorithms_test_case.py Co-authored-by: Takashi Imamichi <[email protected]> * Update test/python/primitives/test_estimator.py --------- Co-authored-by: Takashi Imamichi <[email protected]> Co-authored-by: ikkoham <[email protected]> Co-authored-by: Christopher J. Wood <[email protected]> * documentation * typo in warning msg * adapt test --------- Co-authored-by: Takashi Imamichi <[email protected]> Co-authored-by: ikkoham <[email protected]> Co-authored-by: Christopher J. Wood <[email protected]>
- Loading branch information
1 parent
38d4de1
commit 1c4a4de
Showing
4 changed files
with
36 additions
and
6 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
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
7 changes: 7 additions & 0 deletions
7
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
deprecations: | ||
- | | ||
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. |
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