Skip to content

Commit

Permalink
Remove deprecated methods and args in Primitives (Qiskit/qiskit#9480)
Browse files Browse the repository at this point in the history
* Remove deprecated methods and args in Primitives

* rm unnecessary comments

* add reno

* Update qiskit/primitives/base/base_sampler.py

* From review comments
  • Loading branch information
ikkoham authored Apr 12, 2023
1 parent 8555fa0 commit c2b1f4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
2 changes: 2 additions & 0 deletions qiskit_algorithms/minimum_eigensolvers/diagonal_estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ def __init__(

self.aggregation = aggregation
self.callback = callback
self._circuit_ids = {}
self._observable_ids = {}

def _run(
self,
Expand Down
11 changes: 2 additions & 9 deletions test/gradients/logging_primitives.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,8 @@
class LoggingEstimator(Estimator):
"""An estimator checking what operations were in the circuits it executed."""

def __init__(
self,
circuits=None,
observables=None,
parameters=None,
options=None,
operations_callback=None,
):
super().__init__(circuits, observables, parameters, options)
def __init__(self, options=None, operations_callback=None):
super().__init__(options=options)
self.operations_callback = operations_callback

def _run(self, circuits, observables, parameter_values, **run_options):
Expand Down

0 comments on commit c2b1f4a

Please sign in to comment.