Skip to content

Commit

Permalink
Update configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ElePT committed Dec 18, 2023
1 parent bae977e commit f8abe6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qiskit/providers/basic_provider/basic_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ def __init__(
)

self._target = target
self._configuration = configuration
# The ``target`` input argument overrides the ``configuration`` if provided:
self._configuration = configuration if not target else None
self._properties = None

# Internal simulator variables
Expand Down Expand Up @@ -174,8 +175,7 @@ def configuration(self) -> BackendConfiguration:
Returns:
BackendConfiguration: the configuration for the backend.
"""
# The ``target`` input argument overrides the ``configuration`` if provided:
if self._target:
if self._target and not self._configuration:
gates = [
{
"name": name,
Expand Down

0 comments on commit f8abe6e

Please sign in to comment.