Skip to content

Commit

Permalink
@rathishcholarajan Use BackendConfiguration, BackendProperties and P…
Browse files Browse the repository at this point in the history
…ulseDefaults classes for convert_to_target
  • Loading branch information
HuangJunye committed Feb 18, 2022
1 parent 2438935 commit eec4a49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions qiskit/test/mock/fake_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
)
from qiskit.test.mock.utils.backend_converter import (
convert_to_target,
qubit_properties_dict_from_properties
qubit_props_dict_from_props
)
from qiskit.utils import optionals as _optionals
from qiskit.providers import basicaer
Expand Down Expand Up @@ -340,9 +340,9 @@ def _convert_to_target(self) -> None:
"""Converts backend configuration, properties and defaults to Target object"""
if not self._target:
self._target = convert_to_target(
configuration=self._configuration.to_dict(),
properties=self._properties.to_dict() if self._properties else None,
defaults=self._defaults.to_dict() if self._defaults else None,
configuration=self._configuration,
properties=self._properties,
defaults=self._defaults,
)

@property
Expand Down

0 comments on commit eec4a49

Please sign in to comment.