You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should be able to specify the method at the options level
Suggested solutions
Combine the dicts like this
def__init__(
self,
*,
options: dict|None=None,
):
""" Args: options: The options to control the default precision (``default_precision``), the backend options (``backend_options``), and the runtime options (``run_options``). """self._options=Options(**options) ifoptionselseOptions()
method="density_matrix"if"noise_model"inself.options.backend_optionselse"automatic"ops=dict(method=method)
ops.update(self.options.backend_options)
self._backend=AerSimulator(**ops)
The text was updated successfully, but these errors were encountered:
Informations
What is the current behavior?
Minor issue in EstimatorV2 init - can't specify method in options,
Fails with
Steps to reproduce the problem
See code above
What is the expected behavior?
Should be able to specify the method at the options level
Suggested solutions
Combine the dicts like this
The text was updated successfully, but these errors were encountered: